frdfsnlght
October 13th, 2002, 12:55 PM
:-? Looking at the various schematics for the UIRT in its various forms, I see that the TxD pin of the serial port is tied to RB6 on the PIC, which is used during ICSP for clocking the data in. How does this work?
My understanding is that the PIC wants 6 bits of instruction and 14 bits of data (plus 2 stop bits) during a LOAD DATA command (as an example) during ICSP. Additionally, it wants a 1us delay between the command and the data. How is this accomplished using the transmit line on the PC? I thought frames of bits were output in NRZ format which would make the 6/14 bit timing impossible, as well as unframable.
Admittedly, I haven't done any serial port programming on a PC in a looong time. Can you send single bits over the line? That would allow this to work. Maybe it would be easier if someone could supply me with the source to one of the various programmers.
My understanding is that the PIC wants 6 bits of instruction and 14 bits of data (plus 2 stop bits) during a LOAD DATA command (as an example) during ICSP. Additionally, it wants a 1us delay between the command and the data. How is this accomplished using the transmit line on the PC? I thought frames of bits were output in NRZ format which would make the 6/14 bit timing impossible, as well as unframable.
Admittedly, I haven't done any serial port programming on a PC in a looong time. Can you send single bits over the line? That would allow this to work. Maybe it would be easier if someone could supply me with the source to one of the various programmers.