TMS370Cx36
8-BIT MICROCONTROLLER
SPNS039B – JANUARY 1996 – REVISED FEBRUARY 1997
21
POST OFFICE BOX 1443
HOUSTON, TEXAS 77251–1443
programmable acquisition and control timer (PACT) module (continued)
The PACT module features include the following:
Input-capture functions on up to six input pins (CP1 to CP6), depending on the mode selected:
–
Mode A: CP1–2 are dedicated capture, CP3–6 are circular buffer capture, and CP6 is also an event pin.
–
Mode B: CP1–4 are dedicated capture, CP5–6 are circular buffer capture, and CP6 is also an event pin.
Multiple timer-driven outputs on eight pins (OP1 to OP8)
–
Standard compare command: set or clear an output pin whenever the timer/counter is equal to a certain
value
–
Virtual timers: enable variations of the PWM’s period and provides periodic interrupts to the processor.
–
Double event-compare command: comparisons of the 8-bit event counter with two event-compare
values and the actions that can be performed are based on each value:
–
Event-compare 1 matching the event counter: sets or resets the selected output pin (OP1–OP8),
generates interrupt, and generates a 32-bit capture into the circular buffer.
–
Event-compare 2 matching the event counter: sets or resets the selected output pin (OP1–OP8),
generates interrupt, generates a 32-bit capture into the circular buffer, and resets the 20-bit default
timer.
–
Offset timer definition-time from last event:
–
Generates an interrupt when the maximum event count is reached
–
Stores the 16-bit virtual timer in the circular buffer on each event
–
Stores the 20-bit default timer and 8-bit event counter in the circular buffer when the maximum
event count is reached
–
Resets the 20-bit hardware default timer when the maximum event count is reached.
–
Conditional-compare command has a timer-compare value and an event-compare value.
–
Generates an interrupt when the event-compare value equals the event counter and the
timer-compare value equals the last defined timer
–
Sets or clears one of the seven output pins (OP1–OP7) when the event compare value equals the
event counter and the timer-compare value equals the last defined timer
–
Baud rate timer definition: runs the mini-serial communications port built into the PACT module.
Configurable timer overflow rates
One 8-bit event counter driven by CP6
Up to 20-bit timer capability
Interaction between event counter and timer activity
Register-based organization allowing direct access to timer parameters by the CPU
18 independent interrupt vectors with two priority levels
Integrated, configurable watchdog with selectable time-out period