I am using the STPC Elite. I would like to configure the registers controlling the GPIO. However, the values that I set in the control registers are never set, and the default value always stays there. For example: When I set a value to register 0x320 (Port Direction Control), it's value always stays 0xFF. How do I enable and control the GPIO? Thanks!
When accessing the PCI configuration registers - register 0xCF8 has 6 bits for the register number (bites 2...7). It means that the highest register number that can be accessed is 0x3F.
How can I access the SOUTH BRIDGE MISCELLANEOUS REGISTER which has offset of 0x40? Thanks!
First of all, the SBMisc0 register has to be accessed with a 32b access. Then you can do it. This works better:
Code:
mov eax, 80006040h mov dx,0cf8h out dx,eax ; mov dx,0cfch in al,dx or al,2 out dx,al ; now you have access to the gpio xor al,al ; make all lower byte outputs mov dx, 0320h out dx,al ;now out to 0326h appears on the gpio port pins Enjoy!
Do you know how to check with their supplied excecutable for checking registers, mio, whether this enable is working?
Thanks, Adam
Quote:
On 24-02-2004 at 01:33, Anonymous wrote: Turns out, my suggestion wasn't complete First of all, the SBMisc0 register has to be accessed with a 32b access. Then you can do it. This works better:
Code:
mov eax, 80006040h mov dx,0cf8h out dx,eax ; mov dx,0cfch in al,dx or al,2 out dx,al ; now you have access to the gpio xor al,al ; make all lower byte outputs mov dx, 0320h out dx,al ;now out to 0326h appears on the gpio port pins Enjoy!