CHAPTER 9 TIMER/COUNTER FUNCTION
212
User’s Manual U15195EJ5V0UD
(3) Timer unit control registers 00, 01 (TUC00, TUC01)
TUC0n is an 8-bit register that controls the TO0n0 to TO0n5 outputs.
TUC0n can be read/written in 8-bit or 1-bit units. However, bit 0 is read-only.
7
0
TUC00
6
0
5
0
4
0
3
0
2
0
<1>
TORS0
<0>
TOSTA0
Address
FFFFF57CH
After reset
01H
7
0
TUC01
6
0
5
0
4
0
3
0
2
0
<1>
TORS1
<0>
TOSTA1
Address
FFFFF5BCH
After reset
01H
Bit position
Bit name
Function
1
TORSn
Flag that restarts TO0n0 to TO0n5 pin outputs that were forcibly stopped by ESOn pin
input.
Output is resumed by writing “1” to the TORSn bit.
Cautions 1.
If the level is set to the ESOn pin input level (TOMR register
TOEDG1 bit = 1, TOEDG0 bit = 0 or 1), the output disabled state is
not released (TOSTAn bit = 1) even if “1” is written to the TORSn
bit while output is disabled (TOSTAn bit = 1).
If the input level is the inactive level, the output disabled state is
released (TOSTAn bit = 0).
2.
If the edge is set to the ESOn pin input (TOEDG1 bit = 0, TOEDG0
bit = 0 or 1), the output disabled state is released (TOSTAn bit = 0)
when “1” is written to the TORSn bit while output is disabled
(TOSTAn bit = 1).
3.
After reset, be sure to write “1” to the TORSn bit prior to starting
TO0n0 to TO0n5 output. “0” is read when the TORSn bit is read.
0
TOSTAn
Flag indicating TO0n0 to TO0n5 pin output status according to ES0n pin input
0: Output enabled status
1: Output disabled status
Remark
n = 0, 1