The 22K is used ONLY when you are driving the INPUT of the PIC from a real RS232 line, which does -12 to +12 Volts on the pulses!
No need to have it on TTL connection as in your case. Remove it.
The 1K is used ONLY when you drive from the OUTPUT of the PIC to the RS232 line, to lower the current that PIC is forced to supply.
Again no need to have it on TTL connection as in your case. Remove it.
Have you tested the code on #6 with no resistors?
Ioannis


Reply With Quote

Bookmarks