<--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!
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Voyage-linux mailing list [email protected] http://list.voyage.hk/mailman/listinfo/voyage-linux
