Datasheet

V850ES/JG3 CHAPTER 7 16-BIT TIMER/EVENT COUNTER P (TMP)
R01UH0015EJ0300 Rev.3.00 Page 194 of 870
Sep 30, 2010
(3) TMPn I/O control register 0 (TPnIOC0)
The TPnIOC0 register is an 8-bit register that controls the timer output (TOPn0, TOPn1 pins).
This register can be read or written in 8-bit or 1-bit units.
Reset sets this register to 00H.
0
TPnOL1
0
1
TOPn1 pin output level setting
Note
TOPn1 pin output starts at high level
TOPn1 pin output starts at low level
TPnIOC0
(n = 0 to 5)
0 0 0 TPnOL1 TPnOE1 TPnOL0 TPnOE0
6543<2>1
After reset: 00H R/W Address:
TP0IOC0 FFFFF592H, TP1IOC0 FFFFF5A2H,
TP2IOC0 FFFFF5B2H, TP3IOC0 FFFFF5C2H,
TP4IOC0 FFFFF5D2H, TP5IOC0 FFFFF5E2H
TPnOE1
0
1
TOPn1 pin output setting
Timer output disabled
When TPnOL1 bit = 0: Low level is output from the TOPn1 pin
When TPnOL1 bit = 1: High level is output from the TOPn1 pin
TPnOL0
0
1
TOPn0 pin output level setting
Note
TOPn0 pin output starts at high level
TOPn0 pin output starts at low level
TPnOE0
0
1
TOPn0 pin output setting
Timer output disabled
When TPnOL0 bit = 0: Low level is output from the TOPn0 pin
When TPnOL0 bit = 1: High level is output from the TOPn0 pin
7 <0>
Timer output enabled (a square wave is output from the TOPn1 pin).
Timer output enabled (a square wave is output from the TOPn0 pin).
Note The output level of the timer output pin (TOPnm) specified by the
TPnOLm bit is shown below (m = 0, 1).
TPnCE bit
TOPnm output pin
16-bit counter
When TPnOLm bit = 0
TPnCE bit
TOPnm output pin
16-bit counter
When TPnOLm bit = 1
Cautions 1. Rewrite the TPnOL1, TPnOE1, TPnOL0, and TPnOE0 bits
when the TPnCTL0.TPnCE bit = 0. (The same value can be
written when the TPnCE bit = 1.) If rewriting was
mistakenly performed, clear the TPnCE bit to 0 and then
set the bits again.
2. Even if the TPnOLm bit is manipulated when the TPnCE
and TPnOEm bits are 0, the TOPnm pin output level varies
(m = 0, 1).