home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / sci / electron / 18819 < prev    next >
Encoding:
Text File  |  1992-11-12  |  2.6 KB  |  72 lines

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!munnari.oz.au!metro!sunb!macadam!johnh
  3. From: johnh@macadam.mpce.mq.edu.au (John Haddy)
  4. Subject: Re: Motorola S19 ==> S2 record. How?
  5. Message-ID: <1992Nov13.033801.26729@mailhost.ocs.mq.edu.au>
  6. Sender: johnh@macadam (John Haddy)
  7. Nntp-Posting-Host: macadam.mpce.mq.edu.au
  8. Organization: Macquarie University, Sydney
  9. References:  <92314.232650U40348@uicvm.uic.edu>
  10. Date: Fri, 13 Nov 1992 03:38:01 GMT
  11. Lines: 59
  12.  
  13. As far as I can determine, your programmer will probably work.
  14.  
  15. S19 file describes a file which may contain S0,S1 and S9 records. An S0 record is
  16. an optional header record which may contain the file name, etc (i.e. used only to
  17. aid humans in identifying the file. Data is contained in S1 records, whereas an
  18. S9 record denotes the end of file.
  19.  
  20. The syntax of an S record is:
  21.  
  22.     `S' T LL AA ... AA DD ... DD CC
  23.  
  24.  
  25. where:    S    indicates start of record
  26.     T    record type identifier
  27.         0 = header
  28.         1 = 16 bit address data record
  29.         2 = 24 bit address data record
  30.         3 = 32 bit address data record
  31.         7 = (possibly) 32 bit address end of file record
  32.         8 = (possibly) 24 bit address end of file record
  33.         9 = end of file record (maybe only for 16 bit address)
  34.     LL    number of bytes in record
  35.     AA    contains 4, 6 or 8 hex digits (depending on record type)
  36.         representing the memory address where the first byte of
  37.         data in this record is located.
  38.     DD    data field hex digits, two per byte, consistent with the LL
  39.         length parameter.
  40.     CC    a two digit checksum field, calculated by one's complementing
  41.         the sum (modulo 256) of the byte count, the address field and
  42.         the data field.
  43.  
  44. Although this is supposition (my sources don't make this extremely clear), I
  45. believe that S19 is a shorthand description of a file containing S1 and S9
  46. records, similarly for S28 (S2, S8) and S37 (S3,S7) files.
  47.  
  48.  
  49. Hope this helps
  50.  
  51.     JohnH
  52.  
  53. references:
  54.  
  55. James M. Sibigtroth    "Understanding Small Microcontrollers"
  56.         Motorola CSIC Microcontroller Division
  57.     (a text book supplied with the M68HC05KICS evaluation kit)
  58.  
  59. Logical Devices, Inc    Allpro-88 User's Guide
  60.     (user's manual for our universal device programmer)
  61.  
  62. ----------------------------------------------------------------------------
  63.  
  64.       |  _  |_   _   |_|  _   _|  _|              Electronics Department
  65.     |_| (_) | | | |  | | (_| (_| (_| \/           School of MPCE
  66.     ---------------------------------/-           Macquarie University
  67.                                                   Sydney, AUSTRALIA 2109
  68.  
  69.     Email: johnh@mpce.mq.edu.au, Ph: +61 2 805 8959, Fax: +61 2 805 8983
  70.  
  71. ----------------------------------------------------------------------------
  72.