ECIO digital I/O

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times

ECIO digital I/O

Post by jadiflow »

Hi,

I am planning to buy a few ECIO modules, but am a bit confused on the specs. The ECIO-40P datasheet says I get up to 5 PWM channels (I need 4, so therefore my choice). However, the data sheet says the 18F4455 (used on the ECIO-40P) only has 2 PWM channels. Also, Flowcode only lets me add 2 PWM peripherals to my 18F4455 system.

Are ther really 5 PWM channels, and if so, how do I access them?

Jan Didden

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: ECIO digital I/O

Post by Benj »

Hello Jan

Currently Flowcode supports a maximum of 2 channels of PWM. You can add the other 3 channels by using C code called via Flowcode. Alternatively you can bit bang the PWM signal using a timer interrupt and a global variable for every extra PWM channel you want to use. Chapter 15 of the 18F4455 datasheet should be able to help you with all the registers you need to use.

Let us know if you are struggling to get the extra PWM channels functional and I will try and look into it for you.

Post Reply