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.2.1

Timer Mode

In timer mode, the timer counts a count source generated internally (see Table 15.6). Figure 15.19 shows
TBiMR Register in Timer Mode.
Table 15.6
Specifications in Timer Mode
Item
Count Source
Count Operation
Divide Ratio
Count Start Condition
Count Stop Condition
Interrupt Request
Generation Timing
TBiIN Pin Function
Read from Timer
Write to Timer
NOTES:
1. The TB0S to TB2S bits are assigned to the bit 5 to bit 7 in the TABSR register, and the TB3S to
TB5S bits are assigned to the bit 5 to bit 7 in the TBSR register.
Timer Bi Mode Register (i= 0 to 5)
b7 b6 b5 b4
b3 b2 b1 b0
0
0
NOTES :
1.
Selected by PCLK0 bit in the PCLKR register.
Figure 15.19
TBiMR Register in Timer Mode
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 TBi register (i= 0 to 5) 0000h to FFFFh
(1)
Set TBiS bit
to "1" (= start counting)
Set TBiS bit to "0" (= stop counting)
Timer underflow
I/O port
Count value can be read by reading TBi register
• When not counting and until the 1st count source is input after counting start
Value written to TBi register is written to both reload register and counter
• When counting (after 1st count source input)
Value written to TBi register is written to only reload register
(Transferred to counter when reloaded next)
Symbol
TB0MR to TB2MR
039Bh to 039Dh
TB3MR to TB5MR
035Bh to 035Dh
Bit Name
Bit Symbol
TMOD0
Operation Mode Select Bit
TMOD1
MR0
Has no effect in timer mode
Can be set to "0" or "1"
MR1
TB0MR, TB3MR registers
Set to "0" in timer mode
MR2
TB1MR, TB2MR, TB4MR, TB5MR registers
Nothing is assigned. When w rite, set to "0".
When read, its content is indeterminate
When w rite in timer mode, set to "0".
MR3
When read in timer mode, its content is indeterminate.
Count Source Select Bit
TCK0
TCK1
Page 159 of 390
提供单片机解密、IC解密、芯片解密业务
Specification
Address
b1 b0
0 0 : Timer mode
b7 b6
0 0 : f1 or f2
(1)
0 1 : f8
1 0 : f32
1 1 : fC32
After Reset
00XX0000b
00XX0000b
Function
010-62245566 13810019655
15. Timers
RW
RW
RW
RW
RW
RW
RO
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pM16c/62pt

Table of Contents