<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki3.micromint.com/skins/common/feed.css?207"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki3.micromint.com/index.php?action=history&amp;feed=atom&amp;title=Electrum_Kernel_SPI_ADC_Driver</id>
		<title>Electrum Kernel SPI ADC Driver - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki3.micromint.com/index.php?action=history&amp;feed=atom&amp;title=Electrum_Kernel_SPI_ADC_Driver"/>
		<link rel="alternate" type="text/html" href="https://wiki3.micromint.com/index.php?title=Electrum_Kernel_SPI_ADC_Driver&amp;action=history"/>
		<updated>2026-04-11T17:03:15Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.15.3</generator>

	<entry>
		<id>https://wiki3.micromint.com/index.php?title=Electrum_Kernel_SPI_ADC_Driver&amp;diff=1953&amp;oldid=prev</id>
		<title>Support:&amp;#32;/* Kernel SPI ADC driver */</title>
		<link rel="alternate" type="text/html" href="https://wiki3.micromint.com/index.php?title=Electrum_Kernel_SPI_ADC_Driver&amp;diff=1953&amp;oldid=prev"/>
				<updated>2011-11-14T13:47:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Kernel SPI ADC driver&lt;/span&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:47, 14 November 2011&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Kernel SPI ADC driver=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Kernel SPI ADC driver=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://www.micromint.com/updates/electrum/adc128s052.zip adc128s052.zip]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://www.micromint.com/updates/electrum/adc128s052.zip adc128s052.zip] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Updated: Nov-2011&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Contributed by: Christian Saether&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Contributed by: Christian Saether&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-11 17:03:16 --&gt;
&lt;/table&gt;</summary>
		<author><name>Support</name></author>	</entry>

	<entry>
		<id>https://wiki3.micromint.com/index.php?title=Electrum_Kernel_SPI_ADC_Driver&amp;diff=1493&amp;oldid=prev</id>
		<title>Support at 23:02, 2 February 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki3.micromint.com/index.php?title=Electrum_Kernel_SPI_ADC_Driver&amp;diff=1493&amp;oldid=prev"/>
				<updated>2011-02-02T23:02:46Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:02, 2 February 2011&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Kernel SPI ADC driver &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;by Christian Saether&lt;/del&gt;=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Kernel SPI ADC driver=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://www.micromint.com/updates/electrum/adc128s052.zip adc128s052.zip]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://www.micromint.com/updates/electrum/adc128s052.zip adc128s052.zip]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Contributed by: Christian Saether&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This driver is an spi protocol driver for the adc128s052 a/d chip option on the Micromint Electrum 100 SBC.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This driver is an spi protocol driver for the adc128s052 a/d chip option on the Micromint Electrum 100 SBC.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-11 17:03:16 --&gt;
&lt;/table&gt;</summary>
		<author><name>Support</name></author>	</entry>

	<entry>
		<id>https://wiki3.micromint.com/index.php?title=Electrum_Kernel_SPI_ADC_Driver&amp;diff=1491&amp;oldid=prev</id>
		<title>Support:&amp;#32;Created page with '=Kernel SPI ADC driver by Christian Saether=  * [http://www.micromint.com/updates/electrum/adc128s052.zip adc128s052.zip]  This driver is an spi protocol driver for the adc128s05…'</title>
		<link rel="alternate" type="text/html" href="https://wiki3.micromint.com/index.php?title=Electrum_Kernel_SPI_ADC_Driver&amp;diff=1491&amp;oldid=prev"/>
				<updated>2011-02-02T18:13:27Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#39;=Kernel SPI ADC driver by Christian Saether=  * [http://www.micromint.com/updates/electrum/adc128s052.zip adc128s052.zip]  This driver is an spi protocol driver for the adc128s05…&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Kernel SPI ADC driver by Christian Saether=&lt;br /&gt;
&lt;br /&gt;
* [http://www.micromint.com/updates/electrum/adc128s052.zip adc128s052.zip]&lt;br /&gt;
&lt;br /&gt;
This driver is an spi protocol driver for the adc128s052 a/d chip option on the Micromint Electrum 100 SBC.&lt;br /&gt;
It is meant to be built as a loadable driver.&lt;br /&gt;
It allocates a megabyte internal buffer (about a second's worth of samples) when loaded.  It is controlled by writing to its file system device.  &lt;br /&gt;
&lt;br /&gt;
The commands are:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;r&amp;quot; - run&lt;br /&gt;
 &amp;quot;s&amp;quot; - stop&lt;br /&gt;
 &amp;quot;cddd...&amp;quot; - one or more &amp;quot;d&amp;quot; specifying channel rotation&lt;br /&gt;
&lt;br /&gt;
It will send a message to sample each of the specified channels 16 times in rotation.&lt;br /&gt;
Channel zero is always included.  The numbers of channels must be 1, 2, 4, or 8.&lt;br /&gt;
&lt;br /&gt;
For example, if the device is &amp;quot;/dev/adc0&amp;quot; then the following shell command&lt;br /&gt;
&lt;br /&gt;
 echo c0123 &amp;gt; /dev/adc0&lt;br /&gt;
&lt;br /&gt;
will enable sampling for channels 0, 1, 2, and 3.  The device must be stopped when this is issued.  To start sampling, do&lt;br /&gt;
&lt;br /&gt;
 echo r &amp;gt; /dev/adc0&lt;br /&gt;
&lt;br /&gt;
At this point, the data samples will be returned by doing a read on /dev/adc0.  They are returned as a series of 16 bit values in the channel rotation specified.&lt;br /&gt;
&lt;br /&gt;
Using od to display them, for example:&lt;br /&gt;
&lt;br /&gt;
 od -sAn -w8 /dev/adc0&lt;br /&gt;
 8172   8174      1    268&lt;br /&gt;
 8174   8181      1    270&lt;br /&gt;
 8172   8181      2    266&lt;br /&gt;
 8176   8173      0    263&lt;br /&gt;
 8172   8172      2    268&lt;br /&gt;
 8172   8179      2    265&lt;br /&gt;
 8169   8177      2    269&lt;br /&gt;
 8175   8180      1    264&lt;br /&gt;
&lt;br /&gt;
Reading from minor device numbers other than zero will average samples by 2 raised to the minor number, so reading minor device number 1 returns the average of every 2 samples, minor 2 every 4 samples, up to minor 4 (avg every 16).  Values from the a/d are shifted left 2 (multiplied by 4) as the lower bits will have some value when multiple samples are averaged.&lt;/div&gt;</summary>
		<author><name>Support</name></author>	</entry>

	</feed>