DIGITAL POT CONTROLLED WITH ENCODER
Posted: Fri Mar 20, 2020 9:00 pm
Hello to all .
I would like to control a digital pot MAX-5484 , 1024 STEPS, 50K , with a BOURNS incremental encoder PEC-11R. I made a demo code to move the wiper of pot step by step in directions up/down with a pulse. According to PEC-11R data sheet with 1 pulse wiper moves 1 step of 1024. In my case, with 1 pulse, wiper of pot moves more steps, 10 or more. I was checked the pulse , I put an RC filter to A , B outputs of encoder, but the problem remains. Is there a mistake in code or anything else? I use a PIC 16F685 . Encoder outputs A,B connected on B.6 and B.7 . CS, INC , UP/DN of digital pot connected at C.5,C.4,C.3 .
thanks in advance.
I would like to control a digital pot MAX-5484 , 1024 STEPS, 50K , with a BOURNS incremental encoder PEC-11R. I made a demo code to move the wiper of pot step by step in directions up/down with a pulse. According to PEC-11R data sheet with 1 pulse wiper moves 1 step of 1024. In my case, with 1 pulse, wiper of pot moves more steps, 10 or more. I was checked the pulse , I put an RC filter to A , B outputs of encoder, but the problem remains. Is there a mistake in code or anything else? I use a PIC 16F685 . Encoder outputs A,B connected on B.6 and B.7 . CS, INC , UP/DN of digital pot connected at C.5,C.4,C.3 .
thanks in advance.