Inline ASM: Quadrature Encoder

krazatchu's picture
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Type: 

Compiler/Assembler: 

An inline conversion of some assembly source originally by Chan.
Converted and republished with permission under GPL.

Tested on a Mega8 @ 16Mhz running in a timer interrupt at 100kHz.
No registers were harmed in the making of this code.

Full article and code can be found here:
http://n0m1.com/2011/12/21/inline-assembly-a-fast-quadrature-decoder/

Merry Christmas!
Michael