Parallel Port Proficiency
10 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

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

  • To get status byte from the printer
  • To send data to the printer (correct)
  • To establish a connection with the printer
  • To control the printer
  • How many status lines does the parallel port have?

  • 5 (correct)
  • 3
  • 6
  • 4
  • Which line indicates the printer's readiness?

  • Control lines
  • Busy (correct)
  • Data bus
  • Strobe#
  • What is the base address used for sending data to the printer and controlling?

    <p>0x378</p> Signup and view all the answers

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

    <p>ps</p> Signup and view all the answers

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

    <p>To support port access in C programs</p> Signup and view all the answers

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

    <p>Status polling and interrupt driven</p> Signup and view all the answers

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

    <p>To turn on RTS and leave it on</p> Signup and view all the answers

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

    <p>To wait for DR bit to go on and THRE bit to go on</p> Signup and view all the answers

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

    <p>To establish a physical connection with the printer</p> Signup and view all the answers

    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.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    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

    Use Quizgecko on...
    Browser
    Browser