m3819 Renesas Electronics Corporation., m3819 Datasheet - Page 167

no-image

m3819

Manufacturer Part Number
m3819
Description
Mitsubishi 8-bit Single-chip Microcomputer 740 Family / 38000 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
m38197EAFP
Manufacturer:
QFP
Quantity:
20 000
Part Number:
m38197MA-160FP
Manufacturer:
RENESAS
Quantity:
4
Part Number:
m38197MAA-608FP
Manufacturer:
MIT
Quantity:
136
Part Number:
m38197MAA-608FP
Manufacturer:
MIT
Quantity:
1 000
Part Number:
m38197MAA-608FP
Manufacturer:
MIT
Quantity:
20 000
Part Number:
m38197MAA-625FP
Manufacturer:
SEMTECH
Quantity:
300
Part Number:
m38197MAA-639FP
Manufacturer:
RENESAS
Quantity:
756
Part Number:
m38198MCA-834FP
Manufacturer:
RENESAS
Quantity:
52
Part Number:
m38199MF-065FP
Manufacturer:
MITSUBISHI
Quantity:
20 000
Part Number:
m38199MF-205FP
Manufacturer:
MITSUBISHI
Quantity:
20 000
Part Number:
m38199MF-289FP
Manufacturer:
MITSUSHITA
Quantity:
20 000
2. APPLICATION
Fig. 2.7.9 Control procedure [Clock count using ZCR interrupt (using a noise filter)]
Control procedure :
Figure 2.7.9 shows a control procedure.
SEI
CLT
CLD
CPUM
ZCRCON
Wait of 2 sampling clocks
IREQ1
NOP
ICON1
1 second counter
(Internal RAM)
CLI
Initialization
ZCR interrupt processing routine (Note 1)
1 second counter
Clock count up (second–year)
1 second counter – 1
(Address:3B
(Address:39
(Address:3C
(Address:3E
Push register to stack
1 second counter = 0?
CLD (Note 3)
CLT (Note 2)
Pop registers
RESET
Set the related registers according to Figure 2.7.8.
At the falling edge of the commercial frequency (50 Hz or 60 Hz), the ZCR interrupt occurs.
The clock is counted up every second in the ZCR interrupt processing routine.
RTI
~ ~
= 0
16
16
16
16
)
), bit6
), bit1
), bit1
50(60)
00000001
0
0
1
50(60)
3819 Group USER’S MANUAL
2
0
2.7 Zero cross detection circuit
All interrupts : Disabled
Main clock division ratio : select the high-speed
Setting of the Zero cross detection control register
Set the INT
ZCR interrupt : Enabled
Input 50 Hz (60 Hz)
Interrupts : Enabled
Note 2 : When using the index X mode flag (T).
Note 3 : When using the decimal mode flag (D).
Push into the register used in the interrupt
processing routine.
Input 50 Hz (60 Hz)
Pop registers which is pushed to stack
Note 1 : The ZCR interrupt occurs with delay of the
Zero cross by a minimum of 1 sampling
clock or a maximum of 2 sampling clocks
because a noise filter is used.
1
/ZCR interrupt request bit to “0”
mode
MITSUBISHI MICROCOMPUTER
3819 Group
153

Related parts for m3819