[sdiy] Rotary encoder reading.. hardware solution (fast & accurate)
grant at musictechnologiesgroup.com
Wed Aug 11 23:53:15 CEST 2021
Probably more like 2 to 4 CLC's...
On 8/11/2021 2:41 PM, Oren Leavitt via Synth-diy wrote:
> Some PICs have one or more Configurable Logic Cell (CLC) peripherals.
> You might even be able to configure that logic within a CLC.
> - Oren
> On 8/11/21 3:27 PM, Jean-Pierre Desrochers wrote:
>> For anybody who could be interested..
>> Just found this video yesterday and tried the circuit..
>> Outputs A and B (CD4013) connected to PORTB of a PIC16F1783
>> (RB0 and RB1) using interrupts on change (rising edges).
>> Now I only have to check one incoming pulse on each RB0 & RB1
>> to increment or decrement a counter.
>> Much faster than computing all the 4 possible states in each encoder step
>> to finally get a result.
>> My interrupt uses TIMER1 (1msec steps), RB0 & RB1 on change.
>> No missing counts anymore even rotating fast, on both direction.
>> Synth-diy mailing list
>> Synth-diy at synth-diy.org
>> Selling or trading? Usemarketplace at synth-diy.org
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> Selling or trading? Use marketplace at synth-diy.org
More information about the Synth-diy