Software

From Wiki-DB
Revision as of 11:17, 9 July 2012 by Sgonzo (talk | contribs)
Jump to navigationJump to search

GPIOs

Mapping

 In the following sheet you can find the GPIOs and their linux-number
 

Control

How to control a GPIO:

 cd /sys/class/gpio
 echo 44 >export              // create new directory
 cd gpio44                    // go into this directory
 cat direction                // show if GPIO is used as an input or an output
 out
 echo 1 >value                // change output to '1'=high
 echo in >direction           // change GPIO to input
 cat value                    // show input value
 0                            // '0' = low

PLD

Development Software

To write your own VDHL-code you can use the ispLEVER Classic Software from Lattice ([1]


You also need a programmer (e.g. HW-USBN-2A from Lattice)

After installing the software and the drivers for your programmer you can start a new project.

Programming example

You can find a demo-project here:media:PLD-demo.zip

You have to download the *.jed-File with the programmer to your PLD.