RS232 & LCD

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
carlstein
Posts: 12
Joined: Tue Nov 28, 2006 3:11 pm
Location: University of leicester
Contact:

RS232 & LCD

Post by carlstein »

I actually managed to get some characters sent from a PIC16F88 to HyperTerminal via RS232. I also got the LCD working, but not both at the same time, even when I use one of the big "16F77's and wire the LCD to another port.

They also seem to want to operate at different clock speeds.

Using the above as an example, what is the ideal clock speed to use and do you think that the RS232 and LCD are happy both sharing port B?

Any advice from someone who has done this?

I'm using Flowcode 3 and the RS232 is running at 9600 baud

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hi Carlstein

The LCD and RS232 will have problems if they are together on the same port. It would be possible except that the LCD would have to share a pin or two with the RS232 which could cause corruption along the RS232 line.

What language are you using I may be able to post some example code.

Also what is your ossilator speed at the moment. I would recommend a 19.6608Mhz crystal to make the RS232 timings easier on the PIC.

I would also recommend that you use the LCD on portB and the RS232 module on portC so you can make use of the UART to send and receive the data.

Post Reply