home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / PROG / ASSEMBLY / MOTOASMS.ZIP / STOBIN.DOC < prev    next >
Encoding:
Text File  |  1989-09-24  |  3.7 KB  |  60 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                                                  STOBIN.DOC
  7.                                                  1989-9-24
  8.           
  9.                  STOBIN is a small program for converting files in Motorola
  10.           S-record format into memory image files.  The Motorola freeware
  11.           cross-assemblers for Motorola's microcontroller chips (MCU's) do
  12.           not produce executable files.  They produce ASCII files which
  13.           indicate what the executable file should contain.  The format
  14.           used in the ASCII files is called the Motorola S-record format.
  15.                  If you want to program a Motorola microcontroller via the
  16.           "bootstrap mode" available on some of them, you'll need to
  17.           convert the S-record output from the assembler into binary, burn
  18.           the binary version of the program into an (E)PROM, and use the
  19.           (E)PROM and a suitable programming circuit to program your
  20.           microcontroller.  Motorola usually prints a programmer schematic
  21.           in the data sheet for any part which has "bootstrap mode".
  22.                  This version of STOBIN is a "quick and dirty" program
  23.           which I wrote for my own use, so it lacks the usual niceties.  It
  24.           requires MS-DOS version 3.0 or higher, it does not read the
  25.           command line (it prompts you for all input), it won't let you
  26.           tell it what to name the output file, and it will never write
  27.           over an old file.  If there's already a file with the name the
  28.           program wants to use, the program simply quits with the error
  29.           message "Attempt to create output file failed."  The program
  30.           names the output file *.BIN, where * is the name (without the
  31.           three character extension) of the first input file.
  32.                  One nicety that this STOBIN does have:  it allows you to
  33.           build a binary file from any number of S-record files.  However,
  34.           it does not check for address conflicts among the input files.
  35.           Each memory location in the output file will contain the value
  36.           called out in the most recent input file which had a value for
  37.           that location.
  38.                  To use STOBIN, just enter STOBIN.  The program will ask
  39.           you for the name of an input file.  Enter the name of the first
  40.           S-record file you wish to use (with path and drive, if needed).
  41.           Next the program will ask you what size of memory chip you're
  42.           going to program.  Enter the size in BYTES (not kbytes) of your
  43.           (E)PROM (for instance, enter 2048 for a 2k EPROM).  Next, the
  44.           program will ask you whether it should fill unused memory
  45.           locations with ones or zeroes.  If your microcontroller data
  46.           sheet recommends programming unused locations with $FF or ones,
  47.           press 1 (don't press the ENTER key).  If you microcontroller data
  48.           sheet recommends programming unused locations with $00 or zeroes,
  49.           enter 0 (don't press the ENTER key).  If you don't know whether
  50.           to use ones or zeroes, pick your favorite.  You won't do any harm
  51.           by picking the "wrong" one (programming will simply go a tad
  52.           slower, and if you reprogram your chip many many times you'll
  53.           wear it out a little faster).  Finally, the program will ask you
  54.           for the name of the next input file you want to use.  If you
  55.           don't want to use any more files, just press the ENTER key.
  56.           Otherwise, enter the name of the next file you want to use, and
  57.           the prompt will reappear so you can use another file.  When
  58.           you're done using input files, just press the ENTER key at the
  59.           "next file" prompt.
  60.