| Electronic Components Datasheet Search |
|
UPD17062 Datasheet(PDF) 153 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
UPD17062 Datasheet(HTML) 153 Page - Renesas Technology Corp |
|
153 / 298 page ![]() 151 µPD17062 12.6 CAUTIONS IN USING THE TIMER INTERRUPT In a program using a timer that operates at constant intervals once a power-on reset occurs, it is necessary to have the timer interrupt handling routine finish within that constant interval. This is explained using an example. Example BR AAA ; Branches to AAA after reset. TIMER: ; Program address 0003H ADD M1, #0100B ; Adds 0100B to the content of M1. SKT1 CY ; Performs clock processing if a carry occurs. BR AAA ; # Clock process EI RETI AAA: INITFLG NOT BTM0ZX, NOT BTM0CK2, NOT BTM0CK1, NOT BTM0CK0 ; Built-in macro ; Specifies the timer interrupt time and timer carry FF setting time interval as 250 and 100 ms, respectively. SET1 IPBTM0 ; Built-in macro EI ; Enables the timer interrupt. Process A BR AAA The program in this example performs the clock process # at every one second while performing process A. If the CE pin goes from a low to a high as shown in Fig. 12-10 (a), a CE reset occurs in synchronization with the positive-going edge of the timer carry FF set pulse. If the timer interrupt request happens to be issued simultaneously when the timer carry FF is set, a CE reset takes precedence. When the CE reset occurs, it resets the timer interrupt request (IRQBTM0 flag), thus skipping the timer process 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 |