DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

M38202M2FS View Datasheet(PDF) - MITSUBISHI ELECTRIC

Part Name
Description
Manufacturer
M38202M2FS
Mitsubishi
MITSUBISHI ELECTRIC  
M38202M2FS Datasheet PDF : 66 Pages
First Prev 21 22 23 24 25 26 27 28 29 30 Next Last
MITSUBISHI MICROCOMPUTERS
3820 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Timer 1, Timer 2, Timer 3
Timer 1, timer 2, and timer 3 are 8-bit timers. The count source for
each timer can be selected by timer 123 mode register. The timer
latch value is not affected by a change of the count source. How-
ever, because changing the count source may cause an inadvert-
ent count down of the timer. Therefore, rewrite the value of timer
whenever the count source is changed.
Timer 2 Write Control
If the timer 2 write control bit is “0”, when the value is written in the
address of timer 2, the value is loaded in the timer 2 and the latch
at the same time.
If the timer 2 write control bit is “1”, when the value is written in the
address of timer 2, the value is loaded only in the latch. The value
in the latch is loaded in timer 2 after timer 2 underflows.
Timer 2 Output Control
When the timer 2 (TOUT) is output enabled, an inversion signal
from pin TOUT is output each time timer 2 underflows.
In this case, set the port P56 shared with the port TOUT to the out-
put mode.
Note on Timer 1 to Timer 3
When the count source of timer 1 to 3 is changed, the timer count-
ing value may be changed large because a thin pulse is generated
in count input of timer. If timer 1 output is selected as the count
source of timer 2 or timer 3, when timer 1 is written, the counting
value of timer 2 or timer 3 may be changed large because a thin
pulse is generated in timer 1 output.
Therefore, set the value of timer in the order of timer 1, timer 2 and
timer 3 after the count source selection of timer 1 to 3.
7
0
Timer 123 mode register
(T123M :address 002916)
TOUT output active edge switch bit
0 : Start at "H" output
1 : Start at "L" output
TOUT output control bit
0 : TOUT output disabled
1 : TOUT output enabled
Timer 2 write control bit
0 : Write value in latch and counter
1 : Write value in latch only
Timer 2 count source selection bit
0 : Timer 1 underflow
1 : f(XIN)/16
(Middle-/high-speed mode)
f(XCIN)/16
(Low-speed mode)(Note)
Timer 3 count source selection bit
0 : Timer 1 underflow
1 : f(XIN)/16
(Middle-/high-speed mode)
f(XCIN)/16
(Low-speed mode)(Note)
Timer 1 count source selection bit
0 : f(XIN)/16
(Middle-/high-speed mode)
f(XCIN)/16
(Low-speed mode)(Note)
1 : f(XCIN)
Not used (return "0" when read)
Note : Internal clock φ is f (XCIN)/2 in the low-speed mode.
Fig. 14 Structure of timer 123 mode register
24

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]