UG-498
ADuCM320 Hardware Reference Manual
Rev. C | Page 156 of 196
Capture Event Function
There are several interrupt events that can be captured by the general-purpose timers. These events are shown in Table 220. Any one of
the events associated with a general-purpose timer can cause a capture of the 16-bit TxVAL register into the 16-bit TxCAP register.
TxCON has a 4-bit field that can be used to select which event to capture.
When the selected interrupt event occurs, the TxVAL register is copied into the TxCAP register. TxSTA[1] is set, indicating that a capture
event is pending. The bit is cleared by writing 1 to TxCLRI[1]. The TxCAP register also holds its value and cannot be overwritten until a 1
is written to TxCLRI[1].
Table 220. Capture Event Function
Event Select Bits
(TxCON.EVENT), TxCON[11:8]
T0 Capture Source
T1 Capture Source
T2 Capture Source
0000
Wake-up timer
External Interrupt 4
External Interrupt 7
0001
External Interrupt 0
External Interrupt 5
External Interrupt 8
0010
External Interrupt 1
Reserved
SPI1
0011
External Interrupt 2
Flash controller
I2C0 slave
0100
Reserved
UART
I2C0 master
0101
External Interrupt 4
SPI0
PLA 2
0110
External Interrupt 5
PLA 0
PLA 3
0111
Reserved
PLA 1
PWM trip
1000
External Interrupt 7
DMA error
PWM0
1001
External Interrupt 8
DMA done (any)
PWM1
1010
Watchdog timer
Reserved
PWM2
1011
Reserved
Reserved
PWM3
1100
Reserved
Reserved
Low Voltage Analog Die Interrupt 1
1101
Low Voltage Analog Die Interrupt 0
I2C1 slave
External Interrupt 0
1110
MDIO
I2C1 master
External Interrupt 1
1111
GP Timer 1
GP Timer 2
GP Timer 1