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

problem with an error

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



Joined: 24 Apr 2011
Posts: 14

View user's profile Send private message

problem with an error
PostPosted: Thu Apr 28, 2011 12:44 pm     Reply with quote

When I compile my code, it keeps on having 1 error and the error message is the following: *** Error 100 "nRF905&PIC16F690.c" Line 5(5,55): USE parameter value is out of range Not a number: 960055=5553=53. And line 5 is the following: #use rs232(baud=9600, xmit=PIN_B7, rcv=PIN_B5, bits=8) and I am using the pic16f690 microcontroller. Does anyone know how to solve this problem?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Apr 28, 2011 1:14 pm     Reply with quote

Post a short complete test program that shows the problem.
Example:
Code:
#include <16F690.h>
#fuses INTRC_IO, NOWDT, NOBROWNOUT, PUT, NOMCLR
#use delay(clock=8000000)
#use rs232(baud=9600, xmit=PIN_B7, rcv=PIN_B5, ERRORS)

//=============================
void main()
{
char c;

printf("Start \n\r");

while(1)
  {
   c = getc();
   putc(c);
  }

}


Also post your compiler version.
Ttelmah



Joined: 11 Mar 2010
Posts: 19498

View user's profile Send private message

PostPosted: Fri Apr 29, 2011 4:14 am     Reply with quote

Also, a 'comment'.
The numbers after the error, are the line and column numbers where the compiler is 'seeing' the error. In this case column 55. The #use r232 statement posted, is only 53? (only counted quickly) characters long. I'd suspect the error is being seen at the end of line, and probably reflects a typing 'silly' somewhere in the line. Possibly a hyphen, not an under-bar, in a pin name, a full stop rather than a comma, etc.. Even possiblyy a 'hidden character' (there are some keycodes that generate 'non visible' characters - this used to be a 'annoy people' trick, with a line that appeared perfect, yet would give a syntax error).

Best Wishes
bright



Joined: 24 Apr 2011
Posts: 14

View user's profile Send private message

PostPosted: Fri Apr 29, 2011 5:40 am     Reply with quote

Thank you all for your replies, I have solved the problem. I had a similar line in my header file and that is what was causing the problem.
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