home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / sci / electron / 18720 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  3.1 KB

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!wet!mcs
  2. From: mcs@wet.UUCP (Gil Nardo)
  3. Newsgroups: sci.electronics
  4. Subject: Re: Motorola S19 ==> S2 record. How?
  5. Message-ID: <4772@wet.UUCP>
  6. Date: 11 Nov 92 07:00:43 GMT
  7. References: <92314.232650U40348@uicvm.uic.edu>
  8. Distribution: usa
  9. Organization: Wetware Diversions, San Francisco
  10. Lines: 72
  11.  
  12. U40348@uicvm.uic.edu (Jay Lorenzana) writes:
  13. > Our school is ill-equipped.  We have an old eprom burners
  14. > that will only program Motorola S1 and S2 record files.  How
  15. > can I convert my S19 record file to S1 and S2?
  16. > Are there any complications in modifying hex files?
  17. > And what is a hex to obj file converter?
  18. > Thanks for any help you can give,
  19. >                                   Jay
  20. > A piece of my s19 rec:
  21. > S123C00000000000000000BDC048BDC09ABDC063BDC0A5BDC0BA7FC0037DC0002605BDC0E0
  22. > S123C020CE20F30F7DC002261A1A8300FF2B02200DCE10001F2E40FC962ED72F20D5BDC2F2
  23. > S123C0408120D0BDC28B20CBCE10008EDFFF862F97EECCD000DDEFC60CE73F86100686016F
  24. > ......
  25. > lines deleted
  26. > ......
  27. > S123C3E02A2A204552524F52202A2A202020202020202020202020202020202055702020A2
  28. > S121C40020202020202020202020446F776E204A4F59535449434B204D4F444520202D
  29. > S123D0008600BDC285FEC001140301BDC156432607BDC110BDC0BA3B432607BDC237BDC0C4
  30. > S123D020BA3B432607BDC1CFBDC0BA3B4326158C000026013BBDC1D01400017DC00427038E
  31. > S121D040BDC0BA3B8C00002603BDC110BDC0FDBDC14F8C00112706BDC0BABDC3313BE5
  32. > S9030000FC
  33.  
  34. The sample you have shown appear to be the usual S-records,
  35. where S1 lines refer to 2 byte address references, and the
  36. S9 line terminates the S1 block.
  37. I'm not sure what exactly it is you are trying to do. The
  38. two possibilities are that you are trying to decipher what
  39. each line means, and/or you are trying to convert S1 records
  40. to S2 records, i.e., your eprom burner only accepts 3 byte
  41. address references.  If you are trying to interpret the S1
  42. records, here's an example:
  43.  
  44. S123D020BA3B432607BDC1CFBDC0BA3B4326158C000026013BBDC1D01400017DC00427038E
  45.  
  46. S1 - indicates a 2 byte address location for data
  47.  
  48. 23 - there are 35 bytes to interpret (70 ascii chars past this point)
  49.     hex(23) = dec(35)
  50.  
  51. D020 - this is the 2 byte address where data bytes are going to go
  52.     hex(D020) = dec(53280)
  53.  
  54. BA3B432607BDC1CFBDC0BA3B4326158C000026013BBDC1D01400017DC0042703
  55.     34 data bytes expressed as ascii-hex pairs
  56.  
  57. 8E - this is the checksum, which is the least significant byte of the
  58.      one's complement of the sum of the values. In this case
  59.  
  60.     checksum = 23 + D0 + 20 + BA + ... + 03 = c71
  61.     ~checksum = FFFFFFF38F
  62.         checksum+1 = FFFFFFF38E
  63.     LSBYTE(checksum) = 8E
  64.  
  65.  
  66.  
  67. The S9 line is interpreted as follows:
  68.  
  69. S9030000FC
  70.  
  71. S9 - end of S1 lines that preceded this line
  72. 03 - 3 more bytes follow (6 chars past this point)
  73. 0000 - address field
  74. FC - checksum of this record (same formulation as S1 record above)
  75.  
  76. If you need to convert from an S-Record file to a binary image, there
  77. is a program at the motorola BBS called convert.exe.  The BBS number
  78. is 1-512-891-FREE.
  79. -- 
  80. Gil Nardo                  | mcs@wet.com
  81. Migrant Computing Services | (415)664-1032
  82. 1032 Irving Street, #435   |-----------------
  83. San Francisco, 94122       | Supernova = *!
  84.