Rev.2.00 Oct 16, 2006 page 301 of 354
REJ09B0340-0200
M30245 Group
3. Timer A Applications
Figure 3.2.3. Set-up procedure of variable-period variable-duty PWM output (1)
Continued to the next page
Setting timer A0
Pulse output function select bit
0 : Pulse is not output (TA0
OUT
pin is a normal port pin)
Selecting timer mode and functions
Timer A0 mode register [Address 0396
16
]
TA0MR
Gate function select bit
0 0 :
Gate function not available (TA0
IN
pin is a normal port pin)
b4 b3
Selection of timer mode
b7
b0
0
0
0
0
0
0 (Must always be “0” in timer mode)
Count source select bit
0 0 : f
1
b7 b6
0
0
0
Setting counter value
b7
b0
(b15)
(b8)
b7
b0
Timer A0 register [Address 0387
16
, 0386
16
]
TA0
3E
16
7F
16
Setting timer A1
Pulse output function select bit
1 : Pulse is output
Selecting one-shot timer mode and functions
Timer A1 mode register [Address 0397
16
]
TA1MR
External trigger select bit (Invalid when choosing timer's overflow as trigger)
Selection of one-shot timer mode
b7
b0
1
0
0
1
1
0 (Must always be “0” in one-shot timer mode)
Trigger select bit
1 : Selected by event/trigger select register
0
0
0
Count source select bit
0 0 : f
1
b7 b6
Count source period
f(X
IN
) : 16MH
Z
f(Xc
IN
) : 32.768kH
Z
b7 b6
Count
source
62.5ns
500ns
2µs
976.56µs
0
0
0
1
1
0
1
1
f
1
f
8
f
32
f
C32
Count source period
f(X
IN
) : 16MH
Z
f(Xc
IN
) : 32.768kH
Z
b7 b6
Count
source
62.5ns
500ns
2µs
976.56µs
0
0
0
1
1
0
1
1
f
1
f
8
f
32
f
C32
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...