This application note features a 24 hour, 7 segment LED clock...
How can i modify to make it a 12 hour clock ???
AN615 --> http://ww1.microchip.com/downloads/e...tes/00615b.pdf
This application note features a 24 hour, 7 segment LED clock...
How can i modify to make it a 12 hour clock ???
AN615 --> http://ww1.microchip.com/downloads/e...tes/00615b.pdf
Last edited by shahidali55; - 4th November 2006 at 18:37.
I think that if you make one on your own using PBP, it would take less time compared to modifying AN615.
Search the forum.
------------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Hi, Shahid
Just have a look to listing lines 79 and 80
Values Hour_HD_Max to be changed from 2 to 1, and Hour_LD_Max to be changed from 4 to 2 ...
Note Interesting lines are 300 - 330 ...
that might work like that ...
No, no, no flowers ... thanks
Alain
Last edited by Acetronics2; - 4th November 2006 at 20:02.
************************************************** ***********************
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 " !!!
*****************************************
Thanks Acetronics, i'll try that out.
But sayzer, i want to use a PIC16C54A. It does not have TMR0 interrupt.
I have to mux 4 displays, check 4 buttons and keep accurate time.
How can i keep track of time without the interrupt???
Is there a way to keep time accurately without using hardware interrupts and do the rest of the stuff in PBP???
I have made a clock using a F84 and TMR0 interrupt...
Now i want to do the same thing without the TMR0 interrupt in PBP...
Last edited by shahidali55; - 5th November 2006 at 14:50.
Hi, Shahid
You're so right not to move to other Pics ... I tried some times ago from a 16C54 to a 16F84 ... ( was a " Berliner clock " !!! )
Result was not that !!! The differences between program counters and adressing make things really tricky ... possible to do, but very high upon my Pic's knowledge !!!
One thing about your program, I didn't tell you anything about PM and AM ...
if you want to use the alarm function, you'll have to add a flag for that ... look carefully at the digit overflows section : there are lines where hours units are cleared after hours tenths overflow : just toggle your flag here !!!
Of course, add a flag check to digits check for alarm raising ...
Alain
************************************************** ***********************
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 " !!!
*****************************************
Ali,
I guess you are targeting a low cost solution by selecting PIC16C54.
Am I right?
Edit: Ok. I just found this in your other post.
"I dont want to spend too much cash on erasable PICs cause once i give away the projects the IC will never be erased again..."
In this case, are there any other factors that make you use this chip?
--------------------------------
Last edited by sayzer; - 5th November 2006 at 17:10.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Hi, it is Sarma from Hyderabad India
today i saw one site
http://www.josepino.com/pic_projects...?led_clock.jpc
where 12hour mode clock is described
please see it for a difference and for appreciation
Regards,
Sarma
Hello Sarma,
The link you have posted , was infact my first microcontroller project.
Before i came across this project, i knew nothing about microcontrollers.
I simply built it. and guess what it worked!!!
But that was a long time ago. As i was amazed after making this project,
i just went on learning more and more about mcu's with the help of the net.
Now i have re-written the code for this clock (as i couldn't get the original code), with more features such as battery back up, and even a night power save mode(as it runs on solar power)).
This project by Josepino is an excellent one ! ! !
Last edited by shahidali55; - 9th March 2007 at 12:48.
Bookmarks