View previous topic :: View next topic |
Author |
Message |
andrew1956
Joined: 25 Jul 2005 Posts: 4
|
18F2550 Serial Port Please a simple example |
Posted: Mon Jul 25, 2005 9:45 am |
|
|
Hi
Is possible a simple example about how programming Master Synchronus Serial Port included in this Pic ?
How receive and send data, change baud and parameters data
Very thanks
Adrew |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jul 25, 2005 1:03 pm |
|
|
The MSSP is used for SPI or i2c. Which one do you want to use ? |
|
|
andrew1956
Joined: 25 Jul 2005 Posts: 4
|
|
Posted: Mon Jul 25, 2005 4:49 pm |
|
|
Hi PCM
Very thanks for you response
I need obtain a Serial Port Virtual
Think method is SPI Mode
Ok?
Andrew |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jul 25, 2005 5:23 pm |
|
|
Quote: | I need obtain a Serial Port Virtual |
I don't know anything about it. It appears to be a program that
runs on a PC that "looks like" two RS232 COM ports.
On a PIC, the USART is used for RS232. The MSSP is not used.
That's all the help I can give you. |
|
|
andrew1956
Joined: 25 Jul 2005 Posts: 4
|
|
Posted: Tue Jul 26, 2005 2:44 am |
|
|
Hi again and thanks PCM
Well
How programming USART in Pic 18F2550 ?
Is possible a example
Thanks again |
|
|
rwyoung
Joined: 12 Nov 2003 Posts: 563 Location: Lawrence, KS USA
|
|
Posted: Tue Jul 26, 2005 7:18 am |
|
|
Look at the manual for "#use RS232", putc(), getc() etc.
Also browse the example files that came with the compiler, several good examples of how to do interrupt and non-interrupt driven serial communications between a PIC's UART and a PC's UART. _________________ Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month! |
|
|
|