Toshiba TMP92CM22FG TLCS-900/H1 Series Manual page 137

Toshiba original cmos 32-bit microcontroller
Table of Contents

Advertisement

The following block diagram illustrates this mode.
TB0IN0
φT1
φT4
φT16
Selector
TB0RG0-WR
TB0RUN<TB0RDE>
Figure 3.8.11 Block Diagram of 16-Bit PPG Mode
The following example shows how to set 16-bit PPG output mode:
7 6 5 4 3 2 1 0
← 0 0 X X − 0 X 0
TB0RUN
TB0RG0H/L ← * * * * * * * *
* * * * * * * *
TB0RG1H/L ← * * * * * * * *
* * * * * * * *
← 1 0 X X − 0 X 0
TB0RUN
← X X 0 0 1 1 1 0
TB0FFCR
← 0 0 1 0 0 1 * *
TB0MOD
← X 1 − X − X − −
PCCR
← X 1 − X − X − −
PCFC
← 1 0 X X − 1 X 1
TB0RUN
X : Don't care, − : No change
Selector
16-bit up counter
UC10
Matching
16-bit comparator
TB0RG0H/L
Register buffer 10
Internal data bus
(** = 01, 10, 11)
92CM22-135
TB0OUT0 (PPG output)
TB0RUN<TB0RUN>
Clear
16-bit comparator
TB0REG1H/L
Disable the TB0RG0H/L double buffer and stop TMRB0.
Set the duty ratio.
(16 bits)
Set the frequency.
(16 bits)
Enable the TB0RG0 double buffer.
(The duty and frequency are changed on an INTTB01
interrupt.)
Set the mode to invert TB0FF0 at the match with
TB0RG0H/L/TB0RG1H?L. Clear TB0FF0 to 0.
Set input clock to prescaler output clock and disable the
capture function.
Set PC6 to function as TB0OUT0.
Start TMRB0.
TMP92CM22
F/F
(TB0FF0)
2007-02-16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900/h1 series

Table of Contents