Accessing GPIO

  • Thread starter Thread starter ackesa
  • Start date Start date
A

ackesa

Hello,

I'm not shure, if this is the right group for posting this question,
but maybe there is someone who can help me.

I'm progamming on Windows Ce with the compact framework on the
"Wafer-LX-800"-Board (have a look at www.ieiworld.com; it has an
"x86"-processor) and I need to read the GPI0 ( its Pin7 at the GPIO
connector and it should be defined as input). But how can a do this by
using C#?

I've already searched the web. The most promising idea was the use of
the class "PysicalAddressPointer" of the OpenNetCf-Library
(www.opennetcf.org). But I failed in finding out which adress to use
and how to "read" the nececarry pin.

I would appreciate any help!

Sabine
 
If the board has a driver for the GPIO, use it. If not, then you must learn
to read a data sheet and use the PhysicalAddressPointer. I'm not familiar
with that board, but generall the way GPIOs work will require that you map a
direction register to set it to input, then map either a value register that
allows you to read and write to the pin, or there will be separate read and
write registers.

Time to learn to read a data sheet.
 
Or talk to the board vendor and ask them how to do it. They're in a better
position to give you detailed information than we are...

Paul T.
 
Back
Top