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

Search found 4 matches
CCS Forum Index
Author Message
  Topic: Random Number Generator Help
Megadave

Replies: 1
Views: 5519

PostForum: General CCS C Discussion   Posted: Tue Jan 25, 2011 12:10 pm   Subject: Random Number Generator Help
I figured it out! If I do this it works!


return ((int16)rand%(max-min+1)+min);
  Topic: Random Number Generator Help
Megadave

Replies: 1
Views: 5519

PostForum: General CCS C Discussion   Posted: Tue Jan 25, 2011 12:03 pm   Subject: Random Number Generator Help
Hello

I am using a random number generator that allows me to generate a number within a specific range. The routine works great but I need to use it on a 16f688. Unfortunately the routine uses a l ...
  Topic: ADC configuration question
Megadave

Replies: 4
Views: 8138

PostForum: General CCS C Discussion   Posted: Tue Jan 04, 2011 5:30 pm   Subject: ADC configuration question
Ttelmah, so what I am doing is reading the voltage off a pot with AN7(with 2.048v ref). I'm using AN6 to send serial data to an LCD. The other signals are normally high through pullup resistors readi ...
  Topic: ADC configuration question
Megadave

Replies: 4
Views: 8138

PostForum: General CCS C Discussion   Posted: Tue Jan 04, 2011 2:32 pm   Subject: ADC configuration question
Hello
I am using an 18F4550 and I need to use port AN7 as an analog input and the rest as digital inputs and outputs but unfortunately a board has already been laid out so I can't make any changes. ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group