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
Absolute Encoder
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel