Input Mode
Count Mode
Control Mode
Additional Configuration
Timer Mode Down
Single Cycle
Load Mode
Set CNTPRL to watchdog time,
CNTCMP to zero, enable
counter match IRQ
6.5.4.2 Event Counting
In this configuration, input pulses or events occurring at the input pin of the counter are counted up to a
programmed count limit. Upon reaching the count limit, the counter output will generate an interrupt. To arm the
counter for the next measurement, reset the counter in the Counter Command Register.
Input Mode
Count Mode
Control Mode
Additional Configuration
U/D Count
Single Cycle
none
Set CNTCMP to limit, enable
counter match IRQ
6.5.4.3 Input Pulse Width Measurement
For pulse-width measurement, the pulse-width being measured serves as a clock gate for an up-counter. To arm
the counter for a measurement, reset the counter in the Counter Command Register. The measurement starts
with the next rising edge and ends with the falling edge of the gate signal. An interrupt is generated upon
completion of the pulse-width measurement. The up-counter uses the internal clock prescaler at the counter’s
clock pin. Use following formula to calculate the pulse-width:
Pulse Width = Counter Value / Clock Frequency
Input Mode
Count Mode
Control Mode
Additional Configuration
Timer Mode Up
Single Cycle
Gate Mode
Enable control mode IRQ
6.5.4.4 Mechanical System Positioning
If a mechanical system provides position switches, these can be used for various purposes:
Establish a known home
Input Mode
Count Mode
Control Mode
Additional Configuration
U/D Count
Cycle Counter
Reset Mode
Enable control mode IRQ
Establish a known reference position
Input Mode
Count Mode
Control Mode
Additional Configuration
U/D Count
Cycle Counter
Load Mode
Enable control mode IRQ
Capture a position
Input Mode
Count Mode
Control Mode
Additional Configuration
U/D Count
Cycle Counter
Latch Mode
Enable control mode IRQ
Interrupts
6.6
All Interrupts are requested at the LINT1 input of the PCI9030 Target Chip.
Interrupts are generated only if the Master Interrupt Enable (MIE) is enabled in the Interrupt Control
Register ICR.
6.6.1 Interrupt Sources
IRQ
IRQ Description
Enable IRQ
Acknowledge IRQ
TPMC851 User Manual Issue 1.0.9
Page 60 of 65