TMP92CZ26A92CZ26A-290Example: To generate 1/4 duty 31.25 kHz pulses (at f C= 50 MHz)* Clock state Clcok gear : 1/1Prescaler of clock gear : 1/2Calculate 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 = 200Therefore set TA1REG to 200 (C8H)The duty is to be set to 1/4: t × 1/4 = 32 μs × 1/4 = 8 μs8 μs ÷ 0.16 μs = 50Therefore, set TA0REG = 50 = 32H.7 6 5 4 3 2 1 0TA01RUN ← − 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 1 0 1 0 Write 32H.TA1REG ← 1 1 0 0 1 0 0 0 Write C8H.TA1FFCR ← X X X X 0 1 1 X Set TA1FF, enabling both inversion and the double buffer.Writing 10 provides negative logic pulse.PM ← − X X X X − 0 XPMFC ← − X X X X − 1 X Set PM1 as the TA1OUT pin.TA01RUN ← 1 X X X − 1 1 1 Start TMRA0 and TMRA1 counting.X: Don't care, −: No change32 μs