Reading a rotary encoder

If doesn't fit into any other category ....
User avatar
cicciocb
Site Admin
Posts: 2059
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1358 times
Contact:

Re: Reading a rotary encoder

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Mar 06, 2024 9:06 am Searching for something else this topic surprised me. An undocumented, even hidden feature!
My favourite Annex as an adventure...

Had ever written a routine for this function but tried this and it works fine. easy piece now.
Don't forget the capacitors on the ports when using a cheap mechanical encoder.

Any other surprises?
:lol:

Yes, there is something else still not documented
User avatar
Electroguard
Posts: 860
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 276 times
Been thanked: 323 times

Re: Reading a rotary encoder

Post by Electroguard »

Hidden software surprises are called Easter Eggs (if not bugs!), and Easter is not far away, so maybe we might find out...
User avatar
cicciocb
Site Admin
Posts: 2059
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1358 times
Contact:

Re: Reading a rotary encoder

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Mar 06, 2024 4:36 pm Hidden software surprises are called Easter Eggs (if not bugs!), and Easter is not far away, so maybe we might find out...
:D
Tinine
Posts: 12
Joined: Thu Apr 01, 2021 6:46 pm
Has thanked: 8 times
Been thanked: 3 times

Re: Reading a rotary encoder

Post by Tinine »

Any idea of maximum frequency or quadrature-counts/sec?
User avatar
cicciocb
Site Admin
Posts: 2059
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1358 times
Contact:

Re: Reading a rotary encoder

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue Mar 26, 2024 9:10 am Any idea of maximum frequency or quadrature-counts/sec?
As it relies on the HW PCNT counters, it can go very very fast (MHz)
Post Reply