Command description – Rainbow Electronics T89C5121 User Manual

Page 70

Advertising
background image

70

A/T8xC5121

4164G–SCR–07/06

Record Type:

Record Type specifies the command type. This field is used to interpret the
remaining information within the frame. The encoding for all the current
record types are described in Table 51.

Data/Info:

Data/Info is a 64 bytes length field. It consists of 64 bytes encoded as pairs
of hexadecimal digits. The meaning of data depends on the Record Type.

Checksum:

The two’s complement of the 8-bit bytes that result from converting each pair
of ASCII hexadecimal digits to one byte of binary, and including the Reclen
field to and including the last byte of the Data/Info field. Therefore, the sum
of all the ASCII pairs in a record after converting to binary, from the Reclen
field to and including the Checksum field, is zero.

Notes:

1. A data byte is represented by two ASCII characters.
2. When the field Load Offset is not used, it should be coded as 2 bytes (00h 00h).

Command Description

Table 51. Frame Description

Command

Command Name

data[0]

data[1]

Command Effect

00h

Program Data

Program 64 Data Bytes

01h

End Of File

-

-

End of File

03h

Write Function

07h

05h

05h

03h

00h

01h

01h

Full Chip Erase

Program SSB level1

Program SSB level2

LJMP(data[2],data[3])
(LJMP0000h)

04h

Display Function

Data[0:1] = start address

Data [2:3] = end address

Data[4] = 00h -> Display
data

Data[4] = 01h -> Blank
check

Data[4] = 03h -> Display
CRAM

Display Data

05h

Read Function

07h

0Fh

00h

00h

Read SSB

Read Bootloader Version

06h

Direct Load of Baud Rate

HSB

LSB

Not implemented

Advertising