QEI Encoder support for 18F2331 family

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
stevewidg
Posts: 17
Joined: Fri Sep 14, 2007 10:38 pm
Location: London

QEI Encoder support for 18F2331 family

Post by stevewidg » Fri Sep 14, 2007 10:48 pm

Hi,
I am new to Swordfish, but it certainly looks neat. Ive been searching the web for an easy way to program the QEI encoder in the 18F2331 family to use in a servo system. I'm fairly sure that a software solution is unlikely to be reliable, even in assembler, so it seems logical to use these chips, but nobody seems to support this feature ( or in the dsPic equivalent ).

Any body have any ideas please

Steve

xor
Posts: 286
Joined: Sun Nov 05, 2006 1:15 pm
Location: NYC
Contact:

Post by xor » Sat Sep 15, 2007 8:27 pm

I think what you mean is that nobody has written a library of functions for this module. Swordfish supports all the features and registers shown in the datasheet. Just write the code per the directions of the datasheet.

That's not to oversimplify the project but it's how anyone else would have to do it. Swordfish is 100% compatible to the PIC and the QEI/IC module.

stevewidg
Posts: 17
Joined: Fri Sep 14, 2007 10:38 pm
Location: London

Post by stevewidg » Sat Sep 15, 2007 8:49 pm

Thanks XOR,
guess I was born naturally lazy. I was hoping to find a way of reading an encoder and squirting count down I2C or RS232 port without having to spend too much time researching, but if nobody else has done it I guess I'd better start reading.

Post Reply