I never found a PIC with a accurate internal clock. It shift at least with temperature.
You can still skip the interrupt and use MPASM Stopwatch (or else) to trim your program timing using a simple loop.
I never found a PIC with a accurate internal clock. It shift at least with temperature.
You can still skip the interrupt and use MPASM Stopwatch (or else) to trim your program timing using a simple loop.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi, Steve
IF you want a program for a real time clock ( trimmable ) with a lonesome 12C50x ...
I Have !!!
hi,Hi ...
Alain
OK, there's a trick somewhere ... but it works !!!
PS: Even OTP device programs can be modified ( "1"s can be overwritten by "0"s ) ... do not repeat it !!!
Last edited by Acetronics2; - 7th November 2006 at 11:54.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Can anyone give me a piece of code that can do the time keeping in PICBASIC without using interrupts ? ? ? Even if it just detects the roll-over and polls a flag, it'll do...
I wrote a PICBASIC code for a digital clock without interrupts.
No matter what prescaller i select, the clock runs 3 times slower.
I check the timer roughly every 50 instructions for a roll-over (By checking the MSB). . .
When i enable interrupts for the same code with same prescaler, it works fine.
Last edited by shahidali55; - 7th November 2006 at 17:35.
Hi
try out latest version 16f54 as anyhow you have to programm few times to before you freeze the software-- it will help you being a flash device-- yesy one off costly and later as you finish you can finally use 16c54--
i have piece working with clk8.asm file as provded in the application note. Reg 12hr mode -yes let me also try
Last edited by mvs_sarma; - 8th November 2006 at 20:14.
Regards,
Sarma
Hey everyone,
I finally got the clock running, without using any interrupts !!!
Its giving equal accuracy as the one using Instant interrupts . . .
Now next i'm going to make a 4 segment led clock using the PIC12C508A.
Using the 12C508A, i can make a complete clock for less than $1.49 ! ! !
Last edited by shahidali55; - 11th November 2006 at 17:29.
Originally Posted by shahidali55
How will you use 12C508A to drive 4 segments?
You need 8 pins for LEDs and 4 pins for the commons; Totally 12 pins.
Will you use a serial 4x7 LED display?
If yes, it won't save you much money.
-------------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
(not possible in $0.59 so i've updated my previous message)
Total cost will be atleast $1.49 (upto $1.79).
I will be using a shift register in combination with a BCD 7segment driver IC
(74HC595 = $0.2 , CD4511 = $0.2)
(12C508
Last edited by shahidali55; - 12th November 2006 at 06:19.
Bookmarks