SCANTECH ID (Champtek company) Discovery SG-20 User Manual

Page 102

Advertising
background image

94

Appendices

S7 Record

The type of record field is 'S7'. The address field contains the starting execution

address and is interpreted as 4-byte address. There is no data field.

S8 Record

The type of record field is 'S8'. The address field contains the starting execution

address and is interpreted as 3-byte address. There is no data field.

S9 Record The type of record field is 'S9'. The address field contains the

starting execution address and is interpreted as 2-byte address. There is no data

field.

S7, S8 and S9 records are interpreted by the Discovery as 'End of File' and serve

no other purpose.

Note 1

The Discovery uses the Motorola S-Rec format.

Note 2

When sending a S-Record to the Discovery, it should be followed by

a CR.

Example of an S-rec file :

This is an example of an S-rec file, describing the pixels of icon #1, which looks

like this :

The File :

S0030000FC
S2240600003F3F3F3C20000004200000072000000720000007200000072000000720000007CE
S22406002020000007200000072000000720000007200000072000000720000007200000077D
S22406004020000007200000072000000720000007200000072000000720000007200000075D
S22406006020000007200000072000000720000007200000073F3F3F3F0F3F3F3F0F3F3F3F1E
S804000000FB

Explanation of the 2nd line of the file :

S2240600003F3F3F3C20000004200000072000000720000007200000072000000720000007CE

This is an S2 record, which contains an address followed by the data to be written.

S2240600003F3F3F3C20000004200000072000000720000007200000072000000720000007CE

Hex value 24 = 36 decimal.
36 byte-pairs follow after this (3 address, 32 data, 1 checksum)

S2240600003F3F3F3C20000004200000072000000720000007200000072000000720000007CE

The address at which the first databyte of this line will be programmed in this

case 0x060000, the location of the icon #1.

Advertising