Renesas M16C Series User Manual page 310

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

Advertisement

M30245 Group
Setting timer A0
www.DataSheet4U.com
(b15)
Setting timer A1
Figure 3.2.3. Set-up procedure of variable-period variable-duty PWM output (1)
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Selecting timer mode and functions
b7
b0
Timer A0 mode register [Address 0396
0
0
0
0
0
0
0
0
TA0MR
Selection of timer mode
Pulse output function select bit
0 : Pulse is not output (TA0
Gate function select bit
b4 b3
0 0 : Gate function not available (TA0
0 (Must always be "0" in timer mode)
Count source select bit
b7 b6
0 0 : f
Setting counter value
(b8)
b7
b0
b7
3E
16
Selecting one-shot timer mode and functions
b7
b0
Timer A1 mode register [Address 0397
0
0
0
1
0
1
1
0
TA1MR
Selection of one-shot timer mode
Pulse output function select bit
1 : Pulse is output
External trigger select bit (Invalid when choosing timer's overflow as trigger)
Trigger select bit
1 : Selected by event/trigger select register
0 (Must always be "0" in one-shot timer mode)
Count source select bit
b7 b6
0 0 : f
page 301 of 354
pin is a normal port pin)
OUT
IN
b7 b6
1
0
0
0
1
1
0
1
1
b0
Timer A0 register [Address 0387
7F
16
TA0
b7 b6
1
0
0
0
1
1
0
1
1
Continued to the next page
3. Timer A Applications
]
16
pin is a normal port pin)
Count source period
Count
source
f(X
) : 16MH
f(Xc
) : 32.768kH
IN
Z
IN
f
62.5ns
1
f
500ns
8
f
2µs
32
f
976.56µs
C32
, 0386
16
16
]
16
Count source period
Count
source
f(X
) : 16MH
f(Xc
) : 32.768kH
IN
Z
IN
f
62.5ns
1
f
500ns
8
f
2µs
32
f
976.56µs
C32
Z
]
Z

Advertisement

Table of Contents
loading

Table of Contents