EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: little_carlos on January 23, 2017, 08:34:39 pm

Title: how to use interruptions for rotary encoder on pic16f886 for C language
Post by: little_carlos on January 23, 2017, 08:34:39 pm
Hello, i need to use a rotary encoder to control pwm output on pic16f886 on C language (mikroC), why i need interruptions? because the pic has to manage 2 analog readings and 1 lcd displaying data at the same time, so reading the encoder without interruptions just doesnt work. the problem i have is that i dont know how to manage to read the encoder using interrupts, can you give me any idea of what instruction should use to have proper readings? the encoder is one of those "digital potentiometers" or pot-like encoders, has 2 outputs. Thanks for your time
Title: how to use interruptions for rotary encoder on pic16f886 for C language
Post by: android on January 23, 2017, 08:47:34 pm
Have a look at pub.c in https://sourceforge.net/projects/pub-usb/