<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic s19 File Layout in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138485#M4988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody has the s19 file layout?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, what means the first byte on the first line, and so on...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bfac&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2007 21:52:05 GMT</pubDate>
    <dc:creator>bfac</dc:creator>
    <dc:date>2007-06-27T21:52:05Z</dc:date>
    <item>
      <title>s19 File Layout</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138485#M4988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody has the s19 file layout?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, what means the first byte on the first line, and so on...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bfac&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 21:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138485#M4988</guid>
      <dc:creator>bfac</dc:creator>
      <dc:date>2007-06-27T21:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: s19 File Layout</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138486#M4989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Bfac,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Here are a couple of references to the S19 file format:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.gammaburst.net/robotics/uml_robotics1/final_project/gjp/S_RECORD.TXT" rel="nofollow" target="_blank"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://www.gammaburst.net/robotics/uml_robotics1/final_project/gjp/S_RECORD.TXT" target="test_blank"&gt;http://www.gammaburst.net/robotics/uml_robotics1/final_project/gjp/S_RECORD.TXT&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.gammaburst.net/robotics/uml_robotics1/final_project/gjp/s19.txt" rel="nofollow" target="_blank"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://www.gammaburst.net/robotics/uml_robotics1/final_project/gjp/s19.txt" target="test_blank"&gt;http://www.gammaburst.net/robotics/uml_robotics1/final_project/gjp/s19.txt&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 22:55:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138486#M4989</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-06-27T22:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: s19 File Layout</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138487#M4990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks bigmac!!&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 23:22:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138487#M4990</guid>
      <dc:creator>bfac</dc:creator>
      <dc:date>2007-06-27T23:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: s19 File Layout</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138488#M4991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;FONT size="2"&gt;I was looking for information about this and since the links above are broken, this is an explanation to s19 file I found:&lt;BR /&gt;&lt;/FONT&gt; &lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;Motorola S19 file records are a text representation of Hexadecimal coded binary data.
 All data uses only ASCII characters, so the format is portable across virtually all computer
 platforms. The S19 format, described here, is for eight bit data. (The '$' will be used
 throughout to indicate a hexadecimal value.)
Each line in a Motorola S19 file is called a 'record'. Records always begin with a the letter 'S',
 followed by a '1' if the record contains data, or a '9' if this is the last record in the file.
The next byte represents the number of bytes in this record, including the starting address,
 data bytes, and the checksum.
The next pair of numbers represent the 16-bit starting address of the data in the record.
 This is the absolute location in the EPROM.
 Following the address are the hex representations of the data to be stored. The last byte is
 an eight-bit one's-complement checksum of all of the bytes in the record (not including the S1).
 Note that this value is derived from the binary values of the bytes, not the ASCII representation.
A standard CR/LF pair (carriage return/linefeed, $0D $0A) terminates each line.
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;This a sample Motorola S19 record.
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;S1130170707172737475767778797A7B7C7D7E7F03
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;Broken down, it looks as follows:
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;S               - Indicates that this is Motorola
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;1               - 1 means this is a data record
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;13              - Number of bytes to follow = $13, or 19 decimal. This number&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;                 can be thought of as the number of data bytes plus three.&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;                Therefore there will be 16 data bytes in the record.
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;0170            - Starting address in the EPROM for this record.
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;70              - These are the data bytes (in hex) - 16 of them as noted above&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;71                The first byte ($70) will be stored at $0170, with the&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;72                remaining bytes following in sequence.&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;73&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;74&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;75&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;76&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;77&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;78&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;79&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;7A&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;7B&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;7C&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;7D&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;7E&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;7F
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;03              - This is the checksum. If you add all of the successive bytes&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;                 (note that the address is treated as two individual bytes) the&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;                 result is $7FC. Truncating this to eight bits yields $FC. The&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;                 one's complement of $FC is $06. (This may be derived by&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;                subtracting $FC from $FF, or by inverting the bits.)
&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;(CR/LF)         - End of this record -- I think the linefeed may be optional.
&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;The use of the starting address in each record makes it possible to store data in
 non-contiguous areas of the EPROM. Each line of data is therefore entirely self-contained.
This is useful when areas of the EPROM are unused, as no space in the Motorola S19
 file need be wasted by representation of blank data. It is perfectly possible, albeit
 not recommended, to scramble all of the record lines in a Motorola S19 file and still
 end up with a correct EPROM image.
&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;The end record (end of file) is almost the same:
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;S9030000FC
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;S               - Indicates that this is Motorola
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;9               - 9 means this is the end record
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;03              - Number of bytes - should be three, as no data bytes will be in&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;                this record.
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;0000            - Address, usually zero.
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;              - Zero data bytes here (obviously)
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;FC              - The checksum, calculated as above.
&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT face="Arial" size="2"&gt;You may also see records starting with S0 - I believe these are called comment records.
 They do not contain any data that will be stored in the EPROM.

&lt;A href="http://www.softhelp.ru/fileformat/s19/s19.htm" rel="nofollow noopener noreferrer" target="test_blank"&gt;http://www.softhelp.ru/fileformat/s19/s19.htm&lt;/A&gt;
&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;/FONT&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 00:20:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138488#M4991</guid>
      <dc:creator>JaimeR</dc:creator>
      <dc:date>2009-01-13T00:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: s19 File Layout</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138489#M4992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;A still current &lt;A href="http://www.ezl.com/%7Ersch/S_Records/" rel="nofollow" target="_blank"&gt;net reference&lt;/A&gt; for this.&lt;BR /&gt;Looks like this may soon go away so &lt;A href="http://www.rasmicro.com/S_Records/index.htm" rel="nofollow" target="_blank"&gt;here it is again&lt;/A&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by peg on &lt;SPAN class="date_text"&gt;2009-01-14&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:45 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 11:41:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s19-File-Layout/m-p/138489#M4992</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2009-01-14T11:41:02Z</dc:date>
    </item>
  </channel>
</rss>

