![Motorola SPX3BUM/D Скачать руководство пользователя страница 30](http://html.mh-extra.com/html/motorola/spx3bum-d/spx3bum-d_user-manual_243945030.webp)
30
MOTOROLA
Detecting Sandpoint 3
Detecting Sandpoint 3
8 FAQ
These questions are frequently asked.
1. What mode should I use if my software was running fine on Sandpoint 2?
Use ILEGACY=1 and IMODE=00 or 01 (this are equivalent to modes 0 and 1 on SP2).
2. What mode should I use if I am developing new software for Sandpoint 2?
Use the defaults: ILEGACY=0 and IMODE=00 -- these give better performance and enable all
features of the system.
3. How can I write to the serial port? It doesn’t seem to be at the address shown.
Like any plug-and-play device, ISA IO devices need to be plugged and played. DINK includes
setup for the serial port in the file “yk.c” for both the SuperIO and the COM ports.
4. How do I access/configure the PCI devices.
This depends to some extent on the MPMC card present. If it supports Map “B” (CHRP), then the
configuration cycles are performed by writing the configuration address (0x8000_0000 with the
appropriate bit set for the device number) to the PCI configuration address register
(0xFEC0_0000) and reading/writing from the PCI configuration data register (0xFEE0_0000). See
the file “pciLib.c” in the DINK source code for examples.
5. How can I control the STAT and FAIL LEDs?
To do this the GPIO port in the SuperIO needs to be enabled. Use the code in
“yk.c:ns308defaults()” as a starting point. This file sets the GPIO programmable address decoder
to an ISA address of 0x0700, making the IO registers available at 0xFE00_0700. Elsewhere in
“yk.c” the IO port direction is set to output for bits 1 and 0. Thereafter, writing a ‘0’ to that port
activates the LED, and writing a ‘1’ deactivates it.
9
Detecting Sandpoint 3
The Sandpoint 3 motherboard has a loopback connection between GPIO pins 7 and 6. If software needs to
know which platform it is operating on, the following sequence will work:
1. Enable the GPIO port on the SuperIO.
2. Program GPIO pin 7 to output.
3. Program GPIO pin 6 to input.
4. Write 1 to GPIO pin 7; read GPIO pin 6.
5. Write 0 to GPIO pin 7; read GPIO pin 6.
6. If read values are “[1, 0]”, then the motherboard is 3; else it is 2. There is no Sandpoint X1 as far as
you know.