C rotary encoder function for a Pic18 based off http://www.eevblog.com/forum/projects/rotary-encoders-new-polling-and-pin-interrupt-servicing-routines/msg1416552/ Built with Pic18F4550.

Your Name b0a1bd7cf9 Readme 6 éve
LICENSE 00a5e74b0d Initial commit 6 éve
README.md b0a1bd7cf9 Readme 6 éve
main.c f52ed41812 Main add 6 éve
main.h f52ed41812 Main add 6 éve

README.md

Pic18_C_Rotary_Encoder

C rotary encoder function for a Pic18 based off http://www.eevblog.com/forum/projects/rotary-encoders-new-polling-and-pin-interrupt-servicing-routines/msg1416552/ Built with Pic18F4550.

MPLAB Product Version: MPLAB X IDE v4.05. Compiler: XC8

How to use

Make a new project in Pic18 (see MPLAB_XC8_Getting_Started_Guide.pdf) Add main.c and main.h

Connect up programmer (I used a PicKit3) to dev board (I used SBC44UC from modtronix).

Connect LEDs to appropriate output pins (see code).

Use debugger as needed.