Renesas M16C Series User Manual page 36

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

Advertisement

M30245 Group
www.DataSheet4U.com
Figure 2.2.21. Set-up procedure of one-shot mode
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Selecting one-shot timer mode and functions
b7
b0
Timer Ai mode register (i=0 to 4) [Address 0396
0 0
1 1 0
TAiMR (i=0 to 4)
Selection of one-shot timer mode
Pulse output function select bit
1 : Pulse is output
External trigger select bit
When internal trigger is selected, this bit can be "1" or "0"
Trigger select bit
0 : When the one-shot start flag is set "1"
0 (Must always be "0" in one-shot timer mode)
Count source select bit
b7 b6
0 0 : f
1
0 1 : f
8
1 0 : f
32
1 1 : f
C32
Clearing timer Ai interrupt request bit
b7
b0
Timer Ai interrupt control register
0
[Addresses 0054
TAiIC (i=0 to 4)
Interrupt request bit
Setting one-shot timer's time
(b15
(b8)
b7
b0
b7
b0
Setting clock prescaler reset flag
(This function is effective when f
is selected as the count source. Reset the prescaler for generating fc
C32
by dividing the X
by 32.)
CIN
b7
b0
Clock prescaler reset flag [Address 0381
CPSRF
Clock prescaler reset flag
0 : No effect
1 : Prescaler is reset (When read, the value is "0")
Setting count start flag
b7
b0
Count start flag [Address 0380
TABSR
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
Setting one-shot start flag
b7
b0
One-shot start flag [Address 0382
0
ONSF
Timer A0 one-shot start flag
Timer A1 one-shot start flag
Timer A2 one-shot start flag
Timer A3 one-shot start flag
Timer A4 one-shot start flag
page 27 of 354
to 039A
16
Count source period
Count
b7 b6
source
f(X
):16MHz f(X
IN
0
0
f
1
0
1
f
8
1
0
f
32
1
1
f
C32
(Please refer to the notes on the one-shot timer mode of Timer A.)
, 0045
, 0047
, 0057
, 0059
]
16
16
16
16
16
Timer A0 register [Address 0387
, 0386
16
Timer A1 register [Address 0389
, 0388
16
Timer A2 register [Address 038B
, 038A
16
Timer A3 register [Address 038D
, 038C
16
Timer A4 register [Address 038F
, 038E
16
Can be set to 0001
to FFFF
16
16
]
16
]
16
]
16
Start count
]
16
):32.768kHz
CIN
62.5ns
500ns
2µs
976.56µs
] TA0
16
] TA1
16
] TA2
16
] TA3
16
] TA4
16
32
2. Timer A

Advertisement

Table of Contents
loading

Table of Contents