I have a 18F4520 set up to read NMEA data, and show the result of a calculation, and works ok with a GPS module sending once/second. Obviously I am only getting one reading, as the GPS is stationary.
I need to check GPS movement, and have tried copying NMEA paragraphs (Paragraph = a second burst of sentences) and sending them to the PIC with a Teraterm macro/FTDI, sending paragraphs once/second. This is not working.
Both DATA signals are approx 3V, the FTDI can be changed to 5V.
The FT232R supports High Current IOs with this option, the UART IO pins will drive out at 12 mA instead of their normal 4 mA.
If you select external Osc and have none, it won't work.
All Rs232 input thresholds are 2 diode drops or 1.3V
The IO ports on the 18F4520 are set at 20% of Vdd, so a higher voltage for Vcc does little.
(5V gives no advantage )
If your pic is running at 5V I suggest a divider to send... I use a 1k / 2k2 to drop the 5V to 3.3V on the tx line
However... If you are just sending MNEA data Then the pic should read a 3V pulse fine... I use a compass that spits out MNEA sentences.. I have a small VB6 program that allows me to rotate and simulate a 360 degree motion... It works via the USB and the very same FT232r TTL setup as you... The only difference is I use a pic18f45k20..
The FT232R supports High Current IOs with this option, the UART IO pins will drive out at 12 mA instead of their normal 4 mA.
If you select external Osc and have none, it won't work.
All Rs232 input thresholds are 2 diode drops or 1.3V
The IO ports on the 18F4520 are set at 20% of Vdd, so a higher voltage for Vcc does little.
(5V gives no advantage )
If your pic is running at 5V I suggest a divider to send... I use a 1k / 2k2 to drop the 5V to 3.3V on the tx line
However... If you are just sending MNEA data Then the pic should read a 3V pulse fine... I use a compass that spits out MNEA sentences.. I have a small VB6 program that allows me to rotate and simulate a 360 degree motion... It works via the USB and the very same FT232r TTL setup as you... The only difference is I use a pic18f45k20..
If I set the FTDI to 3.3V does this satisfy your first line? "If your pic is running at 5V I suggest a divider to send... I use a 1k / 2k2 to drop the 5V to 3.3V on the tx line"
Could the difference between 18'F'4520 and 'K' make any difference?
We appear to have similar set-ups. Does your compass spit out bunches of different NMEA sentences in 'say' 1/sec batches? Do you simulate these bunches or do you just send the required NMEA sentence in 1/sec intervals? Which terminal do you use, I use Teraterm?
3V can usually drive 5V logic but needs series R to limit input current to 3mA for the ESD/SCR diode rail clamps for accepting 5V into 3V chip.
Thresholds are less than 50% for this reason and others.
But I think maybe it is more basic. Did you cross Tx. Rx? both pins should be high.
for TTL High is idle with low as startbit. and for RS232 it is inverted to positive logic..
If it was just a smart term you needed, in the old BBS days.... we used Mustang Software's QModem which support Autolearning scripts, and user generated interactive scripts with x,y, and z modem protocol at any speed using DOS.