<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hades.mech.northwestern.edu//index.php?action=history&amp;feed=atom&amp;title=Quadrature_decoding_in_hardware%2C_or_just_counters</id>
	<title>Quadrature decoding in hardware, or just counters - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hades.mech.northwestern.edu//index.php?action=history&amp;feed=atom&amp;title=Quadrature_decoding_in_hardware%2C_or_just_counters"/>
	<link rel="alternate" type="text/html" href="https://hades.mech.northwestern.edu//index.php?title=Quadrature_decoding_in_hardware,_or_just_counters&amp;action=history"/>
	<updated>2026-05-18T04:53:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://hades.mech.northwestern.edu//index.php?title=Quadrature_decoding_in_hardware,_or_just_counters&amp;diff=5676&amp;oldid=prev</id>
		<title>LIMS at 03:26, 26 December 2007</title>
		<link rel="alternate" type="text/html" href="https://hades.mech.northwestern.edu//index.php?title=Quadrature_decoding_in_hardware,_or_just_counters&amp;diff=5676&amp;oldid=prev"/>
		<updated>2007-12-26T03:26:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Some encoders produce up to a million counts per revolution.   For very fast quadrature signals there is no way that a software quadrature decoder can avoid overrun errors.  Instead we may use the LS7083 chip to translate the A and B quadrature signals into brief pulses indicating up-count or down-count.  The up and down counts can be configured as external input signals to increment counter/timer 0 and counter/timer 1 respectively.  No ISR is required, one simply reads the timer counts whenever required.&lt;br /&gt;
&lt;br /&gt;
In the example code QuadratureHard.c, the counter/timers are read every 10mS.   They are both 16-bit counters, so they roll over from 65535 to 0.   To assemble a single 32-bit encoder count variable called bigcount, we add on the recent up-counts from Timer 0 and subtract the recent down-counts from Timer 1.   If either Timer has decreased in value, it must be due to a rollover, and bigcount is corrected by 65536.&lt;/div&gt;</summary>
		<author><name>LIMS</name></author>
	</entry>
</feed>