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

long help

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



Joined: 02 Sep 2005
Posts: 10

View user's profile Send private message

long help
PostPosted: Wed Nov 08, 2006 12:10 pm     Reply with quote

I am trying to set up a counter that will count greater than 255, everything I have tried has failed. I have defined my variable as
long timer_delay

this should be a 16bit number correct?, so I don't understand why it still wraps around at 255 back to 0
The device I'm using is 16F627A, is this not supported by this device?, I didn't see anything in the datasheet about this.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Nov 08, 2006 12:29 pm     Reply with quote

In version 3.249
from cch.chm help file
Quote:
delay_us (time) or delay_ms
Parameters:
time - a variable 0-255 or a constant 0-65535

http://www.ccsinfo.com/forum/viewtopic.php?t=28777&highlight=longdelayms
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