| Electronic Components Datasheet Search |
|
UPD17708 Datasheet(PDF) 186 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
UPD17708 Datasheet(HTML) 186 Page - Renesas Technology Corp |
|
186 / 358 page ![]() µPD17704, 17705, 17707, 17708, 17709 184 13.5.4 Example of using timer 2 (1) Modulo timer The modulo timer is used for time management by generating a timer 2 interrupt at fixed intervals. An example of a program is shown below. This program executes processing B every 500 µs. TM2DATA DAT 0032H ; Count data = 50 START: BR INITIAL ; Reset address ; Interrupt vector address NOP ; SIO1 NOP ; SIO0 NOP ; TM3 BR INT_TM2 ; TM2 NOP ; TM1 NOP ; TM0 NOP ; INT4 NOP ; INT3 NOP ; INT2 NOP ; INT1 NOP ; INT0 NOP ; Down edge of CE INITIAL: INITFLG NOT TM2EN, TM2RES, NOT TM2CK1, NOT TM2CK0 ; (Stop) , (Reset) , (Basic clock = 10 µs) MOV DBF0, #TM2DATA MOV DBF1, #TM2DATA SHR4 AND 0FH PUT TM2, DBF SET1 TM2EN ; START SET1 IPTM2 ; Enables timer 2 interrupt EI LOOP: Processing A BR LOOP INT_TM2: PUT DBFSTK, DBF ; Saves data buffer INITFLG TM2EN, TM2RES ; Resets and starts Processing B GET DBF, DBFSTK EI RETI ; Return END |
|
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 |