English
Language : 

HD6417750RF240DV Datasheet, PDF (900/1132 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family / SH7750 Series
Section 19 Interrupt Controller (INTC)
SH7750, SH7750S, SH7750R Group
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; R0 : tmp
;; R1 : Original SR
;; R2 : Original ICR
;; R3 : ICR Address
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
NMIH:
; (1) Set SR.IMASK = H'F
stc SR, R1 ;
Store SR
mov R1,R0
or
#H'F0,R0
ldc R0, SR
; (2) Reverse ICR.NMIE
mov.l #ICR, R3
mov.w @R3, R2 ;
Store ICR
mov.w #H'0100, R0
xor R2, R0
mov.w R0, @R3 ;
Write ICR.NMIE inverted (dummy)
bra NMIH1
nop
.pool
.align 4
NMIH2:
;
mov.w @R3, R0 ;
dummy read
mov.w R2, @R3 ;
Write ICR.NMIE
stc SR, R0
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R1, SR ;
Restore SR
bra NMIH3
Page 848 of 1076
R01UH0456EJ0702 Rev. 7.02
Sep 24, 2013