start:
pause 500
led = 1
pause 500
led = 0
goto start
Led flashes at 1hz (+ maybe 30 or 60 microseconds if using a 4mhz oscillator)
Of course like EVERYTHING ELSE that will be mentioned in this thread, and has been mentioned in other threads you have started and/or participated in, a one second clock/timer will only be as accurate as the clock that initially drives the PIC. And as also stated in other threads, using an RTC (Real Time Clock) chip is quite possibly the easiest route to go. There are many WORKING examples (and some not-so-working) in these PICBasic forums and many freely available examples on the internet...provided a person does a search for this and is able to learn and use the language that an example may be provided in.
Bookmarks