timer 0 interrupt

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
DELAK_ALED
Posts: 23
Joined: Sat Jun 21, 2014 11:04 am
Has thanked: 5 times
Been thanked: 2 times

timer 0 interrupt

Post 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?
Attachments
uurwerk3.fcfx
(9.7 KiB) Downloaded 248 times

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: timer 0 interrupt

Post 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
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

DELAK_ALED
Posts: 23
Joined: Sat Jun 21, 2014 11:04 am
Has thanked: 5 times
Been thanked: 2 times

Re: timer 0 interrupt

Post 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!

Post Reply