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 support@ccsinfo.com

18F45K50 Timers

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



Joined: 11 Oct 2017
Posts: 141

View user's profile Send private message

18F45K50 Timers
PostPosted: Tue May 10, 2022 5:51 pm     Reply with quote

Could someone show me how to start some Timer to trigger an event every one second, using the settings below?

Code:
#include <18F45K50.h>
...
#use delay(int, clock=48MHz, USB_FULL, act=USB)
temtronic



Joined: 01 Jul 2010
Posts: 9081
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue May 10, 2022 6:35 pm     Reply with quote

None of those have anything to do with what you describe...
Have a look at the software RTC in the 'code' library. The 'core' of it uses a timer to generate a 1Hz 'clock' that then does 'stuff'.
vtrx



Joined: 11 Oct 2017
Posts: 141

View user's profile Send private message

PostPosted: Wed May 11, 2022 8:23 am     Reply with quote

Thank you again.
I used the information in the topic and it worked very well.
https://www.ccsinfo.com/forum/viewtopic.php?t=26177
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