Hitachi F-ZTAT H8/3039 Series Hardware Manual page 462

Single-chip microcomputer
Table of Contents

Advertisement

Set pins to boot program mode
1
and execute reset-start
Host transfers data (H'00)
2
continuously at prescribed bit rate
This LSI measures low period
of H'00 data transmitted by host
3
This LSI calculates bit rate
and sets value in bit rate register
After bit rate adjustment, this LSI
4
transmits one byte of H'00 data to
host to indicate end of adjustment
Host confirms normal reception
of bit rate adjustment end
5
indication (H'00), and transmits
one byte of H'55 data
After receiving H'55, this LSI
sends H'AA and receives two bytes
6
of the byte count (N) of the program
transferred to the on-chip RAM.
This LSI transfers the user
program to RAM.
This LSI calculates the remaining
7
number of bytes to be sent (N=N-1).
Transfer
end byte count
After branching to the
RAM boot program area
(H'FEF10 to H'FF2FF),
this LSI checks the data in
the flashmemory user area.
8
All data=H'FF?
After sending H'AA, this LSI
branches to the RAM area
9
(H'FF300) and executes the user
program transferred to the RAM.
Start
*1
*2
No
N=0?
Yes
No
Yes
Erase all blocks of flash
memory.
Figure 15-6 Boot Mode Execution Procedure
1
Set this LSI to the boot mode and reset starts the LSI.
Set the host to the prescribed bit rate (4800, 9600)
2
and consecutively send H'00 data in 8-bit data,
1 stop bit format.
3
This LSI repeatedly measures the RXD1 pin Low
period and calculates the asynchronous
communication bit rate at which the host
performs transfer.
At the end of SCI bit rate adjustment, this LSI sends
4
one byte of H'00 data to signal the end of adjustment.
Check if the host normally received the one byte bit
5
rate adjustment end signal sent from this LSI and
sent one byte of H'55 data.
After H'55 is sent, the host receives H'AA and sends
6
the byte count of the user program that is
transferred to this LSI.
Send the 2-byte count in upper byte and lower byte
order. Then sequentially send the program set by
the user.
This LSI sequentially sends (echo back) each byte of
the received byte count and user program to the host
as verification data.
This LSI sequentially writes the received user
7
program to the on-chip RAM area (H'FF300–H'FFEFF).
Before executing the transferred user program, this LSI
8
checks if data was written to flash memory after
control branched to the RAM boot program area
(H'FEF10–H'FF2FF). If data was already written to
flash memory, all the blocks are erased.
After sending H'AA, this LSI branches to the on-chip
9
RAM area (H'FF300) and executes the user program
written to that area.
Notes: 1.
The RAM area that can be used by the user is
3.0k Byte. Set the transfer byte count to within
3.0k Byte. Always send the 2-byte transfer byte
count in upper byte and lower byte order.
Transfer byte count example: For 256 bytes (H'0100),
upper byte H'01, lower byte H'00.
2.
Set the part that controls the user program flash
*3
memory at the program according to the flash
memory programming/erase algorithms described later.
3.
When a memory cell malfunctions and cannot be
erased, this LSI sends one H'FF byte as an erase
error and stops the erase operation and subsequent
operations.
453

Advertisement

Table of Contents
loading

This manual is also suitable for:

F-ztat h8/3039F-ztat h8/3038F-ztat h8/3037F-ztat h8/3036

Table of Contents