Absolute Encoder

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
rotlen
Posts: 11
Joined: Wed Oct 03, 2007 8:00 pm

Absolute Encoder

Post by rotlen »

Hi.

I need help about a demo to read an encoder with the 18f452.

The encoder specs are :
ppr = 1000
rpm = 100
NPN , push pull.

I've 3 wires C1,C2,C3 and Vcc , GND


Gracias.
saludos

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: Absolute Encoder

Post by Benj »

Hello

You may want to wire the pins C1, C2 and C3 into the interrupt on change pins (normally the top half of PortB) then you can always be sure to catch the encoder as it changes position.

Post Reply