Electronic – FTDI basic breakboard + PIC18F452

ftdipic

Im doing a project with a PIC18F452 and I will have to use USART. Thus, I bought a FTDI Basic breakout board (from Sparkfun) to make debugging easier. The board is the 5V version.

I already tested FT232R with a loopback circuit and Putty (on Windows) and it works well. I also tested PIC with a loopback circuit and it also works well.
However I can't get FT232R to work with PIC. In the microcontroller I have USART configured with 9600kbaud, 8bit, no parity (same as PC side), RX with interrupt. Im just sending data from PC to PIC. When PIC receives something prints it on LCD. The problem is PIC isn't receiveing anything.
So I picked up a osciloscope probe and the results are these:

enter image description here

The signal doesn't touch the GND!
Thats why PIC doesn't detect data arriving at RX pin, right?

However if I disconnect FT232 TX pin from PIC RX pin, I get:

enter image description here

I have both GND (ft232 and PIC) connected.

Any suggestions on how to solve this?

Thanks!

Best Answer

Do you have the output driver enabled on the PIC UART RX pin? If it is driving a high level out, the voltage will go to 5V when the FTDI drives high, and something in the middle due to contention when the FTDI drives low.

(This may be a silly suggestion, depending on how the PIC UART configuration works, in which case I'm sorry.)