Collective Manipulation Of Tomn Bit - Renesas RL78/G1P Hardware User Manual

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P

6.6.4 Collective manipulation of TOmn bit

In timer output register m (TOm), the setting bits for all the channels are located in one register in the same way as
timer channel start register m (TSm). Therefore, the TOmn bit of all the channels can be manipulated collectively.
Only the desired bits can also be manipulated by enabling writing only to the TOmn bits (TOEmn = 0) that correspond
to the relevant bits of the channel used to perform output (TOmn).
Before writing
TO0
0
0
TOE0
0
0
Data to be written
0
0
After writing
TO0
0
0
Writing is done only to the TOmn bit with TOEmn = 0, and writing to the TOmn bit with TOEmn = 1 is ignored.
TOmn (channel output) to which TOEmn = 1 is set is not affected by the write operation. Even if the write operation is
done to the TOmn bit, it is ignored and the output change by timer operation is normally done.
Figure 6-37. TO0n Pin Statuses by Collective Manipulation of TO0n Bit
TO03
TO02
TO01
TO00
Caution While timer output is enabled (TOEmn = 1), even if the output by timer interrupt of each timer
(INTTMmn) contends with writing to the TOmn bit, output is normally done to the TOmn pin.
Remark m: Unit number (m = 0), n: Channel number (n = 0 to 3)
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Figure 6-36. Example of TO0n Bit Collective Manipulation
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Before writing
Writing to the TO0n bit
CHAPTER 6 TIMER ARRAY UNIT
0
0
TO07
TO06
TO05
0
0
0
0
TOE07
TOE06
TOE05
0
0
0
0
1
1
O
O
0
0
TO07
TO06
TO05
1
1
Two or more TO0n output can
be changed simultaneously
TO04
TO03
TO02
TO01
1
0
0
0
TOE04
TOE03
TOE02
TOE01
1
0
1
1
0
0
0
0
×
×
×
O
TO04
TO03
TO02
TO01
1
0
0
0
Output does not change
when value does not
change
Writing to the TO0n bit is
ignored when TOE0n
= 1
TO00
1
0
TOE00
1
1
1
1
×
×
TO00
1
0
176

Advertisement

Table of Contents
loading

Table of Contents