I2CEncoderV2.1
I2CEncoderV2.1 copied to clipboard
Question: What are the CLCs doing to read the rotary encoder?
Hi! I am very interested in this project because I am learning PIC programming and also wanting to use rotary encoders in a project. I see in your MPLAB project that you have configured the two CLC peripherals to use "2-input D flip-flop with R" configuration and reading the RA and RB pins (RC0 and RC1). Could you please explain what logic is going on here that makes this work? I am only familiar with the rotary encoders which use 4 "steps" between each detent (is this what you are using?) and am curious how the CLCs correctly interpret this?
Thanks for any info!