<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dh-electronics.com/index.php?action=history&amp;feed=atom&amp;title=Software_428-200</id>
	<title>Software 428-200 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dh-electronics.com/index.php?action=history&amp;feed=atom&amp;title=Software_428-200"/>
	<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=Software_428-200&amp;action=history"/>
	<updated>2026-04-28T00:21:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=Software_428-200&amp;diff=1272&amp;oldid=prev</id>
		<title>Sgonzo: Created page with &quot;==GPIOs==  ===Mapping===   In the following sheet you can find the GPIOs and their linux-number   File:GPIOs.jpg  ===Control===  How to control a GPIO:  :{| class=&quot;wikitable&quot;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=Software_428-200&amp;diff=1272&amp;oldid=prev"/>
		<updated>2015-05-28T05:50:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==GPIOs==  ===Mapping===   In the following sheet you can find the GPIOs and their linux-number   &lt;a href=&quot;/index.php?title=File:GPIOs.jpg&quot; title=&quot;File:GPIOs.jpg&quot;&gt;File:GPIOs.jpg&lt;/a&gt;  ===Control===  How to control a GPIO:  :{| class=&amp;quot;wikitable&amp;quot;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==GPIOs==&lt;br /&gt;
&lt;br /&gt;
===Mapping===&lt;br /&gt;
  In the following sheet you can find the GPIOs and their linux-number&lt;br /&gt;
  [[File:GPIOs.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Control===&lt;br /&gt;
&lt;br /&gt;
How to control a GPIO:&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|1. &amp;lt;code&amp;gt;&amp;#039;&amp;#039;cd /sys/class/gpio&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|2. create new directory: &amp;lt;code&amp;gt;&amp;#039;&amp;#039;echo 44 &amp;gt;export  &amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|3. go into this directory: &amp;lt;code&amp;gt;&amp;#039;&amp;#039;cd gpio44&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|4. show if GPIO is used as an input or an output: &amp;lt;code&amp;gt;&amp;#039;&amp;#039;cat direction&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|5. change output to &amp;#039;1&amp;#039;=high: &amp;lt;code&amp;gt;&amp;#039;&amp;#039;echo 1 &amp;gt;value&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|6. change GPIO to input: &amp;lt;code&amp;gt;&amp;#039;&amp;#039;echo in &amp;gt;direction&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|7. show input value: &amp;lt;code&amp;gt;&amp;#039;&amp;#039;cat value&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|}  &lt;br /&gt;
&lt;br /&gt;
==PLD==&lt;br /&gt;
&lt;br /&gt;
===Development Software===&lt;br /&gt;
To write your own VDHL-code you can use the ispLEVER Classic Software from Lattice&lt;br /&gt;
([http://www.latticesemi.com/products/designsoftware/ispleverclassic/index.cfm?source=sidebar]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You also need a programmer (e.g. HW-USBN-2A from Lattice) to deploy the VHDL-Code on your PLD.&lt;br /&gt;
&lt;br /&gt;
After installing the software and the drivers for your programmer you can start a new project.&lt;br /&gt;
===Programming example===&lt;br /&gt;
You can find a demo-project here:[[media:PLD-demo.zip]]&lt;br /&gt;
&lt;br /&gt;
You have to download the *.jed-File with the programmer to your PLD.&lt;br /&gt;
&lt;br /&gt;
  In the constraint editor of ispLEVER you can define, which input X_VAR1 is.&lt;br /&gt;
  In this example GPIO E is defined as X_VAR1. If you define GPIO E as an&lt;br /&gt;
  output and set GPIO E high, the PLD LED should flash red.&lt;br /&gt;
  [[File:VHDL-Code.jpg]]&lt;/div&gt;</summary>
		<author><name>Sgonzo</name></author>
	</entry>
</feed>