参数资料
型号: M30201F4T-FP
元件分类: 微控制器/微处理器
英文描述: 16-BIT, FLASH, 10 MHz, MICROCONTROLLER, PQFP56
封装: PLASTIC, QFP-56
文件页数: 89/158页
文件大小: 1633K
代理商: M30201F4T-FP
36
Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Interrupts
Changing the Interrupt Control Register
< Program examples >
The program examples are described as follow:
Example 1:
INT_SWITCH1:
FCLR
I
; Disable interrupts.
AND.B
#00h, 0055h
; Clear TA0IC int. priority level and int. request bit.
NOP
; Four NOP instructions are required when using HOLD function.
NOP
FSET
I
; Enable interrupts.
Example 2:
INT_SWITCH2:
FCLR
I
; Disable interrupts.
AND.B
#00h, 0055h
; Clear TA0IC int. priority level and int. request bit.
MOV.W
MEM, R0
; Dummy read.
FSET
I
; Enable interrupts.
Example 3:
INT_SWITCH3:
PUSHC
FLG
; Push Flag register onto stack
FCLR
I
; Disable interrupts.
AND.B
#00h, 0055h
; Clear TA0IC int. priority level and int. request bit.
POPC
FLG
; Enable interrupts.
The reason why two NOP instructions or dummy read are inserted before FSET I in Examples 1 and
2 is to prevent the interrupt enable flag I from being set before the interrupt control register is rewritten
due to effects of the instruction queue.
If changing the interrupt control register using an instruction other than the instructions listed hear, and
if an interrupt occurs associated with this register during execution of the instruction, there can be
instances in which the interrupt request bit is not set. To avoid this problem, use one of the instruc-
tions given below to change the register.
Following instructions: AND, OR, BCLR or BSET
相关PDF资料
PDF描述
M38259EFFS 8-BIT, UVPROM, 8 MHz, MICROCONTROLLER, CQCC100
M38259EF-XXXFP 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PQFP100
M37471E8SS 8-BIT, UVPROM, 8 MHz, MICROCONTROLLER, CDIP42
M38503E6FP 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PDSO42
M37212M6-XXXFP 8-BIT, MROM, MICROCONTROLLER, PQFP80
相关代理商/技术参数
参数描述
M30201F4T-XXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
M30201F4T-XXXSP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
M30201F4-XXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
M30201F4-XXXSP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
M30201F6 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER