I write the setup records of the XPORT from a PIC using the following algorithm:
1. Pull XPORT RESET line low for 3 seconds with the PIC and then let it go high again.
2. Send a series of lower case 'z's to the Xport. Wait 100ms after each 'z', check for a received character by polling PIR1.5.
3. When a character is detected, wait 1 second. Then send "S0" (for setup record "0") wait 150ms then send an ASCII 0x0d then wait 550 ms.
4. Now send the contents of the setup records themselves in Intel Hex.
Start with ":2000010... and send the 32-byte record in ASCII as defined in the Intel Hex specification. End each line with the calculated checksum.
Do the same for the other four lines of the setup record. You must write all four lines of a setup record even if you want to change only one of the lines!
5. Write any other setup records needed using the same algorithm. I usually write records 0, 1 and 7.
6. Pull the XPORT RESET line low for 3 seconds. When it comes back up
your new settings should be in effect.
Bookmarks