Can I use an Absolute rotary encoder 12bit resolution with a PIC18F4550 ?
http://uk.farnell.com/broadcom-limit...rpm/dp/2467468
As title...
Has anyone successfully read from a 12bit absolute encoder using a PIC18F or similar?
I'd love to get this to work as I have two immediate applications and the price of the thing is very reasonable.
I'm not new to coding but am new to coding on embedded devices.
Thanks,
Wilson Logan.
Re: Can I use an Absolute rotary encoder 12bit resolution with a PIC18F4550 ?
You can use it with any PIC. Just use shiftin
Position var word
ReadSensor:
pinCS=0
SHIFTIN DataPin, ClockPin, 6,[Position\12]
pinCS=1
RETURN
Maybe pause is needed, depending on oscillator speed.
That is it...
Re: Can I use an Absolute rotary encoder 12bit resolution with a PIC18F4550 ?
Thanks!,
That's a lot simpler than I imagined it would be.
Cheers,
Wilson.