AN2295 Freescale Semiconductor / Motorola, AN2295 Datasheet - Page 11

no-image

AN2295

Manufacturer Part Number
AN2295
Description
Developers Serial Bootloader for M68HC08 and HCS08 MCUs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Erase Command
The erase command (coded as ‘E’, $45) has only an address field, no length or data fields. The start
address is a 2-byte field, MSB first.
The MCU erases the address block where the specified address resides. The length of block to be erased
is equal to the erase block size (typically dependent on hardware).
After the MCU completes execution of the command, the ACK ($FC) character is sent back to the PC. No
minimum or maximum execution times of the erase command are specified.
Write Command
The write command (coded as ‘W’, $57) has both address and data fields. The address contains the first
address to be programmed. The first byte is the length, followed by the number of bytes to be
programmed. The start address is a 2-byte field, MSB first. The length is a 1-byte field.
After the MCU completes execution of the command, the ACK ($FC) character is sent back to the PC. No
minimum or maximum execution times of the write command are specified.
Freescale Semiconductor
PC TO MCU COMMAND
MCU TO PC RESPONSE
PC TO MCU COMMAND
PC TO MCU COMMAND
MCU TO PC RESPONSE
I ($49)
MCU TO PC RESPONSE
W ($57)
E ($45)
ADDRESS
ADDRESS
START
START
VERSION
CAPS.
AND
Figure 9. Ident Command (FC Protocol Versions 2 & 3, HCS08)
Developer’s Serial Bootloader for M68HC08 and HCS08 MCUs, Rev. 6
LENGTH
SDID
OF MEM
#
COMMAND EXECUTION
MEM #1
START
Figure 10. Erase Command
Figure 11. Write Command
BINARY DATA
MEM #1
END
...
VECTOR TABLE
RELOCATED
ACK
VECTOR TABLE
INTERRUPT
COMMAND EXECUTION
BLOCK SIZE
ERASE
FC Protocol Description
BLOCK SIZE
WRITE
STRING
ACK
ID
0
11

Related parts for AN2295