Datasheet

Section 7 ROM
REJ09B0465-0300 Rev. 3.00 Page 225 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
(10) Example of Issuing Commands
Figures 7.20 and 7.21 show examples of issuing programming commands and erasure commands,
respectively. Figure 7.22 shows examples of issuing read-array commands.
@MOV.W #H'4141,R0
@MOV.W #H'1234,R1
@MOV.W #H'5678,R2
@MOV.W R0, @H'00004000
@MOV.W R1, @H'00004000
@MOV.W R2, @H'00004000
H'004000 H'004000 H'004000
H'4141 H'1234 H'5678
@MOV.B #H'41, R0L
@MOV.W #H'1234,R1
@MOV.W #H'5678,R2
@MOV.B R0L, @H'00004000
@MOV.B R1H, @H'00004000
@MOV.B R1L, @H'00004000
@MOV.B R2H, @H'00004000
@MOV.B R2L, @H'00004000
H'004000 H'004000 H'004000
H'41 H'12 H'34
H'004000 H'004000
H'56 H'78
H'78H'004003
H'56 H'004002
H'34H'004001
H'12
H'004000
H'78H'004003
H'56 H'004002
H'34H'004001
H'12
H'004000
Using word-length instructions to issue programming commands (FMWUS = 1)
Target address
for writing
Data
[Programming Example]
[Programming Example]
; Programming command
; Writing of data
; Writing of data
; First command
; Second command
; Third command
; Programming command
; Writing of data
; Writing of data
; First command
; Second command
; Third command
; Fourth command
; Fifth command
Target address
for writing
Data
Using byte-length instructions to issue programming commands (FMWUS = 0)
Issuing of first
command
Prefetching and other
internal processing
Issuing of second
command
Prefetching and other
internal processing
Issuing of third
command
Programming of flash
ROM starts
Internal address bus
Internal data bus
Internal address
bus
Internal data bus
Issuing of first
command
Issuing of second
command
Issuing of third
command
Programming
of flash ROM
starts
Issuing of fourth
command
Issuing of fifth
command
Prefetching and other
internal processing
Prefetching and other
internal processing
Prefetching and other
internal processing
Prefetching and other
internal processing
Figure 7.20 Examples of Issuing Programming Commands