Category : Tutorials + Patches
Archive   : NAT_UART.ZIP
Filename : 551.DOC

 
Output of file : 551.DOC contained in archive : NAT_UART.ZIP
File Name :551.ASM
Date :Jan. 13, 1989
Author :Welson Lin

Purpose :This program is to checkout the functionality of 16C551 parallel
port registers--Data, Status, and Control registers and the
functionality of input and output pins associated with the device.
The bidirectional feature and compatible/extended mode
capability are also tested in this program.

Equipment :To facilitate the checkout of the device, a "loopback"
male DB25 parallel connector is required to plug into the parallel
connector on the PC during the test. The connector is configured as
follows :
/AUTO FD XT pin 14 ---- /ERROR pin 15
/SLCT IN pin 17 ---- SLCT pin 13
/INIT pin 16 ---- PE pin 12
---- D7 PIN 9
---- D5 PIN 7
---- D3 PIN 5
---- D1 PIN 3
/STB pin 1 ---- /ACK pin 10 (/STB pin is connected to /ACK
---- BUSY pin 11 and BUSY pins)


Set up & :This parallel port checkout is default to LPT1 if no
Operation selection (Hit RETURN key) is entered at the port selection prompt.
To run the program successfully, follow the procedures below :
1.Make sure 16C551 is in the test socket.
2.Plug in the loopback connector.
3.Run 551.exe under DOS prompt.
4.To stop program execution any time, hit CTRL-Break.

Error Msg.:Error Message will be displayed if any type of error is
encountered during the test. The following error message
listing is helpful in identifying the type of failure the
device might have when the error message occurs.

1.READ XX, WRITE YY --
During register write/read test, data written is YY and XX is
data being read back.


2.CTR RESERVE BIT ERROR --
Bit 7 and bit 6 in the control register are not always 1.

3.STR RESERVE BIT ERROR --
Bit 0 and bit 1 in the status register are not always 1.

4.DTR READ/WRITE ERROR --
Data read back from data register is not the same as data
written to it.

5.CTR EVEN TEST ERROR --
When writing even data to the control register, it does
not read back EX. X is the lower nibble of the data written.

6.CTR ODD TEST ERROR --
When writing odd data to the control register, it does
not read back FX. X is the lower nibble of the data written.

7./IRQ=1 --
/IRQ bit in the status register is 1 instead of 0 which
means the occurence of interrupt is not recorded accurately.

8./IRQ=0 --
/IRQ bit in the status register is 0 instead of 1. This
means a false interrupt is being recorded.

9./BUSY=1 --
/BUSY bit in the status register is 1 instead of 0 when
the BUSY input pin is high.

10./BUSY=0 --
/BUSY bit in the status register is 0 instead of 1 when
the BUSY input pin is low.

11./ACK=1 --
/ACK bit in the status register is 1 instead of 0 when
the /ACK input pin is low.

12./ACK=0 --
/ACK bit in the status register is 0 instead of 1 when
the /ACK input pin is high.

13.PE=1 --
PE bit in the status register is 1 instead of 0 when
the PE input pin is low.

14.PE=0 --
PE bit in the status register is 0 instead of 1 when
the PE input pin is high.

15.SLCT=1 --
SLCT bit in the status register is 1 instead of 0 when
the SLCT input pin is low.

16.SLCT=0 --
SLCT bit in the status register is 0 instead of 1 when
the SLCT input pin is high.

17./ERROR=0 --
/ERROR bit in the status register is 0 instead of 1 when
the /ERR input pin is high.

18./ERROR=1 --
/ERROR bit in the status register is 1 instead of 0 when
the /ERR input pin is low.

19.EXTENDED MODE TEST FAILED --
Data port direction bit is not functioning correctly, so
that data written previously can not be read back.

20.PARALLEL PORT INPUT FAILED --
The parallel port can not function as an input port.

Compling &:A MAKE file (filename : 551) is provided to speed up the
Linking process of compiling and linking when the source file is being
changed. Simply run the MAKE file by typing the file name
under MASM directory.(make sure 551.ASM and 551 are on drive B)






















  3 Responses to “Category : Tutorials + Patches
Archive   : NAT_UART.ZIP
Filename : 551.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/