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 CCS Technical Support

Hardware UART 18f452

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



Joined: 01 Aug 2007
Posts: 38
Location: AUckland, NEW ZEALAND

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

Hardware UART 18f452
PostPosted: Sun Oct 03, 2010 8:32 pm     Reply with quote

Hi,

This is fine
Code:
#use rs232(baud=57600, xmit=PIN_C6, rcv=PIN_C7, parity=N, bits=8, stream=GPS, ERRORS)


This not working
Code:
#use rs232(baud=57600, UART1, parity=N, bits=8, stream=GPS, ERRORS)


Why?

Thanx in advance for help!
uni_student



Joined: 01 Aug 2007
Posts: 38
Location: AUckland, NEW ZEALAND

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

PostPosted: Sun Oct 03, 2010 8:33 pm     Reply with quote

Compiler version 3.249
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Oct 03, 2010 9:23 pm     Reply with quote

'UART1' isn't supported in version 3.249.

Look at the new features for vs. 4, on page 14 of this document:
http://www.ccsinfo.com/pdfs/v3.to.v4.pdf
It says:
Quote:

#USE RS232() upgrade

The powerful RS-232 library upgrade in Version 4 includes the following options:
• Two additional parameters to #use rs232(): UART1 and UART2.
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