| Electronic Components Datasheet Search |
|
UPD17072 Datasheet(PDF) 95 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
UPD17072 Datasheet(HTML) 95 Page - Renesas Technology Corp |
|
95 / 228 page ![]() µPD17072,17073 93 12.3.2 Application example of basic timer 1 A program example is shown below. Example M1 MEM 0.10H ; 80-ms counter BTIMER1 DAT 0002H ; Symbol definition of basic timer 1 interrupt vector address BR START ; Branches to START ORG BTIMER1 ; Program address (0002H) ADD M1, #0001B ; Adds 1 to M1 SKT1 CY ; Tests CY flag BR EI_RETI ; Returns if no carry MOV M1, #0110B Processing A EI_RETI: EI RETI START: MOV M1, #0110B ; Initializes contents of M1 to 6 BANK1 SET1 BTM1CK ; Embedded macro ; Sets basic timer 1 interrupt pulse to 8 ms SET1 IPBTM1 ; Enables basic timer 1 interrupt EI ; Enables all interrupts LOOP: BANK0 Processing B BR LOOP This program executes processing A every 80 ms. The points to be noted in this case are that the DI status is automatically set when an interrupt has been accepted, and that the IRQBTM1 flag is set to 1 even in the DI status. This means that the interrupt is accepted even if execution exits from an interrupt service routine by execution of the “RETI” instruction, if processing A takes longer than 8 ms. Consequently, processing B is not executed. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |