Parallel Port Proficiency

DesirousChocolate avatar
DesirousChocolate
·
·
Download

Start Quiz

Study Flashcards

10 Questions

What is the purpose of the handshake process in the parallel port?

To send data to the printer

How many status lines does the parallel port have?

5

Which line indicates the printer's readiness?

Busy

What is the base address used for sending data to the printer and controlling?

0x378

Which command can be used to access the parallel port in Tutor?

ps

What is the purpose of the library ($pcinc/cpu.h) mentioned in the text?

To support port access in C programs

Which strategy can be used for I/O driver code?

Status polling and interrupt driven

What is the purpose of the full duplex mode modem signal handshake?

To turn on RTS and leave it on

What is the purpose of the polling loop mentioned in the text?

To wait for DR bit to go on and THRE bit to go on

What is the purpose of the physical connector and ground reference lines in the parallel port?

To establish a physical connection with the printer

Study Notes

  • Parallel port for printer communication
  • 5 status lines and 4 control lines
  • Data bus with up to 32 bits
  • Physical connector and ground reference lines
  • Handshake process for sending data to printer
  • Data byte sent all at once on D0-D7
  • Printer indicates readiness with Busy = 0
  • PC sets up data bits and signals readiness with Strobe# = 0
  • Printer acknowledges and takes data with Busy = 1
  • Strobe# set to 1 for next cycle
  1. The parallel port has three addresses defined by IBM.
  2. The base address used is 0x378 for sending data to printer, getting status byte, and controlling.
  3. The parallel port can be accessed using the Tutor 'ps' command.
  4. There is a library ($pcinc/cpu.h) for port access support in C programs.
  5. Two basic strategies for I/O driver code are status polling and interrupt driven.
  6. Full duplex mode modem signal handshake involves turning on RTS and leaving it on.
  7. Status polling involves looping on send/receive data to/from COM2.
  8. Processor loop is much faster than byte transfer rate.
  9. Status polling assembly code involves turning on DTR and RTS, waiting for DSR, CTS, and DCD, and reading data ready.
  10. Polling loop is used for waiting for DR bit to go on and THRE bit to go on.

Test your knowledge on the parallel port and its functions with this informative quiz! Learn about the physical connector and ground reference lines, the data bus with up to 32 bits, and the handshake process for sending data to a printer. Discover the different strategies for I/O driver code, such as status polling and interrupt driven, and the full duplex mode modem signal handshake. Take this quiz to see if you can identify the base address used for sending data to a printer and controlling, and the library for port

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Use Quizgecko on...
Browser
Browser