10.6.4 External Trigger PPG (Programmable Square Wave) Output Mode
An external trigger count start mode provides one-shot pulse output with a short delay.
1. Set the 16-bit up-counter to count-up on the rising edge of TBxIN pin (TBxCR<TRGSEL,
CSSEL>= "01") while the up-counter (UC) is stopping (TBxRUN<TBRUN> = "0"). Set a delay
time (d) to the timer register (TBxRG0). In the timer register TBxRG1, set a value (d+P) which is add-
ed one-shot pulse width (p) to the delay time of TBxRG0.
2. To trigger enable to reverse the timer flip-flop, first set "11" to the timer flip-flop control register
(TBxFFCR<TBE1T1,TBE0T1>). Then the timer flip-flop(TBxFF0) is reversed, when UC matches
TBxRG0/TBxRG1.
3. Set "1" to TBxRUN<TBRUN> to enable the count-up on the rising edge of external trigger.
4. After the generation of one-shot pulse on the rising edge of TBxIN pin, set a reverse of the timer
flip-flop (TBxFF0) to disable with the interrupt of INTTBx1 or set "0" to TBxRUN<TBRUN> to
clear the value and stop the 16-bit up-counter operation.
The symbols (d) and (p) in the above description corresponds to the symbol d and p in the following figure.
Count clock
(Internal clock)
Timer output TBxOUT pin
TBxIN pin input
(External trigger pulse)
Match with TBxRG0
Match with TBxRG1
0
(p)
d
d + p
reverse
reverse
The counter starts at the rising edge of external trigger
INTTBx1
generation
Pulse width
(d)
Delay time
INTTBx0
generation
disable reverse
Figure 10-5 One-shot pulse generation using an external trigger count start (with a delay)
TMPM3V6/M3V4
10. 16-bit Timer / Event Counters (TMRB)
10.6 Description of Operations for Each Mode
Page 178
2019-02-06
Summary of Contents for TMPM3V4
Page 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Page 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Page 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Page 8: ......
Page 22: ...xiv ...
Page 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Page 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Page 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Page 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Page 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Page 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Page 544: ......