hi all
i am designing a digital clock with an alarm using PIC16F870 and a dallas 1307 RTC chip
i have divided the project in parts, got the first part working which is getting an output on my seven segment .
now i have to to multiplex 4 seven segments and want to send the digits out to the 4 displays using an interupt which is caused by tmr0.
but i have trouble setting up the timer 0......i want it to interupt every 4ms
i worked out the with the formula i founf in predko's book
tmro has to be set at 131 with a prescalar of 1:32
is that correct
now for my problem could some one help me out with how to properly set tmr0 and how to use interuppts..
any help would be appreaciated
thanx
i am designing a digital clock with an alarm using PIC16F870 and a dallas 1307 RTC chip
i have divided the project in parts, got the first part working which is getting an output on my seven segment .
now i have to to multiplex 4 seven segments and want to send the digits out to the 4 displays using an interupt which is caused by tmr0.
but i have trouble setting up the timer 0......i want it to interupt every 4ms
i worked out the with the formula i founf in predko's book
tmro has to be set at 131 with a prescalar of 1:32
is that correct
now for my problem could some one help me out with how to properly set tmr0 and how to use interuppts..
any help would be appreaciated
thanx