Operation Of Timer A (Timer Mode, Pulse Output Function Selected) - Renesas M16C Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30245 Group

2.2.4 Operation of Timer A (timer mode, pulse output function selected)

In timer mode, choose functions from those listed in Table 2.2.3. Operations of the circled items are
described below. Figure 2.2.10 shows the operation timing, and Figures 2.2.11 shows the set-up proce-
dure.
www.DataSheet4U.com
Operation
Count start flag
Pulse output from
TAi
pin
OUT
Timer Ai interrupt
request bit
Figure 2.2.10. Operation timing of timer mode, pulse output function selected
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Table 2.2.3. Choosed functions
Item
Count source
O
Internal count source(f
Pulse output function
No pulses output
O
Pulses output
Gate function
O
No gate function
Performs count only for the period in which the TAi
Performs count only for the period in which the TAi
(1) Setting the count start flag to "1" causes the counter to perform a down count on the count
source.
(2) If an underflow occurs, the content of the reload register is reloaded and the count continues.
At this time, the timer Ai interrupt request bit goes to "1". Also, the output polarity of the
TAi
pin reverses.
OUT
(3) Setting the count start flag to "0" causes the counter to hold its value and to stop. Also, the
TAi
pin outputs an "L" level.
OUT
n = reload register content
FFFF
16
(1) Start count
n
0000
16
Set to "1" by software
"1"
"0"
"H"
"L"
Cleared to "0" when interrupt request is accepted, or cleared by software
"1"
"0"
page 16 of 354
Set-up
/ f
/ f
/ fc
)
1
8
32
32
(2) Underflow
(3) Stop count
Start count again
Cleared to "0" by
software
pin is at "L" level
IN
pin is at "H" level
IN
Set to "1" by software
2. Timer A
Time

Advertisement

Table of Contents
loading

Table of Contents