🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.electronics
Article #11845

Re: Motorola S19 ==> S2 record. How?

#11845
From: John Haddy
Date: Fri, 13 Nov 1992 03:38
59 lines
2706 bytes
As far as I can determine, your programmer will probably work.

S19 file describes a file which may contain S0,S1 and S9 records. An S0 record is
an optional header record which may contain the file name, etc (i.e. used only to
aid humans in identifying the file. Data is contained in S1 records, whereas an
S9 record denotes the end of file.

The syntax of an S record is:

	`S' T LL AA ... AA DD ... DD CC


where:	S	indicates start of record
	T	record type identifier
		0 = header
		1 = 16 bit address data record
		2 = 24 bit address data record
		3 = 32 bit address data record
		7 = (possibly) 32 bit address end of file record
		8 = (possibly) 24 bit address end of file record
		9 = end of file record (maybe only for 16 bit address)
	LL	number of bytes in record
	AA	contains 4, 6 or 8 hex digits (depending on record type)
		representing the memory address where the first byte of
		data in this record is located.
	DD	data field hex digits, two per byte, consistent with the LL
		length parameter.
	CC	a two digit checksum field, calculated by one's complementing
		the sum (modulo 256) of the byte count, the address field and
		the data field.

Although this is supposition (my sources don't make this extremely clear), I
believe that S19 is a shorthand description of a file containing S1 and S9
records, similarly for S28 (S2, S8) and S37 (S3,S7) files.


Hope this helps

	JohnH

references:

James M. Sibigtroth	"Understanding Small Microcontrollers"
		Motorola CSIC Microcontroller Division
	(a text book supplied with the M68HC05KICS evaluation kit)

Logical Devices, Inc	Allpro-88 User's Guide
	(user's manual for our universal device programmer)

----------------------------------------------------------------------------

      |  _  |_   _   |_|  _   _|  _|              Electronics Department
    |_| (_) | | | |  | | (_| (_| (_| \/           School of MPCE
    ---------------------------------/-           Macquarie University
                                                  Sydney, AUSTRALIA 2109

    Email: johnh@mpce.mq.edu.au, Ph: +61 2 805 8959, Fax: +61 2 805 8983

----------------------------------------------------------------------------
Technical Details
Message-ID: <1992Nov13.033801.26729@mailhost.ocs.mq.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!sunb!macadam!johnh
References: <92314.232650U40348@uicvm.uic.edu>

Show Full Headers
Complete Article Headers
Newsgroups: sci.electronics
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!sunb!macadam!johnh
From: johnh@macadam.mpce.mq.edu.au (John Haddy)
Subject: Re: Motorola S19 ==> S2 record. How?
Message-ID: <1992Nov13.033801.26729@mailhost.ocs.mq.edu.au>
Sender: johnh@macadam (John Haddy)
Nntp-Posting-Host: macadam.mpce.mq.edu.au
Organization: Macquarie University, Sydney
References:  <92314.232650U40348@uicvm.uic.edu>
Date: Fri, 13 Nov 1992 03:38:01 GMT
Lines: 59