View previous topic :: View next topic |
Author |
Message |
eaton Guest
|
pic18f252 and rs232 |
Posted: Sat Oct 02, 2004 6:25 pm |
|
|
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
|
|
Posted: Sat Oct 02, 2004 6:44 pm |
|
|
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
|
|
Posted: Sat Oct 02, 2004 8:03 pm |
|
|
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
|
|
Posted: Sat Oct 02, 2004 9:08 pm |
|
|
1200 baud is the lowest the #use RS232 command acepts at 20MHz |
|
|
|