| Moteur de recherche de fiches techniques de composants électroniques |
|
MPD78CP18KB Fiches technique(PDF) 122 Page - NEC |
|
|
|||||||||||||||||||||||||||||
MPD78CP18KB Fiches technique(HTML) 122 Page - NEC |
|
122 / 373 page ![]() CHAPTER 6 TIMER/EVENT COUNTER FUNCTIONS 104 Figure 6-25. Interrupt Mask Register (MKL) Setting (Single Pulse Output: INTE1 Mask Release) The INTEIN interrupt service program is shown below. A JMP EINSV instruction must be stored in the INTEIN interrupt start address (0020H). ;***TIMER/EVENT COUNTER SERVICE******** EINSV : EXA ; Save accumulator EXX ; Save register DMOV EA, ECPT LXI B, 0064H DADD EA, B ; Low level : 100 µs at 12 MHz DMOV ETM0, EA ; Set count value <a> LXI B, 00C8H DADD EA, B ; High level : 200 µs at 12 MHz DMOV ETM1, EA ; Set count value MVI A, 34H MOV ETMM, A <b> ORI EOM, 0AH ; Set level F/F, inversion enable ANI MKL, 0BFH ; INTEIN, INTE1 enable <c> EXX ; Recover register EXA ; Recover accumulator EI RETI After the interrupt service program by INTEIN, an internal interrupt (INTE1) is generated when the contents of ECNT and ETM1 are the same. The flowchart of this interrupt processing is shown below. × × MKL 0 2 4 5 6 7 01 ×× × × 31 INTE0 masking INTE1 masking released |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |