Timer Mode - Renesas M16C/62P Series Hardware Manual

6-bit single-chip microcomputer
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
15.1.1

Timer Mode

In timer mode, the timer counts a count source generated internally (see Table 15.1). Figure 15.8 shows TAiMR
Register in Timer Mode.
Table 15.1
Specifications in Timer Mode
Item
Count source
Count Operation
Divide Ratio
Count Start Condition
Count Stop Condition
Interrupt Request
Generation Timing
TAiIN Pin Function
TAiOUT Pin Function
Read from Timer
Write to Timer
Select Function
Rev.2.41
Jan 10, 2006
REJ09B0185-0241
http://www.xinpian.net
f1, f2, f8, f32, fC32
• Down-count
• When the timer underflows, it reloads the reload register contents and
continues counting
1/(n+1) n: set value of TAi register (i= 0 to 4) 0000h to FFFFh
Set TAiS bit in TABSR register to "1" (= start counting)
Set TAiS bit to "0" (= stop counting)
Timer underflow
I/O port or gate input
I/O port or pulse output
Count value can be read by reading TAi register
• When not counting and until the 1st count source is input after counting start
Value written to TAi register is written to both reload register and counter
• When counting (after 1st count source input)
Value written to TAi register is written to only reload register
(Transferred to counter when reloaded next)
• Gate function
Counting can be started and stopped by an input signal to TAiIN pin
• Pulse output function
Whenever the timer underflows, the output polarity of TAiOUT pin is inverted.
When TAiS bit is set to "0" (stop counting), the pin outputs a low.
Page 144 of 390
提供单片机解密、IC解密、芯片解密业务
Specification
010-62245566 13810019655
15. Timers

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pM16c/62pt

Table of Contents