![Intel 8XC196NT Скачать руководство пользователя страница 112](http://html1.mh-extra.com/html/intel/8xc196nt/8xc196nt_user-manual_2072210112.webp)
5-7
STANDARD AND PTS INTERRUPTS
5.3.3
Multiplexed Interrupt Sources
The EPAx interrupt is generated by a group of multiplexed interrupt sources. The EPA4–9 and
COMP0–1 event interrupts, the EPA0–9 overrun interrupts, and the timer 1 and timer 2 over-
flow/underflow interrupts are multiplexed into EPAx. Generally, PTS interrupt service is not use-
ful for multiplexed interrupts because the PTS cannot readily determine the interrupt source. Your
interrupt service routine should read the EPA_PEND or EPA_PEND1 register to determine the
source of the interrupt and to ensure that no additional interrupts are pending before executing the
return instruction. Chapter 10, “Event Processor Array (EPA),” discusses the EPA interrupts in
detail.
5.3.4
End-of-PTS Interrupts
When the PTSCOUNT register decrements to zero at the end of a single transfer, block transfer,
or A/D scan routine, hardware clears the corresponding bit in the PTSSEL register, which disables
PTS service for that interrupt. It also sets the corresponding PTSSRV bit, requesting an end-of-
PTS interrupt. An end-of-PTS interrupt has the same priority as a corresponding standard inter-
rupt. The interrupt controller processes it with an interrupt service routine that is stored in the
memory location pointed to by the standard interrupt vector. For example, the PTS services the
SIO transmit interrupt if PTSSEL.11 is set. The interrupt vectors through FF2056H, but the cor-
responding end-of-PTS interrupt vectors through FF2036H, the standard SIO transmit interrupt
vector. When the end-of-PTS interrupt vectors to the interrupt service routine, hardware clears the
PTSSRV bit. The end-of-PTS interrupt service routine should reinitialize the PTSCB, if required,
and set the appropriate PTSSEL bit to re-enable PTS interrupt service.
5.4
INTERRUPT LATENCY
Interrupt latency is the total delay between the time that the interrupt request is generated (not
acknowledged) and the time that the device begins executing either the standard interrupt service
routine or the PTS interrupt service routine. A delay occurs between the time that the interrupt
request is detected and the time that it is acknowledged. An interrupt request is acknowledged
when the current instruction finishes executing. If the interrupt request occurs during one of the
last four state times of the instruction, it may not be acknowledged until after the next instruction
finishes. This additional delay occurs because instructions are prefetched and prepared a few state
times before they are executed. Thus, the maximum delay between interrupt request and ac-
knowledgment is four state times plus the execution time of the next instruction.
When a standard interrupt request is acknowledged, the hardware clears the interrupt pending bit
and forces a call to the address contained in the corresponding interrupt vector. When a PTS in-
terrupt request is acknowledged, the hardware immediately vectors to the PTSCB and begins ex-
ecuting the PTS routine.
Содержание 8XC196NT
Страница 1: ...8XC196NT Microcontroller User s Manual...
Страница 2: ...8XC196NT Microcontroller User s Manual June 1995 Order Number 272317 003...
Страница 22: ...1 Guide to This Manual...
Страница 23: ......
Страница 35: ......
Страница 36: ...2 Architectural Overview...
Страница 37: ......
Страница 49: ......
Страница 50: ...3 Programming Considerations...
Страница 51: ......
Страница 66: ...4 Memory Partitions...
Страница 67: ......
Страница 104: ...5 Standard and PTS Interrupts...
Страница 105: ......
Страница 147: ......
Страница 148: ...6 I O Ports...
Страница 149: ......
Страница 176: ...7 Serial I O SIO Port...
Страница 177: ......
Страница 194: ...8 Synchronous Serial I O SSIO Port...
Страница 195: ......
Страница 211: ......
Страница 212: ...9 Slave Port...
Страница 213: ......
Страница 231: ......
Страница 232: ...10 Event Processor Array EPA...
Страница 233: ......
Страница 270: ...11 Analog to digital Converter...
Страница 271: ......
Страница 291: ......
Страница 292: ...12 Minimum Hardware Considerations...
Страница 293: ......
Страница 306: ...13 Special Operating Modes...
Страница 307: ......
Страница 317: ......
Страница 318: ...14 Interfacing with External Memory...
Страница 319: ......
Страница 362: ...15 Programming the Nonvolatile Memory...
Страница 363: ......
Страница 408: ...A Instruction Set Reference...
Страница 409: ......
Страница 476: ...B Signal Descriptions...
Страница 477: ......
Страница 493: ......
Страница 494: ...C Registers...
Страница 495: ......
Страница 565: ......
Страница 566: ...Glossary...
Страница 567: ......
Страница 580: ...Index...
Страница 581: ......
Страница 597: ......