参数资料
型号: M34551M4-XXXFP
元件分类: 微控制器/微处理器
英文描述: 4-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP48
封装: 7 X 10 MM, 0.65 MM PITCH, PLASTIC, QFP-48
文件页数: 3/155页
文件大小: 1467K
代理商: M34551M4-XXXFP
APPLICATION
2.3 Timers
2-22
4551 Group User’s Manual
Fig. 2.3.3 Constant period counter by timer 2 setting example
0.25s = (32.768kH z)
! 213
–1
g0 h
b3
b0
0
Interrupt enable flag INTE
Interrupt control register V1
Disable Interrupts
Timer 2 interrupt is temporarily disabled.
All interrupts disabled (DI instruction)
Timer 2 interrupt occur disabled (TV1A instruction)
“0”
!
b3
b0
01
b3
b0
00
Set Timer Value
Timer 2 count time is set. (Only when timer count value is 2 or 2 , the formula is shown VA below.)
Timer count value 2 set (TW2A instruction)
When timer count value = 2 ,
timer control register W2
When timer count value = 2 ,
timer control register W2
13
14
13
14
!!
13
14
Reset Timer Value and Set Count Source
Timer 2 counter is initialized. Initialization is performed only by setting W23 from 0 to 1.
Timer control register W2
This processing and setting timer value
shown can be executed simultaneously.
Timer control register W2
b3
b0
0
b3
b0
1
b3
b0
0 !! !
!! !
Timer 2 reset
Timer 2 count source is returned to XCIN.
Clear Interrupt Request
The timer 2 interrupt activated condition is cleared.
Timer 2 interrupt request flag T2F
Clear the timer 2 interrupt activated condition
(SNZT2 instruction)
“0”
g Note when the interrupt request is cleared
When is executed, considering the skip of the next instruction according to the
interrupt request flag T2F, insert the NOP instruction after the SNZT2 instruction.
Enable Interrupts
The timer 2 interrupt which is temporarily disabled is enabled.
Interrupt control register V1
Interrupt enable flag INTE
Timer 2 interrupt occur enabled (TV1A instruction)
All interrupts enabled (EI instruction)
“1”
b3
b0
1 !! !
Constant period interrupt execution started
V A The timer 2 count value to make the interrupt occur every 0.25s is set as follows:
“!” : it can be “0” or “1.”
Sub-clock
Timer 2 count value
相关PDF资料
PDF描述
M37272M8-XXXSP 8-BIT, MROM, 8.1 MHz, MICROCONTROLLER, PDIP42
M37280MKH-XXXSP 8-BIT, MROM, 8.1 MHz, MICROCONTROLLER, PDIP64
MSP430F5502IRGZ 16-BIT, FLASH, 25 MHz, RISC MICROCONTROLLER, PQCC48
MPC9299FN 400 MHz, OTHER CLOCK GENERATOR, PQCC28
M48T512Y-85PM1 REAL TIME CLOCK, PDIP32
相关代理商/技术参数
参数描述
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
M34552M4H-XXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34552M4-XXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER