| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
UPD17708 Datasheet(PDF) 177 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17708 Datasheet(HTML) 177 Page - NEC |
|
177 / 356 page ![]() 177 µPD17704, 17705, 17707, 17708, 17709 13.4.4 Example of using timer 1 (1) Modulo timer The modulo timer is used for time management by generating timer 1 interrupt at fixed intervals. An example of a program is shown below. This program executes processing B every 500 µs. TM1DATA DAT 0032H ; Count data = 50 START: BR INITIAL ; Reset address ; Interrupt vector address NOP ; SIO1 NOP ; SIO0 NOP ; TM3 NOP ; TM2 BR INT_TM1 ; TM1 NOP ; TM0 NOP ; INT4 NOP ; INT3 NOP ; INT2 NOP ; INT1 NOP ; INT0 NOP ; Down edge of CE INITIAL: INITFLG NOT TM1EN, TM1RES, NOT TM1CK1, NOT TM1CK0 ; (Stop) , (Reset) , (Basic clock = 10 µs) MOV DBF0, #TM1DATA MOV DBF1, #TM1DATA SHR4 AND 0FH PUT TM1, DBF SET1 TM1EN ; START SET1 IPTM1 ; Enables timer 1 interrupt EI LOOP: Processing A BR LOOP INT_TM1: PUT DBFSTK, DBF ; Saves data buffer Processing B GET DBF, DBFSTK EI RETI ; Return END |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |