TMP92CZ26A

92CZ26A-290

Example: To generate 1/4 duty 31.25 kHz pulses (at fC= 50 MHz)

* Clock state Clcok gear : 1/1
Prescaler of clock gear : 1/2
Calculate the value which should be set in the timer register.
To obtain a frequency of 31.25 kHz, the pulse cycle t should be: t = 1/31.25kHz = 32 μs
φT1 = 0.16 μs (at 50 MHz);
32 μs ÷ 0.16 μs = 200
Therefore set TA1REG to 200 (C8H)
The duty is to be set to 1/4: t × 1/4 = 32 μs × 1/4 = 8 μs
8 μs ÷ 0.16 μs = 50
Therefore, set TA0REG = 50 = 32H.
7 6 5 4 3210
TA01RUN
X X X −−0 0 Stop TMRA0 and TMRA1 and clear it to “0”.
TA01MOD
1 0 X X X X 0 1 Set the 8-bit PPG mode, and select φT1 as input clock.
TA0REG
0 0 0 0 1010 Write 32H.
TA1REG
1 1 0 0 1000 Write C8H.
TA1FFCR
X X X X 011X Set TA1FF, enabling both inversion and the double buffer.
Writing 10 provides negative logic pulse.
PM
X X X X 0X
PMFC
X X X X 1X Set PM1 as the TA1OUT pin.
TA01RUN
1 X X X 1 1 1 Start TMRA0 and TMRA1 counting.
X: Don't care, : No change
32 μs