參數(shù)資料
型號: M34551E8-XXXFP
元件分類: 微控制器/微處理器
英文描述: 4-BIT, OTPROM, MICROCONTROLLER, PQFP48
封裝: 7 X 10 MM, 0.65 MM PITCH, PLASTIC, QFP-48
文件頁數(shù): 146/154頁
文件大小: 1778K
代理商: M34551E8-XXXFP
APPLICATION
2.2 Interrupts
2-14
4551 Group User’s Manual
Fig. 2.2.3 Timer 1 constant period interrupt setting example
1ms = (3.6 MHz)
! 4 ! 3 !
4
!
(74 + 1)
b3
b0
!
0
!!
b3
b0
0
b3
b0
!! ! 1
b3
b0
1
b3
b0
!
0
!
0
1
– 1
Interrupt enable flag INTE
Interrupt control register V1
Disable Interrupts
Timer 1 interrupt is temporarily disabled.
Set Timer Value
Timer 1 count time is set. (The formula is shown VA below.)
Clear Interrupt Request
The timer 1 interrupt activated condition is cleared.
Timer 1 interrupt request flag T1F
g Note when the interrupt request is cleared
When is executed, considering the skip of the next instruction according to the
interrupt request flag T1F, insert the NOP instruction after the SNZT1 instruction.
Enable Interrupts
The timer 1 interrupt which is temporarily disabled is enabled.
Interrupt control register V1
Interrupt enable flag INTE
Constant period interrupt execution started
“!” : it can be “0” or “1.”
“0”
All interrupts disabled ( DI instruction)
Timer 1 interrupt occur disabled ( TV1A instruction)
Clear the timer 1 interrupt activated condition
(SNZT1 instruction)
“0”
Timer 1 interrupt occur enabled ( TV1A instruction)
All interrupts enabled ( EI instruction)
Timer control register V1
Stop Timer Operation
Timer 1 operation is temporarily stopped.
Timer 1 operation stop ( TW2A instruction)
“4A16
Prescaler divided by 4 selected ( TW1A instruction)
Timer count value 74 set ( T1AB instruction)
Start Timer 1 Operation
The timer 1 operation which is temporarily stopped is restarted.
Timer control register W2
Timer 1operation start ( TW2A instruction)
System clock
Instruction
clock
Prescaler
dividing
ratio
Timer 1
count
value
VA The prescaler dividing ratio and timer 1 count value to make the interrupt occur every 1ms are set as follows:
!
!!
“1”
Timer control register W1
Timer 1 reload register R1
相關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
相關代理商/技術參數(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