Renesas M16C Series User Manual page 18

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

Advertisement

M30245 Group
Timer Ai register (i = 0 to 4) (Note 1)
(b15
b7
www.DataSheet4U.com
Count start flag
b7
b6
b5
Figure 2.2.3. Timer A-related registers (2)
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Symbol
TA0
TA1
b8)
b0
b7
b0
TA2
TA3
TA4
Mode
Timer mode
16-bit counter (set to divide ratio)
Event counter
16-bit counter (set to divide ratio) (Note 2)
mode
One-shot
16-bit counter (set to one-shot width)
timer mode
(Note 6)
16-bit PWM (set to PWM pulse "H" width)
16-bit PWM
(Note 4, 7)
Low-order bits: 8-bit prescaler
(set to PWM period) (Notes 5, 7)
8-bit PWM
High-order bits : 8-bit PWM
(set to PWM pulse "H" width) (Notes 5, 7)
Note 1 : Read and write data in 16-bit units.
Note 2 : Counts pulses from an external source of timer overflow.
Note 3 : Use MOV instruction to write to this register.
Note 4 : When setting value is n, PWM period and "H" width of PWM pulses are:
PWM period : (2
PWM pulse "H" width : n/fi
Note 5 : When setting value of high-order address is n and setting value of low-
order address is m, PWM period and "H" width of PWM pulse are:
PWM period : (2
PWM pulse "H" width : (m + 1)n/fi
Note 6 : When the Timer Ai register is set to "0000
operate and the Timer Ai interrupt request is not generated. When the
pulse is se to output, the pulse does not output from the TAiOUT pin.
Note 7 : When the Timer Ai register is set to "0000
does not operate and the output level of the TAiOUT pin remains "L"
level, therefore the Timer Ai interrupt request is not generated. This also
occurs in the 8-bit pulse width modulator mode when the significant 8
high-order bits in the Timer Ai register are set to "00
b4
b3
b2
b1
b0
Symbol
TABSR
Bit Symbol
TA0S
TA1S
TA2S
TA3S
TA4S
Nothing is assigned. Write "0" when writing to these bits.
The contents are indeterminate if read.
page 9 of 354
Address
0387
, 0386
16
0389
, 0388
16
038B
, 038A
16
038D
, 038C
16
038F
, 038E
16
Function
16
- 1)/fi
8-
1) X (m + 1)/fi
", the counter does not
16
", the pulse width modulator
16
Address
0380
16
Bit Name
Timer A0 count start flag
Timer A1 count start flag
Timer A2 count start flag
Timer A3 count start flag
Timer A4 count start flag
When reset
Indeterminate
16
Indeterminate
16
Indeterminate
16
Indeterminate
16
Indeterminate
16
Values that can be set
0000
to FFFF
16
16
0000
to FFFF
16
16
(Note 3)
0000
to FFFF
16
16
0000
to FFFF
16
16
(Note 3)
00
to FE
(Both high-order and
16
16
low-order addresses) (Note 3)
"
16
When reset
XXX00000
2
Function
0 : Stops counting
1 : Starts counting
2. Timer A
R W
O O
O O
X O
X O
X O
R W
O O
O O
O O
O O
O O
_ _

Advertisement

Table of Contents
loading

Table of Contents