Flowcode for a 10mSec interrupt on an ECIO 40

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Electron
Posts: 18
Joined: Wed Apr 20, 2011 10:05 am
Has thanked: 4 times

Flowcode for a 10mSec interrupt on an ECIO 40

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

User avatar
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

Post 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

Electron
Posts: 18
Joined: Wed Apr 20, 2011 10:05 am
Has thanked: 4 times

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

Post by Electron »

Many thanks Benj.

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

Cheers

Post Reply