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

Clock with pic18f4550

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



Joined: 17 Mar 2018
Posts: 2
Location: Brazil

View user's profile Send private message

Clock with pic18f4550
PostPosted: Sat Mar 17, 2018 8:24 pm     Reply with quote

Hello, i'm trying to implement a code from a clock using a pic 18f4550 from a kit (acepro 3.0). I already have a part of the code almost ready, I would like to know a way to implement the function that adjusts the clock hours, I can not do this. please, help!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Mar 17, 2018 10:41 pm     Reply with quote

Debounce a Switch and Increment a value ? (2-page thread)
http://www.ccsinfo.com/forum/viewtopic.php?t=43803

Push-Button code for CCS:
http://www.ccsinfo.com/forum/viewtopic.php?t=23837
fmeira76



Joined: 17 Mar 2018
Posts: 2
Location: Brazil

View user's profile Send private message

PostPosted: Sun Mar 18, 2018 7:34 am     Reply with quote

PCM programmer wrote:
Debounce a Switch and Increment a value ? (2-page thread)
http://www.ccsinfo.com/forum/viewtopic.php?t=43803

Push-Button code for CCS:
http://www.ccsinfo.com/forum/viewtopic.php?t=23837


i'd like to implement three buttons, one called "adjust button"(to active the adjust function), and other two to adjust the dozen and units of my clock parameters
temtronic



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

View user's profile Send private message

PostPosted: Sun Mar 18, 2018 8:35 am     Reply with quote

If you're clever or cheap, you can use just ONE button to adjust the time on a clock. It only requires the PB to be on an external interrupt pin. I do this for my single digit LED clock.

Jay
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