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.
Flowcode for a 10mSec interrupt on an ECIO 40
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Flowcode for a 10mSec interrupt on an ECIO 40
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
You can get spot on 200hz interrupt by using the following settings for timer 2.
1:16 prescaler
1:15 postscaler
250 Rollover value
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Flowcode for a 10mSec interrupt on an ECIO 40
Many thanks Benj.
I didn't realise that the rollover values could be altered from those in the drop-down list.
Cheers
I didn't realise that the rollover values could be altered from those in the drop-down list.
Cheers