Whats best for 2-way communication over Serial

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
roconnell
Posts: 14
Joined: Tue Apr 24, 2007 11:49 am
Location: Galway, Ireland
Contact:

Whats best for 2-way communication over Serial

Post by roconnell »

I want to have a PIC talking to a PC over a serial port sending and receiving info.
Can I use SPI for this or do I need UART or something else?
If you're reading this then my post was too short or did not get to the point.

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 »

Hello

For this you will need a PICmicro with a UART and you will also need some extra components to do the voltage level shifting. We use a MAX232 chip on our RS232 E-Block. However if you google some PIC serial projects you will find versions that get away with using resistors to do the 12V to 5V conversion.

ncc1502
Posts: 48
Joined: Mon Apr 07, 2008 9:18 pm
Has thanked: 23 times
Been thanked: 8 times
Contact:

Re: Whats best for 2-way communication over Serial

Post by ncc1502 »

I am new to flowcode (have V3)

I need the same function (sending and receiving characters),

Is there a sample for this routine for download?

Best regards

NCC
Better safe then sorry

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:

Re: Whats best for 2-way communication over Serial

Post by Benj »

Hello

Yes there is an example available.

Simply goto our main home page, click on downloads and then click on Flowcode examples.

Post Reply