Can't tell, i never used it before. Would be of great help if you could post the whole schematic, code and configuration fuses.
I would guess you just use the internal OSC... probably where the huge gap come from.
Can't tell, i never used it before. Would be of great help if you could post the whole schematic, code and configuration fuses.
I would guess you just use the internal OSC... probably where the huge gap come from.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Steve,
I'm using an external 4MHz crystal and the code is this for PIC12F675.
[HTML]CLEAR
LED VAR GPIO.0
CMCON = 7
ANSEL = 0
Include "Elapsed.bas"
Gosub ResetTime ' Reset Time to 0d-00:00:00.00
Gosub StartTimer ' Start the Elapsed Timer
HIGH LED ; Start with LED on
Loop:
if HoursChanged then
HoursChanged = 0
if Hours = 1 then LOW LED ; Turn off LED
endif
Goto Loop[/HTML]
![]()
Last edited by Leonardo; - 19th November 2008 at 18:37.
Bookmarks