Page 1 of 1

ECIO digital I/O

Posted: Mon May 26, 2008 9:04 am
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

Re: ECIO digital I/O

Posted: Tue May 27, 2008 10:31 am
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.