Hi to everyone! I am a newbie at PIC16F876 and i have a project to make(that's why i am not swimming at a beach now!snif,snif)
The problem is the following:
I have an incremental encoder (AGI HEDL-5540 A11) connected with a motor (maxon).And i want to take the pulses that the encoder sends and save it as a number in the PIC16F876. Somebody told me that HCTL2016
makes that.Reading the manual i made the right connections but i am stuck with the code in PIC that is required.Every pin like PORTB.0,PORTB.1..... have 0 or 1 as i understood.But iam save it as a whole number in 1 register!And the manual says that HCTL2016 is 16-bit.So must it the number of a position be send in two cycles?Please help me!
I would really really...appreciate if you could give me some bit of code to understand.Thanks anyway in advance
Bookmarks