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

pic18f252 and rs232

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







pic18f252 and rs232
PostPosted: Sat Oct 02, 2004 6:25 pm     Reply with quote

am using 18f252.

#use delay(20000000)//20mhz
#use rs232(baud=110,xmit=PIN_C6,rcv=PIN_C7)

regardless of the baud value I get an error.

Error 100 "C:\Documents and Settings\pm\clov_tight_18lf252.c" Line 55(5,44): USE parameter value is out of range "0X10"
1 Error.

I've used the same code with a 18f242 without problem.

any insight would be greatly appreciated.
thanks
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sat Oct 02, 2004 6:44 pm     Reply with quote

Quote:
#use delay(clock=20000000)
#use rs232(baud=115200,xmit=PIN_C6,rcv=PIN_C7,bits=8)


I think it doesn't like the missing 'clock='
eaton



Joined: 02 Oct 2004
Posts: 22
Location: cleveland

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

PostPosted: Sat Oct 02, 2004 8:03 pm     Reply with quote

the 'clock=' statement is in the code.

i typed it wrong on my first post.
sorry about that.

anyway it still doesn't work.

thanks for any help
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sat Oct 02, 2004 9:08 pm     Reply with quote

1200 baud is the lowest the #use RS232 command acepts at 20MHz
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