• Keine Ergebnisse gefunden

Serial Port Tests

The following tests verify the functions associated with the serial ports (port A, port B, keyboard, and mouse) on the System Board.

5.8.1 Test 36 - Serial Ports Reset Test

This test verifies the reset state of the 28530 Serial Communication Controller (SCC) chip for serial ports A and B as well as the mouse and keyboard ports. This test also verifies that all ports are accessible.

-tc -tc -tc NOTE ~ -tc -tc

This test uses the environment variable "CONSOLE" in order to determine which ports to test. In order to test the keyboard and mouse ports, the CONSOLE variable must be set to be one of the serial ports. For example, setting "CONSOLE=zs(,l,)" allows testing both the keyboard and mouse. This variable is set while at the ROM prompt.

Possible error messages follow:

Serial Port A reset test failure failing register = RRO

exp ... 44 act .., cO xor .., 84

Serial Port B reset test failure failing register = RRO

exp = 44 act = cO xor 84

The Serial Port A reset test failure indicates that either the port A can not be accessed or reset.

The user should make sure that command data is being written to the Z8530 chip and that status information is actually being read.

The Serial Port B reset test failure indicates that either the port B can not be accessed or reset.

The user should make sure that command data is being written to the Z8530 chip and that status information is actually being read.

5.8.2 Test 37· Serial Ports Internal Loopback Test

This test performs a loopback test for each channel in the Z8530 SCC chip for serial ports A and B as well as the keyboard and mouse ports.

~ ~ ~ NOTE ~ ~ ~

This test uses the environment variable "CONSOLE" in order to determine which ports to test. In order to test the keyboard and mouse ports, the CONSOLE variable must be set to be one of the serial ports. For example, setting "CONSOLE=zs(,l,)" allows testing both the keyboard and mouse. This variable is set while at the ROM prompt.

Possible error messages follow:

Serial Port A loopback test failure TX character = ff

RX character 00

xor = ff

Serial Port B loopback test failure TX character = 01

RX character

=

00

xor

=

01

Solbourne Confidential Information - Do Not Distribute

When Serial Port A internal loopback test failure occurs, the user must verify that the clock signal is supplied by the mouse port to the chip. A failure may indicates the

sec

chip is malfunctioning.

When Serial Port B internal loopback test failure occurs, the user must verify that the clock signal is supplied by the mouse port to the chip. A failure may indicates the

sec

chip is

malfunctioning.

5.8.3 Test 38 - System Timer Test

The System Timer Test verifies that the System Board can generate system timer interrupts.

To operate the system timer, the z8530 SCC chip for the keyboard must be re-programmed such that the baud rate generator is enabled and the TRxC pin is configured to output the baud rate generator signal. Because re-programming the keyboard port conflicts with normal user input, this test will only execute when the CONSOLE ROM environment variable is set to zsO (serial port A or B). If the console variable is set to something other than zsO, the test will print the following message:

To run test 14 CONSOLE must be set to zs() Test skipped.

If the console device is one of the serial ports, then this test correctly programs the keyboard port and enables the System Board interrupt register. If a Kbus timeout error occurs while the keyboard port is being setup, one of the following messages will be printed and the test halts:

Timeout error occurred while resetting the Z8530 Port

=

KBD

Timeout error occurred while programming KBD port

The test then waits for a system timer interrupt to occur. If no system timer interrupt occurs within a few milliseconds, the test will print the following error message and halt:

Timeout waiting for system timer interrupt interrupt count = 0

If an interrupt occurs, the test verifies that the correct vector (Ox8d) is received. If the wrong vector is received, the test will print the following message and halt:

Incorrect System Board interrrupt vector received number of interrupts received = 1

expected vector OxBd received vector = OxBc

The test continues to receive system timer interrupts until 1000 interrupts have been received.

5.8.4 Test 39 - Profile Timer Test

The Profile Timer Test verifies that the System Board can generate profile timer interrupts.

To operate the profile timer, the RTS pin of the z8530

sec

chip must be set to true. Setting the RTS pin does not conflict with the normal mouse port programming. Therefore this test executes no matter what the ROM environment CONSOLE variable is set to.

The test writes the mouse port to set the RTS pin. If a Kbus timeout occurs while the mouse port is being accessed the following message will be printed and the test will halt:

Timeout occurred while setting RTS bit in WR5 of MOUSE port

The test then enables System Board interrupts and waits for a profile timer interrupt to occur. If no profile timer interrupt occurs within a few milliseconds, the test will print the following error message and halt:

Timeout waiting for profile timer interrupt interrupt count = 0

If an interrupt occurs, the test verifies that the correct vector (Ox8f) is received. If the wrong vector is received, the test will print the following message and halt:

Incorrect System Board interrrupt vector received number of interrupts received = 1

expected vector OxBf received vector = OxBd

The test continues to receive profile timer interrupts until 1000 interrupts have been received.