Parent 

IBM 5160  -  POST  -  'Test Chamber' mode and 'Manufacturing Test' mode


POST = Power-On Self Test


IMPORTANT:  The following is specific to the IBM 5160 (IBM XT), fitted with IBM BIOS ROM's.



'Test Chamber' mode

The IBM 5160's POST will go into TEST CHAMBER mode if it finds that switch 1 on the motherboard's switch block SW1 is set to ON.
   
To the user, the obvious consequence of TEST CHAMBER mode is that the POST runs in a loop (when the POST finishes, it restarts rather than attempting to boot from something).

5160 - POST - Test chamber mode - 1.png
   
In TEST CHAMBER mode, the POST's keyboard test (301 test) is skipped.

5160 - POST - Test chamber mode - 2.png
   
In TEST CHAMBER mode, the POST's diskette test (601 test) is skipped.

5160 - POST - Test chamber mode - 3.png




'Manufacturing Test' mode

The IBM 5160's POST will go into MANUFACTURING TEST mode if it finds that the motherboard's keyboard data line ('KBD DATA') is grounded.
An example of how to do that is shown at here.

5160 - POST - Manufacturing test mode - 1.png
   
In MANUFACTURING TEST mode, the POST's keyboard test (301 test) is skipped.

5160 - POST - Manufacturing test mode - 2.png
   
In MANUFACTURING TEST mode, the single short beep of the speaker done near the end of the POST is skipped.

5160 - POST - Manufacturing test mode - 3.png
   
   
In MANUFACTURING TEST mode, the POST gets channel #0 on the 8253 timer chip to trigger a "BLINK LED" operation.  Earlier, channel 0 of the 8253 timer was set to output a square wave of about 18.2 Hz, so, at about 18.2 Hz, a subroutine ("BLINK_INT") is run that toggles the PB6 pin (bit 6 of port B) of the 8255 chip.  Per here, the PB6 pin going LOW pulls the keyboard clock line ('KBD CLK') on the motherboard's keyboard DIN connector to LOW.  The result is a square wave of about 9.1 Hz on the keyboard clock line on the motherboard's keyboard DIN connector.

So, presumably, for MANUFACTURING TEST mode, IBM plugged a custom device into the motherboard's keyboard DIN connector.
The device:
  - Grounds the keyboard data line ('KBD DATA'), so as to put the POST into MANUFACTURING TEST mode; and
  - Has a LED connected between ground and the keyboard clock line ('KBD CLK').

My homemade device, which includes the LED, is shown at here.

It has been observed that the LED blinking will not be seen if an MDA video card is fitted and the motherboard's video switches are set to CGA, or, a CGA video card is fitted and the motherboard's video switches are set to MDA.  Yet to investigate why that is.  If no video card is fitted, set the motherboard's video switches to EGA.

5160 - POST - Manufacturing test mode - 4.png