21-31
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
21.5.7.
FLASH CHECKSUM Start Command
“FLASH CHECKSUM Start” command can be set under “mc_state_
idle
” state
.
“FLASH CHECKSUM Start” command starts checksum calculation to FLASH,” the state
is moved to
“mc_state_checksum” after the memory check start.
After finishing the memory check, HW Processor makes an interrupt on default and goes to
“mc
_state_idle
”
.
Please check PROCESSING bit field in STATUS register, it shows process completed or on processing, and
please check RESULT register, it shows CHECKSUM calculation result after process completed, and
compare with original checksum value.
When state transition is occurred, HW Processor makes an interrupt on default, the interrupt can be
masked by
INTMASK on
“
21.5.11. Memory Check Function Registers
”
.
Table 21.5.7.1 shows
“FLASH CHECKSUM Start” command
flow.
Figure 21.5.7.1
“FLASH
CHECKSUM
Start”
Command Flow
Chec
k
Co
m
pl
et
io
n
Check STATE = "mc_state_idle"
“F
LA
SH
C
H
EC
KS
U
M
St
ar
t”
co
m
m
and
Set HWPCMDTRG.HWP0TRG
Set Memory Check COMMAND
-
COMMAND: "
FLASH CHECKSUM Start
"
-
MEMADDR
-
MEMSIZE
in Memory Check Function Registers(See Table 21.5.11.1)
Check STATE = "mc_state_checksum", if necessary
Cortex Set HW Processor
Wait HWPINTF.HWP0IF = 1
HW Processor interrupts to cortex
Wait HWPINTF.HWP0IF = 1
Co
m
par
e
Compare with original checksum value
Check STATUS register
Get RESULT register
HW Processor interrupts to cortex
Wait STATE = "mc_state_idle"
Wait STATUS.READY = mc_status_ready
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...