CHAPTER 9 TIMER/COUNTER FUNCTION
366
User’s Manual U15195EJ5V0UD
(2) Operations when output of the TO2n pin is controlled by manipulating the OCTLE0.SWFEn bit in
toggle mode 1
(a) When compare match signal of subchannel n is output immediately after the SWFEn bit changes
from 1 to 0
Figures 9-86 and 9-87 show the waveform of each block at output start/end when the output of the TO2n
output pin is controlled by manipulating the SWFEn bit in toggle mode 1.
Timer 2 of the V850E/IA2 outputs levels according to the value of the ALVEn bit (low level when the
ALVEn bit is 0, high level when the ALVEn bit is 1) by fixing the TO2n output to the inactive status.
When the SWFEn bit is 0, timer 2 outputs an active level or inactive level by making TO2n (internal)
operate according to the trigger signal.
However, if the SWFEn bit is changed from 1 to 0, forcibly activate the TO2n output once. If the SWFEn
bit is changed from 0 to 1, forcibly fix the TO2n output to the inactive status.
If the compare match signal of subchannel n is output immediately after the SWFEn bit has been
changed from 1 to 0, the period from when the SWFEn bit changes from 1 to 0 until the compare match
signal is output is added to the active period of the normal TO2n output, lengthening the first active
period (refer to
Figure 9-86
).
Figure 9-86. When Normal Output Operation Starts/Ends
(When OTMEn1, OTMEn0 Bits = 01 in OCTLE0 Register, ODLEn2 to ODLEn0 Bits = 000 in ODELD0 Register)
f
CLK
Match signal with
CVSEn0 register
TO2n (
internal)
TO2n
output
(ALVEn
bit
= 0)
TO2n
output
(ALVEn
bit
= 1)
TM20
CVSE00
register
CVSEn0
register
TM20 = 0
06
05
07
00
02
Inactive status (fix)
Inactive status
Active status Inactive status
Inactive status
(fix)
04
01
03
06
0008H
0005H
05
07
00
01
02
04
06
03
05
07
SWFEn
bit
00
01
02
04
03
05
Active status
Remark
n = 1 to 4
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...