Toshiba TX03 Series Manual page 198

32 bit risc microcontroller
Table of Contents

Advertisement

10.
16-bit Timer / Event Counters (TMRB)
10.6
Description of Operations for Each Mode
10.6.3
16-bit PPG (Programmable Pulse Generation) Output Mode
Square waves with any frequency and any duty (programmable square waves) can be output. The output
pulse can be either low-active or high-active
Programmable square waves can be output from the TBxOUT pin by triggering the timer flip-flop
(TBxFF0) to reverse when the set value of the up-counter (UC) matches the set values of the timer registers
(TBxRG0 and TBxRG1). Note that the set values of TBxRG0 and TBxRG1 must satisfy the following require-
ment:
Set value of TBxRG0 < Set value of TBxRG1
Figure 10-2 Example of Output of Programmable Pulse Generation (PPG)
In this mode, by enabling the double buffering of TBxRG0, the value of register buffer 0 is shifted into
TBxRG0 when the set value of the up-counter matches the set value of TBxRG1. This facilitates handling of
small duties.
2019-02-06
Match with TBxRG0
(INTTBx0 interrupt)
Match with TBxRG1
(INTTBx1 interrupt)
TBxOUT pin
Match with TBxRG0
Match with TBxRG1
TBxRG0
(Compare value)
Register buffer
TBxRG1
(Compare value)
Register buffer
Figure 10-3 Register Buffer Operation
Up-counter= Q
Up-counter= Q
1
Trigger to shift to TBxRG0
Q
1
Q
2
Q
4
Q
5
Page 176
TMPM3V6/M3V4
2
Q
2
Q
3
Write TBxRG0
Q
5
Q
6
Write TBxRG

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmpm3v6Tmpm3v4

Table of Contents