Programmable Timers
10-2
Am186™CC/CH/CU Microcontrollers User’s Manual
10.3
SYSTEM DESIGN
Table 10-1 lists the programmable timer signals that are multiplexed with other
microcontroller functions. Pinstraps are sampled only at external reset and do not affect
the pin’s other functions, so they are not shown in this table. When TMRIN0 or TMRIN1 is
programmed as a PIO, the corresponding signal is held high (asserted) internally, except
in PWD mode where TMRIN0 is replaced with INT8 and TMRIN1 is replaced with the inverse
of INT8. Other multiplexed signals, when enabled, either disable or alter any other functions
that use the same pin.
.
10.4
REGISTERS
The registers listed in Table 10-2 program the timers. Appendix A summarizes the bits in
all the registers. For a complete description of all the peripheral registers, see the
Am186™CC/CH/CU Microcontrollers Register Set Manual, order #21916.
Table 10-1
Programmable Timer Multiplexed Signals
Signal Function
Multiplexed
Signal(s)
Default
Signal
PWD
Pulse-width demodulator
INT8
PIO6
PIO6
TMRIN0
Timer inputs
PIO27
PIO27
TMRIN1
PIO0
PIO0
TMROUT0
Timer outputs
PIO28
PIO28
TMROUT1
PIO1
PIO1
Table 10-2
Programmable Timers Register Summary
Offset
Register
Mnemonic
Register Name
Description
340h
T0CON
Timer 0 Mode/Control
Controls the functionality of Timer 0.
342h
T0CNT
Timer 0 Count
The value of this register is incremented by 1
for each timer event until the compare value is
reached.
344h
T0CMPA
Timer 0 Maxcount Compare A
This register holds a compare value for T0CNT.
346h
T0CMPB
Timer 0 Maxcount Compare B
This register holds a compare value for T0CNT.
348h
T1CON
Timer 1 Mode/Control
Controls the functionality of Timer 1.
34Ah
T1CNT
Timer 1 Count
The value of this register is incremented by 1
for each timer event until the compare value is
reached.
34Ch
T1CMPA
Timer 1 Maxcount Compare A
This register holds a compare value for T1CNT.
34Eh
T1CMPB
Timer 1 Maxcount Compare B
This register holds a compare value for T1CNT.
350h
T2CON
Timer 2 Mode/Control
Controls the functionality of Timer 2.
352h
T2CNT
Timer 2 Count
This value of this register is incremented by 1
for each timer event until the compare value is
reached.
354h
T2CMPA
Timer 2 Maxcount Compare A
This register holds a compare value for T2CNT.
Summary of Contents for Am186 CC
Page 1: ...Am186 CC CH CU Microcontrollers User s Manual Order 21914B...
Page 4: ...iv Am186 CC CH CU Microcontrollers User s Manual...
Page 18: ...Table of Contents xviii Am186 CC CH CU Microcontrollers User s Manual...
Page 24: ...Introduction xxiv Am186 CC CH CU Microcontrollers User s Manual...
Page 40: ...Architectural Overview 1 16 Am186 CC CH CU Microcontrollers User s Manual...
Page 86: ...System Overview 3 36 Am186 CC CH CU Microcontrollers User s Manual...
Page 92: ...Emulator Support 4 6 Am186 CC CH CU Microcontrollers User s Manual...
Page 112: ...DRAM Controller 6 8 Am186 CC CH CU Microcontrollers User s Manual...
Page 134: ...Interrupts 7 22 Am186 CC CH CU Microcontrollers User s Manual...
Page 186: ...Programmable I O Signals 9 8 Am186 CC CH CU Microcontrollers User s Manual...
Page 200: ...Watchdog Timer 11 6 Am186 CC CH CU Microcontrollers User s Manual...
Page 232: ...Asynchronous Serial Ports UARTs 13 24 Am186 CC CH CU Microcontrollers User s Manual...
Page 242: ...Synchronous Serial Port SSI 14 10 Am186 CC CH CU Microcontrollers User s Manual...
Page 264: ...High Level Data Link Control HDLC 15 22 Am186 CC CH CU Microcontrollers User s Manual...
Page 332: ...Universal Serial Bus USB 18 34 Am186 CC CH CU Microcontrollers User s Manual...
Page 348: ...Register Summary A 16 Am186 CC CH CU Microcontrollers User s Manual...
Page 376: ...Index Index 18 Am186 CC CH CU Microcontrollers User s Manual...