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?
Whats best for 2-way communication over Serial
Whats best for 2-way communication over Serial
If you're reading this then my post was too short or did not get to the point.
- 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:
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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
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
- 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
Hello
Yes there is an example available.
Simply goto our main home page, click on downloads and then click on Flowcode examples.
Yes there is an example available.
Simply goto our main home page, click on downloads and then click on Flowcode examples.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel