Page 1 of 1

timer 0 interrupt

Posted: Tue Aug 26, 2014 10:58 am
by DELAK_ALED
Hi everybody,

The purpose of my attached program was to make a minute counter on four 7seg displays.
I start the program with a routine to test my hardware and to test the Xtal. In that routine everyting goes fine.
After the testroutine on my display comes, 1234 as expected.
But after a minute I expect 1235 on the display but the reality is that 1234 stays on the display.
Is there somthing wrong with the interne interrupt?

Re: timer 0 interrupt

Posted: Tue Aug 26, 2014 12:13 pm
by dazz
Hi
you have your count set up wrong, take a look at this thread http://www.matrixtsl.com/mmforums/viewt ... xls#p15618

Download martins calc feed your data in and adjust the interupt count as suggested by the calc i mentioned,
let us know how you get on :)
Regards
Dazz

Re: timer 0 interrupt

Posted: Tue Aug 26, 2014 6:30 pm
by DELAK_ALED
I saw the interrupt freqency 15.259 Hz and I thougt it was 15 Thousand .... Hz, But in reality it is 15 Hz.
So I was a bit confused with the point (.) and the comma (,) :oops:
Now everything works fine!