--- In "Harold" <> wrote:
>
> You may need to write to the PC/104 MUX registers at 0xE8000030 to 0xE800003C
> to set the pins to function as GPIO instead of ISA bus.
Whoa, you're absolutely right.
This is in the TS-7800 manual:
The PC-104 connector can be multiplexed between different functionalities
including ISA bus and GPIO. The power-up default is GPIO mode, with all I/Os in
a neutral state. To enable the PC-104 bus (ISA) signals, it is necessary to
write the following values to the registers specified:
0x55555555 to address 0xE8000030
0x55555555 to address 0xE8000034
0x55555 to address 0xE8000038
0x55555 to address 0xE800003C
So I stupidly assumed that the power-up default is GPIO mode :)
This did the trick:
BUS = ( unsigned int * ) ( base + ( 0x30 / 0x04 ) );
*BUS = 0x0;
BUS = ( unsigned int * ) ( base + ( 0x34 / 0x04 ) );
*BUS = 0x0;
BUS = ( unsigned int * ) ( base + ( 0x38 / 0x04 ) );
*BUS = 0x0;
BUS = ( unsigned int * ) ( base + ( 0x3C / 0x04 ) );
*BUS = 0x0;
before any read/writes
Thanks *super*
Craig
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|