M37212 Mitsubishi, M37212 Datasheet - Page 24

no-image

M37212

Manufacturer Part Number
M37212
Description
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
Manufacturer
Mitsubishi
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M37212EFFP
Manufacturer:
OK
Quantity:
269
Part Number:
M37212M4-052SP
Manufacturer:
RENASAS
Quantity:
20 000
Part Number:
M37212M6-105SP
Manufacturer:
ST
Quantity:
100
Part Number:
M37212M6-117SP
Manufacturer:
OKI
Quantity:
172
Part Number:
M37212M6-117SP
Manufacturer:
MIC
Quantity:
1 000
Part Number:
M37212M6-117SP
Manufacturer:
MIT
Quantity:
1 000
Part Number:
M37212M6-117SP
Manufacturer:
MIT
Quantity:
20 000
Part Number:
M37212M6-204FP
Manufacturer:
MIT
Quantity:
292
Part Number:
M37212M8-051SP
Manufacturer:
RENESAS
Quantity:
765
Part Number:
M37212M8-051SP
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
M37212M8-055SP
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
M37212MA-052SP
Manufacturer:
RENASAS
Quantity:
20 000
8.4 TIMERS
This microcomputer has 4 timers: timers 1 to 4. All timers are 8-bit
timers with the 8-bit timer latch. The timer block diagram is shown in
Figure 8.4.3.
All of the timers count down and their divide ratio is 1/(n+1), where n
is the value of timer latch. By writing a count value to the correspond-
ing timer latch (addresses 00F0
is also set to a timer, simultaneously.
The count value is decremented by 1. The timer interrupt request bit
is set to “1” by a timer overflow at the next count pulse, after the
count value reaches “00
8.4.1 Timer 1
Timer 1 can select one of the following count sources:
• f(X
• f(X
The count source of timer 1 is selected by setting bit 0 of timer 12
mode register 1 (address 00F4
Timer interrupt request occurs at timer 1 overflow.
8.4.2 Timer 2
Timer 2 can select one of the following count sources:
• f(X
• Timer 1 overflow signal
• External clock from the TIM2 pin
The count source of timer 2 is selected by setting bits 4 and 1 of
timer 12 mode register (address 00F4
signal is a count source for the timer 2, the timer 1 functions as an 8-
bit prescaler.
Timer 2 interrupt request occurs at timer 2 overflow.
8.4.3 Timer 3
Timer 3 can select one of the following count sources:
• f(X
• External clock from the H
• External clock from the TIM3 pin
The count source of timer 3 is selected by setting bits 5 and 0 of
timer 34 mode register (address 00F5
Timer 3 interrupt request occurs at timer 3 overflow.
8.4.4 Timer 4
Timer 4 can select one of the following count sources:
• f(X
• f(X
• Timer 3 overflow signal
The count source of timer 3 is selected by setting bits 1 and 4 of
timer 34 mode register (address 00F5
signal is a count source for the timer 4, the timer 3 functions as an 8-
bit prescaler.
Timer 4 interrupt request occurs at timer 4 overflow.
24
IN
IN
IN
IN
IN
IN
)/16
)/4096
)/16
)/16
)/16
)/2
16
.”
SYNC
16
16
).
pin
to 00F3
16
16
16
).
16
). When timer 1 overflow
). When timer 3 overflow
: timers 1 to 4), the value
M37212M4/M8–XXXSP, M37212M6–XXXSP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
At reset, timers 3 and 4 are connected by hardware and “FF
automatically set in timer 3; “07
lected as the timer 3 count source. The internal reset is released by
timer 4 overflow in this state and the internal clock is connected.
At execution of the STP instruction, timers 3 and 4 are connected by
hardware and “FF
However, the f(X
So set both bit 0 of timer 34 mode register (address 00F5
6 at address 00C7
(f(X
state is released by timer 4 overflow in this state and the internal
clock is connected.
As a result of the above procedure, the program can start under a
stable clock.
The timer-related registers is shown in Figures 8.4.1 and 8.4.2.
IN
)/16 is selected as the timer 3 count source). The internal STP
IN
with ON-SCREEN DISPLAY CONTROLLER
16
16
)/16 is not selected as the timer 3 count source.
” is automatically set in timer 3; “07
to “0” before execution of the STP instruction
MITSUBISHI MICROCOMPUTERS
M37212EFSP/FP
16
” in timer 4. The f(X
16
IN
” in timer 4.
)/16 is se-
16
Rev. 1.0
) and bit
16
” is

Related parts for M37212