Table 10-1 Programmable Timer Multiplexed Signals; Table 10-2 Programmable Timers Register Summary; System Design - AMD Am186 CC User Manual

Table of Contents

Advertisement

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.
.
Table 10-1
Programmable Timer Multiplexed Signals
Signal
PWD
TMRIN0
TMRIN1
TMROUT0
TMROUT1
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-2
Programmable Timers Register Summary
Register
Offset
Mnemonic
340h
T0CON
342h
T0CNT
344h
T0CMPA
346h
T0CMPB
348h
T1CON
34Ah
T1CNT
34Ch
T1CMPA
34Eh
T1CMPB
350h
T2CON
352h
T2CNT
354h
T2CMPA
10-2
Programmable Timers
Function
Pulse-width demodulator
Timer inputs
Timer outputs
Register Name
Timer 0 Mode/Control
Timer 0 Count
Timer 0 Maxcount Compare A
Timer 0 Maxcount Compare B
Timer 1 Mode/Control
Timer 1 Count
Timer 1 Maxcount Compare A
Timer 1 Maxcount Compare B
Timer 2 Mode/Control
Timer 2 Count
Timer 2 Maxcount Compare A
Am186™CC/CH/CU Microcontrollers User's Manual
Multiplexed
Signal(s)
INT8
PIO6
PIO27
PIO0
PIO28
PIO1
Description
Controls the functionality of Timer 0.
The value of this register is incremented by 1
for each timer event until the compare value is
reached.
This register holds a compare value for T0CNT.
This register holds a compare value for T0CNT.
Controls the functionality of Timer 1.
The value of this register is incremented by 1
for each timer event until the compare value is
reached.
This register holds a compare value for T1CNT.
This register holds a compare value for T1CNT.
Controls the functionality of Timer 2.
This value of this register is incremented by 1
for each timer event until the compare value is
reached.
This register holds a compare value for T2CNT.
Default
Signal
PIO6
PIO27
PIO0
PIO28
PIO1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Am186 chAm186 cu

Table of Contents