[Voyage-linux] LPC connector on Wrap.2c board
Jake Vickers
(spam-protected)
Tue Feb 13 05:58:13 HKT 2007
Hello everyone. I just joined the mailing list, and I'm looking for help
on a specific problem.
The Wrap.2c board has 1 serial, which is normally used for console
output (as you know). But it has a LPC connector on board that I was
under the impression could be configured to add another serial port to
the board. Has anyone had any experience with this? I'm mainly looking
to turn a couple pins hi/low to turn on some relays and I contacted the
support people over at PCEngines, but his reply is over my head (it
didn't make sense to me). Here's his reply:
<--my message to him-->
Sorry, maybe I'm not understanding or did not make myself clear.
I'd like to use the LPC interface to control some relays. Simple on/off
type (solid state).
I need to control 4 of them or I'd use the serial interface (utilizing
DTR and CTS). I'm mainly interested in how to control the following pins
(to set them either as on or off):
3 LAD0 LPC Data 0
5 LAD1 LPC Data 1
7 LAD2 LPC Data 2
9 LAD3 LPC Data 3
I'm not a core level programmer, so I was hoping that these pins had
already been assigned a HEX address that could be called to set them as
either high or low. I appreciate the information you did send me, and I
have downloaded the SC1100 data book. It is a wealth of knowledge, but
most of it seems over my head.
Do you know of anyone who has used this for extra serial ports, or other
such devices?
Thanks! I appreciate you taking the time to reply!
<--his reply-->
1. turn off LPC function -> config register, I/O offset 09030h (32 bit)
-> clear bits 14, 16
2. program GPIO pins -> registers starting at I/O offset 0F400h.
First program the individual pin configurations (offset 0F420 / 0F424),
pin by pin.
Then access the GPIO data out registers to control the pins.
I recommend testing under DOS first before fighting a Linux or *BSD kernel.
<--end-->
Does that make sense to anyone? Ideally I'd like to have a second serial
port on this board, but if I can just turn the above pins on/off in C
code that would be fine as well.
Thanks for taking the time to read this!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3275 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20070212/b5fc5895/attachment.bin>
More information about the Voyage-linux
mailing list