
715
;
MOV.L #Wait10u,R3
MOV.L #FLMCR1,R0
OR.B #SWESET,@(R0,GBR)
;
Set SWE
EWait_1 SUBC R2,R3
;
Wait 10 µs
BF EWait_1
;
MOV.L #0,R9
;
Initialize n (R9) to 0
;
MOV.B @(6,R5),R0
MOV.B R0,@(EBR1,GBR)
;
Erase memory block (EBR1) setting
MOV.B @(7,R5),R0
MOV.B R0,@(EBR2,GBR)
;
Erase memory block (EBR2) setting
;
MOV.L #FLMCR1,R0
MOV.L @R5,R6
;
Erase memory block start address -> R6
MOV.L #H’020000,R7
CMP/GT R6,R7
BT EraseLoop
MOV.L #FLMCR2,R0
;
EraseLoop .EQU $
MOV.L #WDT_TCSR,R1
;
Enable WDT
MOV.W #WDT_9m,R3
;
9.2 ms cycle
MOV.W R3,@R1
;
MOV.L #Wait200u,R3
OR.B #ESUSET,@(R0,GBR)
;
Set ESU
EWait_2 SUBC R2,R3
;
Wait 200 µs
BF EWait_2
;
MOV.L #Wait5m,R3
OR.B #ESET,@(R0,GBR)
;
Set E
EWait_3 SUBC R2,R3
;
Wait 5 ms
BF EWait_3
;
MOV.L #Wait10u,R3
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...