<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.barix.com/index.php?action=history&amp;feed=atom&amp;title=IPAM_IO_in_BCL</id>
	<title>IPAM IO in BCL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.barix.com/index.php?action=history&amp;feed=atom&amp;title=IPAM_IO_in_BCL"/>
	<link rel="alternate" type="text/html" href="https://wiki.barix.com/index.php?title=IPAM_IO_in_BCL&amp;action=history"/>
	<updated>2026-04-25T23:15:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.barix.com/index.php?title=IPAM_IO_in_BCL&amp;diff=723&amp;oldid=prev</id>
		<title>Sandra at 21:09, 23 March 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.barix.com/index.php?title=IPAM_IO_in_BCL&amp;diff=723&amp;oldid=prev"/>
		<updated>2009-03-23T21:09:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:09, 23 March 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l59&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Back to [[IPAM_100]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sandra</name></author>
	</entry>
	<entry>
		<id>https://wiki.barix.com/index.php?title=IPAM_IO_in_BCL&amp;diff=120&amp;oldid=prev</id>
		<title>Brain: New page: IPAM 100 features parallel input and output pins (PIO). In ABCL most of the PIOs are controllable in software.  == Reserved PIOs ==  Several PIOs are reserved for standard functions on the...</title>
		<link rel="alternate" type="text/html" href="https://wiki.barix.com/index.php?title=IPAM_IO_in_BCL&amp;diff=120&amp;oldid=prev"/>
		<updated>2008-12-20T13:51:28Z</updated>

		<summary type="html">&lt;p&gt;New page: IPAM 100 features parallel input and output pins (PIO). In ABCL most of the PIOs are controllable in software.  == Reserved PIOs ==  Several PIOs are reserved for standard functions on the...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;IPAM 100 features parallel input and output pins (PIO). In ABCL most of the PIOs are controllable in software.&lt;br /&gt;
&lt;br /&gt;
== Reserved PIOs ==&lt;br /&gt;
&lt;br /&gt;
Several PIOs are reserved for standard functions on the ABCL firmware. Those are:&lt;br /&gt;
* PIO 24 and 25 - red and green LED&lt;br /&gt;
* PIO 8 - reset button&lt;br /&gt;
* PIO 17 - one-wire RTC (IPAM carrier board only)&lt;br /&gt;
&lt;br /&gt;
== Programmable PIOs ==&lt;br /&gt;
There are 8 freely programmable PIOs available on IPAM 100:&lt;br /&gt;
* PIO 11&lt;br /&gt;
* PIO 16&lt;br /&gt;
* PIO 17 (not on IPAM carrier board)&lt;br /&gt;
* PIO 20&lt;br /&gt;
* PIO 22&lt;br /&gt;
* PIO 23&lt;br /&gt;
* PIO 29&lt;br /&gt;
* PIO 30&lt;br /&gt;
&lt;br /&gt;
== PIO control in BCL ==&lt;br /&gt;
&lt;br /&gt;
The above PIOs can be used as inputs as well as outputs. By default all are initialised as inputs with internal pull-up resistor.&lt;br /&gt;
&lt;br /&gt;
The PIOs are read with the '''iostate''' command and written with the '''ioctl''' command. The ABCL technical manual provides a complete IO map for the IPAM 100. The map is divided into logical sections: relays, digital inputs, digital outputs, analog inputs, etc. The PIOs are mapped to both digital inputs as well as digital outputs. &lt;br /&gt;
&lt;br /&gt;
Reading a PIO (iostate on a digital input) switches the respective pin to an input, writing a PIO (ioctl on a digital output) switches the respective pin to an output. &lt;br /&gt;
&lt;br /&gt;
'''IMPORTANT:''' If you have an external peripherals attached to PIOs do not call ioctl on a PIO which is an input. This may damage the hardware!&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
We want to use PIOs 11, 16, 17 and 20 as inputs and PIOs 22, 23, 29 and 30 as outputs. By default all are initialised as inputs.&lt;br /&gt;
&lt;br /&gt;
PIOs 11, 16, 17 and 20 are mapped to digital inputs 201, 202, 203 and 204 as well as to digital output 101, 102, 103 and 104. &lt;br /&gt;
&lt;br /&gt;
PIOs 22, 23, 29 and 30 are mapped to digital inputs 205, 206, 207 and 208 as well as to digital output 105, 106, 107 and 108. &lt;br /&gt;
&lt;br /&gt;
To read the first four PIOs as inputs, use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iostate (201)    ' read input PIO 11&lt;br /&gt;
iostate (202)    ' read input PIO 16&lt;br /&gt;
iostate (203)    ' read input PIO 17&lt;br /&gt;
iostate (204)    ' read input PIO 20&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To control the last four PIOs as outputs, use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ioctl(105,0)    ' set PIO 22 to output value 0&lt;br /&gt;
ioctl(106,0)    ' set PIO 23 to output value 0&lt;br /&gt;
ioctl(107,0)    ' set PIO 29 to output value 0&lt;br /&gt;
ioctl(108,0)    ' set PIO 30 to output value 0&lt;br /&gt;
&lt;br /&gt;
ioctl(105,1)    ' set PIO 22 to output value 1&lt;br /&gt;
ioctl(106,1)    ' set PIO 23 to output value 1&lt;br /&gt;
ioctl(107,1)    ' set PIO 29 to output value 1&lt;br /&gt;
ioctl(108,1)    ' set PIO 30 to output value 1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brain</name></author>
	</entry>
</feed>