| поискавой системы для электроныых деталей |
|
UM0144 датащи(PDF) 43 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0144 датащи(HTML) 43 Page - STMicroelectronics |
|
43 / 92 page ![]() ST7 Assembler Linker 5 OBSEND UM0144 43/92 The first thing to note is that every thing is in printable ASCII. Eight bit numbers are converted into two-characters hexadecimal representation. Each line begins with an ASCII ':' ($3A) character. The next two characters form a byte that declares how many data bytes follow in the data byte section little further along. The next four characters form a 16-bit high-byte first number that specifies the address for the first byte of this data; the rest follows on sequentially. The next two characters are the record type for this line: 00 is a data line, and 01 signals EOF. The following characters until the last two are up the 16 data bytes for this line and, the last two are a checksum for the line, calculated by starting with $00 subtracting the real value of all characters sent after the ':' until the checksum itself. 'Real value' means that for example, the two characters 3 and 0 should subtract $30 from the checksum, not 51 and 48. Every line ends with a CR-LF combination, $0A and $0D. The last line sent must be an END-OF-FILE line, which is denoted by a line with no data bytes and a record type of 01 instead of 00. Giving I32 or i32 instead of intel as the argument uses the same format, but sends 32 bytes of data per line. 5.2.6 Motorola S-record format <format>= s This is another complex method for sending data. Again it cuts the data into 16-byte 'records' with overhead either sides. S-record come in four types: S0, known as a header record, S1 and S2 data records with 16 and 24-bit address fields, and S9and S8 EOF records with 16 and 24- bit address fields. Note: The convention is to close a S1 16-bit data record with the S9 16-bit EOF record, and to close a S2 24-bit data record with the S8 24-bit EOF record. S10D0010E0006285E000628562856D S1 record type 0D number of bytes left, address, data and checksum (13 in decimal) 0010 address .... data bytes 6D checksum The first two characters define the record type: S0, S1, S2, S8 or S9. The next two characters form a hexadecimal representation of the numbers of bytes left in the record (i.e., numbers of characters /2) This count must include the checksum and addresses bytes that follow. The address field is four characters wide in S0, S1, S9 and six characters wide in S2 and S8. The most significant character always comes first. OBSEND will always use S1 type records wherever possible (i.e., when the address is less than $10000) and use S2 type data records where it has to (i.e., address > $FFFF). Up to 16 data bytes then follow, with the checksum appended on the end. The checksum is calculated by starting with $FF and subtracting the 'real value' of all bytes sent from and |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |