Renesas M16C Series User Manual page 182

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

Advertisement

M30240 Group
Selecting one-shot timer mode and functions
b7
Clearing timer Ai interrupt request bit
b7
Setting the TAi
b7
Setting event/trigger select bit
b7
Note: Set the corresponding port direction register to "0".
Setting one-shot timer
(b15)
b7
Setting count start flag
b7
Figure 2.24: Set-up procedure of one-shot, external trigger selected
Rev.1.00 Sep 24, 2003 Page 164 of 360
b0
Timer Ai mode register (i=0 to 4) [Address 0396
0
1
1
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
1 : Rising edge of TAi
pin's input signal
IN
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
1
0 1 : f
8
1 0 : f
32
1 1 : Reserved
b0
Timer Ai interrupt control register [Address 0055
0
TAiIC (i=0 to 4)
Interrupt request bit
drive capacity
OUT
b0
Timer A output drive capacity register
TADR
Start count
Timer A0
drive capacity
OUT
Timer A1
drive capacity
OUT
Timer A2
drive capacity
OUT
Timer A3
drive capacity
OUT
drive capacity
Timer A4
OUT
b0
One-shot start flag [Address 0382
ONSF
Timer A0 event/trigger select bit
b7 b6
0 0 : Input on TA0
is selected (Note)
IN
(b8)
b0
b7
b0
Can be set to 0001
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
to 039A
]
16
16
Count source period
Count
b7 b6
source
f(X
) : 12MH
IN
Z
0
0
f
83.3ns
1
0
1
f
667ns
8
1
f
0
2.67µs
32
Refer to 'Precaution for Timer A (one shot timer mode)'
to 0059
]
16
16
[Address 03FB 16 ]
b7
b0
Trigger select register [Address 0383
]
16
TRGSR
Timer A1 event/trigger select bit
b1 b0
0 0 :
Input on TA1
Timer A2 event/trigger select bit
b3 b2
0 0 :
Input on TA2
Timer A3 event/trigger select bit
b5 b4
0 0 :
Input on TA3
Timer A4 event/trigger select bit
b7 b6
0 0 :
Input on TA4
Timer A0 register [Address 0387
, 0386
] TA0
16
16
Timer A1 register [Address 0389
, 0388
] TA1
16
16
Timer A2 register [Address 038B
, 038A
] TA2
16
16
Timer A3 register [Address 038D
, 038C
] TA3
16
16
Timer A4 register [Address 038F
, 038E
] TA4
16
16
to FFFF
16
16
]
16
Start count
Timer A
]
16
is selected (Note)
IN
is selected (Note)
IN
is selected (Note)
IN
is selected (Note)
IN

Advertisement

Table of Contents
loading

Table of Contents