參數(shù)資料
型號: M34551E8-XXXFP
元件分類: 微控制器/微處理器
英文描述: 4-BIT, OTPROM, MICROCONTROLLER, PQFP48
封裝: 7 X 10 MM, 0.65 MM PITCH, PLASTIC, QFP-48
文件頁數(shù): 152/154頁
文件大?。?/td> 1778K
代理商: M34551E8-XXXFP
APPLICATION
2.3 Timers
2-20
4551 Group User’s Manual
2.3.3 Timer application examples
(1)
Timer operation: measurement of constant period
The constant period by the setting timer count value can be measured.
Outline: The constant period by the timer 1 underflow signal can be measured.
Specifications: Timer 1 and prescaler divides the system clock frequency f(XIN) = 3.6 MHz, and the
timer 1 interrupt request occurs every 4 ms.
Figure 2.3.2 shows the setting example of the constant period measurement.
(2)
Timer operation: constant period counter by timer 2
The constant period by the setting timer count value can be measured.
Outline: The correct time can be measured and the clock which has high-accuracy can be set up
by using a 32.768 kHz quartz-crystal oscillator.
Specifications: Timer 2 divides the sub-clock frequency f(XCIN) = 32.768 kHz, and the timer 2
interrupt request occurs every 250 ms.
Figure 2.3.3 shows the setting example of constant period counter by timer 2.
(3)
Watchdog timer
Watchdog timer provides a method to reset the system when a program run-away occurs.
In the 4551 Group, the bit 12 of timer 2 is used for the watchdog timer.
Accordingly, when the watchdog timer function is set to be valid, execute the WRST instruction at
a certain cycle which consists of timer 2’s 8191 counts or less.
Outline: Execute the WRST instruction in timer 2’s 8192 count at the normal operation. If program
runs wild, the WRST instruction is never executed and system reset occurs.
Specifications: System clock frequency f(XIN) = 3.6 MHz, sub-clock frequency f(XCIN) = 32.768 kHz
are used, and program run-away is detected by executing the WRST instruction in
250 ms.
Figure 2.3.1 shows the watchdog timer function, and Figure 2.3.4 shows the example of watchdog
timer.
Fig. 2.3.1 Watchdog timer function
3FFF16
0000 16
1FFF16
Timer 2 value
WEF flag
WDF flag
Internal reset signal
System reset
“1”
“0”
“1”
“0”
“H”
“L”
WRST
instruction
execution
WRST
instruction
execution
相關(guān)PDF資料
PDF描述
M34554M8-XXXFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PQFP64
M34554MC-XXXFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PQFP64
M34571G6FP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO24
M34584EDFP 4-BIT, OTPROM, 6 MHz, MICROCONTROLLER, PDSO42
M35047-XXXSP 24 X 12 CHARACTERS CRT CHAR DSPL CTLR, PDIP20
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M34551M4 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:4-BIT SINGLE-CHIP MICROCOMPUTER
M34551M4-XXXFP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER for INFRARED REMOTE CONTROL TRANSMITTER
M34551M8 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:4-BIT SINGLE-CHIP MICROCOMPUTER
M34552G8FP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34552G8HFP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER