nicholastyc
New Member
Hi,
I have problem writing a code for the shaft encoder to decode for my PIC to read the direction.
Can some one please give me a sample code of the shaft encoder decodes the direction?
Its a 3 pin shaft encoder , pin A pin B and ground.
pin A Pin B connected to 2 of the PIC inputs to decode the direction.
need a ASM code the detects the direction and direction changes.
thanks.
I have problem writing a code for the shaft encoder to decode for my PIC to read the direction.
Can some one please give me a sample code of the shaft encoder decodes the direction?
Its a 3 pin shaft encoder , pin A pin B and ground.
pin A Pin B connected to 2 of the PIC inputs to decode the direction.
need a ASM code the detects the direction and direction changes.
thanks.
Last edited: