CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

18F2550 Serial Port Please a simple example

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
andrew1956



Joined: 25 Jul 2005
Posts: 4

View user's profile Send private message

18F2550 Serial Port Please a simple example
PostPosted: Mon Jul 25, 2005 9:45 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jul 25, 2005 1:03 pm     Reply with quote

The MSSP is used for SPI or i2c. Which one do you want to use ?
andrew1956



Joined: 25 Jul 2005
Posts: 4

View user's profile Send private message

PostPosted: Mon Jul 25, 2005 4:49 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jul 25, 2005 5:23 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Jul 26, 2005 2:44 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Tue Jul 26, 2005 7:18 am     Reply with quote

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!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group