With your code posting, if you fix the crystal location as DynamoBen suggested (and makd sure to add the caps to GND) and delete the “INTCONB=0 'interrupts off”
line, the clock portion with display should work great as is.
Note - for the code you have, you need to use 4MHz xtal. You could adjust the algorithm for 16MHz xtal if desired. One last thing, to “use the clock”, you can put something like
If HH = 4 then ‘ turn on portb.1 at 4:15 and turn it off at 4:30
If MM = 15 then portb.1=1
If MM = 30 then portb.1=0
Endif
In the section labeled “do something here”
Again, Good Luck,
Paul Borgmeier
Salt Lake City, Utah
USA




Bookmarks