Download Print this page

Toshiba TLCS-900/H1 Series Manual page 131

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:

Advertisement

(3) Timer registers (TA0REG and TA1REG)
These are 8-bit registers, which can be used to set a time interval. When the value
set in the timer register TA0REG or TA1REG matches the value in the corresponding
up counter, the comparator match detect signal goes Active. If the value set in the
timer register is 00H, the signal goes Active when the up counter overflows.
TA0REG has a double buffer structure, making a pair with the register buffer.
The setting of the bit TA01RUN<TA0RDE> determines whether TA0REG's double
buffer structure is enabled or disabled. It is disabled if <TA0RDE> = "0" and enabled if
<TA0RDE> = "1".
When the double buffer is enabled, data is transferred from the register buffer to the
timer register when a 2
in PPG mode. Hence the double buffer cannot be used in timer mode.
A reset initializes <TA0RDE> to "0", disabling the double buffer. To use the double
buffer, write data to the timer register, set <TA0RDE> to "1", and write the following
data to the register buffer. Figure 3.7.3 show the configuration of TA0REG.
Timer registers 0 (TA0REG)
Shift trigger
Register buffers 0
Write
Internal data bus
Figure 3.7.3 Configuration of TA0REG
Note: The same memory address is allocated to the timer register and the register buffer.
When <TA0RDE> = 0, the same value is written to the register buffer and the timer
register; when <TA0RDE> = 1, only the register buffer is written to.
The address of each timer register is as follows.
TA0REG: 001102H
TA2REG: 00110AH
All these registers are write only and cannot be read.
overflow occurs in PWM mode, or at the start of the PPG cycle
n
B
Selector
S
TA01RUN<TA0RDE>
TA1REG: 001103H
TA3REG: 00110BH
92CH21-129
Matching detection PPG cycle
n
2
overflow of PWM
A
Write to TA0REG
TMP92CH21
2009-06-19

Advertisement

loading

This manual is also suitable for:

Tmp92ch21fgJtmp92ch21