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

Software USART

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



Joined: 11 Jan 2007
Posts: 4

View user's profile Send private message

Software USART
PostPosted: Tue Jan 30, 2007 7:18 am     Reply with quote

Hi all.

Could someone tell me or appoint me a code
to make software USART. I´m using a 16F819
in a project, but I need to send some data to
RS232 port.

Adrian
jfk1965



Joined: 21 Oct 2003
Posts: 58

View user's profile Send private message

PostPosted: Tue Jan 30, 2007 7:32 am     Reply with quote

Check the example files EX_PBUSM and EX_PBUSR in the PICC\EXAMPLES directory this should give you a good start.

JFK
mindstorm88



Joined: 06 Dec 2006
Posts: 102
Location: Montreal , Canada

View user's profile Send private message

PostPosted: Tue Jan 30, 2007 7:35 am     Reply with quote

#USE RS232 (see manual), if your PIC does not have a hardware port , the compiler will create a software one , works great with PIC16F676 !!!!
adrianrb



Joined: 11 Jan 2007
Posts: 4

View user's profile Send private message

Software USART
PostPosted: Tue Jan 30, 2007 7:38 am     Reply with quote

Tks for reply JFK.

But my project uses 16F819 chip.
The #use RS232... fuse will not work.
I know I will to read/write bits to pins
at hand, but I can´t figure how.
I´m a begginer in PIC programming.

Adrian
jfk1965



Joined: 21 Oct 2003
Posts: 58

View user's profile Send private message

PostPosted: Tue Jan 30, 2007 7:52 am     Reply with quote

Why does USE RS232 not work on the 16f819?
I'm a newbie to RS232 myself so not best placed to advise you.
I had USE RS232 working on a 16f818 and 16f737 recently it should work ok on all pics as far as I'm aware.

It won't work on it's own you need to look in the user manual and read all related topics to the USE RS232 command.

JFK
adrianrb



Joined: 11 Jan 2007
Posts: 4

View user's profile Send private message

OK
PostPosted: Tue Jan 30, 2007 8:02 am     Reply with quote

Tks, JFK.

I will try again.

Adrian
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