CMT2380F17
Rev0.1 | 115/347
www.cmostek.com
The Timer0 and Timer1 interrupts are generated by TF0 and TF1, which are set by a rollover in their
respective Timer/Counter registers in most cases. When a timer interrupt is generated, the flag that generated
it is cleared by the on-chip hardware when the service routine is vectored to.
The serial port 0 interrupt is generated by the logical OR of RI0 and TI0. Neither of these flags is cleared
by hardware
when the service routine is vectored to. The service routine should poll RI0 and TI0 to determine which
one to request service and it will be cleared by software.
The serial port 1 interrupt is generated by the logical OR of RI1 and TI1. Neither of these flags is cleared
by hardware when the service routine is vectored to. The service routine should poll RI1 and TI1 to determine
which one to request service and it will be cleared by software.
The timer2 interrupt is generated by the logical OR of TF2 and EXF2. If the timer 2 in split mode, the TL2
overflow will set another interrupt flag, TF2L. Just the same as serial port, neither of these flags is cleared by
hardware when the service routine is vectored to.
The timer3 interrupt is generated by the logical OR of TF3 and EXF3. If the timer 3 in split mode, the TL3
overflow will set another interrupt flag, TF3L. Just the same as serial port, neither of these flags is cleared by
hardware when the service routine is vectored to.
SPI interrupt is generated by SPIF in SPSTAT, which are set by SPI engine finishes a SPI transfer. It will
not be cleared by hardware when the service routine is vectored to.
The ADC interrupt is generated by ADCI in ADCON0. It will not be cleared by hardware when the service
routine is vectored to.
The PCA0 interrupt is generated by the logical OR of CF, CCF5, CCF4, CCF3, CCF2, CCF1 and CCF0 in
CCON. Neither of these flags is cleared by hardware when the service routine is vectored to. The service
routine should poll these flags to determine which one to request service and it will be cleared by software.
The System Flag interrupt is generated by RTCF, BOF1, BOF0, WDTF, TI0, STAF and STOF. STAF and
STOF are set by serial interface detection and stored in AUXR2. The Serial Port TI flag is optional to locate
the interrupt vector shared with system flag interrupt which is enabled by UTIE set. The rest flags are stored in
PCON1. RTCF is set by RTC counter overflow. BOF1 and BOF0 are set by on chip Brownout-Detector (BOD1
and BOD0) met the low voltage event. WDTF is set by Watch-Dog-Timer overflow. These flags will not be
cleared by hardware when the service routine is vectored to. Figure 15
–2 shows the system flag interrupt
configuration.
。
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...