Need some help using timer interrupt for a clock in c -


i have circuit made , have displaying 4 different digits on 7 segment display hours:minutes format. want use timer interrupts , continuously run through time using small second hours smaller minutes, see if works ok. need im not sure how use timer interrupts, need next step. thank you

here circuit far using p89c668 microcontroller - http://imgur.com/yjkq206[1] difference i'm using buffers not transistors

i not familiar microcontroler principal same.

1.use 8 or 16 bit timer.
2.set specific bits in registers accuratelly set interrupt interval
3.when timer overflows interrupt happens(a function called automatically)
4.in function increase variable.
5.translate (variable * interrupt interval) hours , minutes.

valter


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -