Renesas M16C Series User Manual page 180

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

Advertisement

M30240 Group
Figure 2.22: Set-up procedure of one-shot mode
Rev.1.00 Sep 24, 2003 Page 162 of 360
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 : Reserved
Clearing timer Ai interrupt request bit
b7
b0
Timer Ai interrupt control register [Address 0055
0
TAiIC (i=0 to 4)
Interrupt request bit
Setting the TAi
drive capacity
OUT
b7
b0
Timer A output drive capacity register [Address 03FB
TADR
Timer A0
OUT
Timer A1
OUT
Timer A2
OUT
Timer A3
OUT
Timer A4
OUT
Setting one-shot timer's time
(b15)
(b8)
b7
b0
b7
Can be set to 0001
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
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
to 039A
]
16
16
Count source period
Count
b7 b6
source
f(X
0
0
f
1
0
1
f
8
1
0
f
32
Refer to 'Precaution for Timer A (one shot timer mode)'
to 0059
]
16
16
]
16
Start count
drive capacity
drive capacity
drive capacity
drive capacity
drive capacity
Timer A0 register [Address 0387
Timer A1 register [Address 0389
b0
Timer A2 register [Address 038B
Timer A3 register [Address 038D
Timer A4 register [Address 038F
to FFFF
16
16
]
16
]
16
Start count
) : 12MH
IN
Z
83.3ns
667ns
2.67 µs
, 0386
] TA0
16
16
, 0388
] TA1
16
16
, 038A
] TA2
16
16
, 038C
] TA3
16
16
, 038E
] TA4
16
16
Timer A

Advertisement

Table of Contents
loading

Table of Contents