Timer A (Programmable Output Mode) - Renesas M16C/64A Series User Manual

Table of Contents

Advertisement

M16C/64A Group
17.5.6

Timer A (Programmable Output Mode)

17.5.6.1
Changing the Operating Mode
The IR bit becomes 1 when setting a timer operating mode with any of the following:
Selecting PWM mode or programmable output mode after reset
Changing the operating mode from timer mode to PWM mode or programmable output mode
Changing the operating mode from event counter mode to PWM mode or programmable output
mode
To use the timer Ai interrupt (IR bit), set the IR bit to 0 by a program after the changes listed above
are made.
17.5.6.2
Stop While Counting
When setting the TAiS bit to 0 (count stopped) during pulse output, the following occur:
When the POFSi bit in the TAPOFS register is 0:
Counting stops.
When the TAiOUT pin is high, the output level goes low.
When the TAiOUT pin is low, the output level remains unchanged.
The IR bit remains unchanged.
When the POFSi bit in the TAPOFS register is 1:
Counting stops
When the TAiOUT pin output is low, the output level goes high.
When the TAiOUT pin output is high, the output level remains unchanged.
The IR bit remains unchanged.
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
17. Timer A
Page 299 of 800

Advertisement

Table of Contents
loading

Table of Contents