emavil
Member level 2
Hi. I really had a hard time understanding the TMR0 interrupt of PIC16F84A (4MHz crystal). I'm using PICBasic. Is there anyone who could give just a simple demonstration on how to program interrupts, including the prescaler configurations. I'm building a simple digital clock with 6 CA 7-segment displays, with 3 buttons. I'm very much curious about the accuracy of the clock, especially the 1 second generation. What is the right refresh rate of the 7-segments? Which part of the program do I have to process the incrementing of seconds, minutes & hours.