AN2398 Freescale Semiconductor / Motorola, AN2398 Datasheet - Page 8

no-image

AN2398

Manufacturer Part Number
AN2398
Description
In-Circuit Programming of FLASH Memory via the Universal Serial Bus for the MC68HC908JB8
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2398/D
Programming the
ICP_FLAG
Command Example
8
In-Circuit Programming of FLASH Memory via the USB for the MC68HC908JB8
Commands
Commands
Get Report
Set Report
(Feature)
(Feature)
Since the JB8 is designed for HID applications, it is better to use the HID
command to program the ICP_FLAG (Set_ICP_Flag) so that no extra driver is
needed. One example is to use the HID Set_Feature report with 8 bytes of data
as shown in
using the HID Get_Feature report of 8 bytes of data (Get_Ack), but only one
byte is used.
The 8 bytes of data (Data 1 to Data 8) used in Set_ICP_Flag is for security
reasons. The command is valid only if the 8 bytes of data match the specific
8 bytes of stored in the JB8. One example is the 8 bytes of data at JB8’s $FFE6
to $FFED. After receiving the Set_ICP_Flag command with valid data the
ICP_FLAG will be programmed to zero.
The acknowledgment is returned through data 1 of the Get_Feature report.
Where:
Set_ICP_Flag:
Get_Ack:
Data 1
Byte 1
Freescale Semiconductor, Inc.
For More Information On This Product,
Success if acknowledgment is $00
Fail if acknowledgment is $01
SETUP [21, 09, 00, 03, 01, 00, 08, 00]
DATA0 [XX, XX, XX, XX, XX, XX, XX, XX]
SETUP [A1, 09, 00, 03, 02, 00, 08, 00]
DATA0 [00, XX, XX, XX, XX, XX, XX, XX]
Data 2
Byte 2
Table 4
Go to: www.freescale.com
Data 3
Byte 3
to perform this function. The result is acknowledged by
Table 4. Feature Report Data
Data
Data
Data 4
Byte 4
Data 5
Byte 5
Data 6
Byte 6
Host sends out Set Report
Host sends out Get Report
(Feature)
Host sends out 8 bytes of
specific data
(Feature)
Host sends out 8 bytes of
specific data with data1 =
$00
Comment
Comment
Data 7
Byte 7
MOTOROLA
Data 8
Byte 8

Related parts for AN2398