home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / intel8051 / i51info.txt < prev    next >
Text File  |  2020-01-01  |  2KB  |  39 lines

  1.  
  2. Due to the requests I have received concerning how to download data, and my
  3. own dilemma of downloading PC wav files, this file transfer program using the
  4. KERMIT protocol was written. Prior to this, I had to convert files to the
  5. "INTEL" hex format ( I refer to it as a papertape reader) and use the reader
  6. normally used for code to transfer the data. This took awhile because for each
  7. 16 bytes of data there are 44 bytes in a hex file. This program is written in
  8. assembly, the highest level language there is :-) and uses the little known
  9. instruction movx @r0,a where P2 is modified to the page address. (I would have
  10. designed two 16 bit regs) I've heard this may not work on some clone '51's. I
  11. use the METALINK assembler though any should work and all the associated files
  12. are included in the main programs (I51RECV.ASM) for receiving files and
  13. (I51XMIT.ASM) for transferring files to the remote. All that is needed is all
  14. the files be in the same directory. Either hex file is then loaded to the 8051
  15. using the hex reader previously mentioned. The fopen function is a pointer
  16. initialization to where in memory the data should go. The fwrite function then
  17. moves the packet data to that memory. The fread gets data from memory for
  18. subsequent encoding. The fclose does nothing at present but could be used for
  19. other types of memory. The file "I51HEDR.INC" needs to be changed to suit your
  20. specific memory configuration. As an example my test unit has 32k of ram
  21. memory and a small bootloader rom that is switch off after loading into
  22. ram. PSEN is or'd with RD so that code can be executed in ram, hence the close
  23. range of rom to ram with no overlap. My monitor is from 0000h to 1fffh. 2000h
  24. to 2fffh is for floating point routines and extended math functions. The
  25. kermit code is loaded at 3000h to 33ffh and the data for kermit is at 3400h to
  26. 35ffh. 3600h to 3fffh is still available, but for simplicity, files from
  27. KERMIT are loaded starting at 4000h and can go to 7fffh. Thats a maximum of a
  28. 16k file (about a 2 second wav file at 8000khz). After fixing my monitor to
  29. accept 8 bit data (by removing the anl a,07fh), ascii text and binary image
  30. files download successfully. I'll be adding a front-end that'll request the
  31. start address and direction.
  32.  
  33. If you have any questions, my email addresses are:
  34.  
  35. glp@sleepy.anest.ufl.edu        ! decmail smtp - preferred
  36. pugh.anest1@wpo.health.ufl.edu        ! word perfect office - mnotify=NO
  37. greg@anest1.anest.ufl.edu        ! pegasus internet mail - base64
  38.  
  39.