Page 1 of 1

Flowcode for a 10mSec interrupt on an ECIO 40

Posted: Wed Apr 20, 2011 4:46 pm
by Electron
I trying to get a 10mSec (100Hz) interrupt on a ECIO 40. I've tried all the combinations of TMR0/1/2, pre/post scaler, rollover, but cannot a combination that gives an exact 100Hz.

It's easy with the MCU Multiprogrammer EB006, TMR0 set to 300Hz, count 3 loops.

Any suggestions welcome.

Re: Flowcode for a 10mSec interrupt on an ECIO 40

Posted: Thu Apr 21, 2011 9:56 am
by Benj
Hello,

You can get spot on 200hz interrupt by using the following settings for timer 2.

1:16 prescaler
1:15 postscaler
250 Rollover value

Re: Flowcode for a 10mSec interrupt on an ECIO 40

Posted: Thu Apr 21, 2011 11:43 am
by Electron
Many thanks Benj.

I didn't realise that the rollover values could be altered from those in the drop-down list.

Cheers