| Electronic Components Datasheet Search |
|
UPD17072 Datasheet(PDF) 96 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17072 Datasheet(HTML) 96 Page - NEC |
|
96 / 226 page ![]() µPD17072,17073 96 12.3.4 Notes on using basic timer 1 When creating a program, such as a program for watch, in which processing is always performed at fixed time intervals by using the basic timer 1 after the supply voltage has been once applied (power-ON reset), the basic timer 1 interrupt service must be completed in a fixed time. Let’s take the following example: Example M1 MEM 0.10H ; 80-ms counter BTIMER1 DAT 0002H ; Symbol definition of interrupt vector address of basic timer 1 BR START ; Branches to START ORG BTIMER1 ; Program address (0002H) ADD M1, #0001B ; Adds 1 to M1 SKT1 CY ; Watch processing if carry occurs BR EI_RETI ; Restores if no carry occurs MOV M1, #0110B ; <1> Processing B EI_RETI: EI RETI START: MOV M1, #0110B ; Initializes contetns of M1 to 6 BANK1 SET1 BTM1CK ; Embedded macro ; Sets time of interrupt by basic timer 1 to 8 ms SET1 IPBTM1 ; Embedded macro ; Enables interrupt by basic timer 1 EI ; Enables all interrupts LOOP: Processing A BR LOOP In this example, processing B is executed every 80 ms while processing A is executed. If the CE pin goes high as shown in Figure 12-10, CE reset is effected in synchronization with the rising of the BTM0CY flag setting pulse. If issuance of an interrupt request by the basic timer 1 happens to overlap with the setting of the BTM0CY flag at this time, CE reset takes precedence. When CE reset is effected, the basic timer 1 interrupt request (IRQBTM1) flag is cleared. Consequently, the timer processing is skipped once. |
|
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 |