Podcast
Questions and Answers
What is the purpose of the handshake process in the parallel port?
What is the purpose of the handshake process in the parallel port?
How many status lines does the parallel port have?
How many status lines does the parallel port have?
Which line indicates the printer's readiness?
Which line indicates the printer's readiness?
What is the base address used for sending data to the printer and controlling?
What is the base address used for sending data to the printer and controlling?
Signup and view all the answers
Which command can be used to access the parallel port in Tutor?
Which command can be used to access the parallel port in Tutor?
Signup and view all the answers
What is the purpose of the library ($pcinc/cpu.h) mentioned in the text?
What is the purpose of the library ($pcinc/cpu.h) mentioned in the text?
Signup and view all the answers
Which strategy can be used for I/O driver code?
Which strategy can be used for I/O driver code?
Signup and view all the answers
What is the purpose of the full duplex mode modem signal handshake?
What is the purpose of the full duplex mode modem signal handshake?
Signup and view all the answers
What is the purpose of the polling loop mentioned in the text?
What is the purpose of the polling loop mentioned in the text?
Signup and view all the answers
What is the purpose of the physical connector and ground reference lines in the parallel port?
What is the purpose of the physical connector and ground reference lines in the parallel port?
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
- The parallel port has three addresses defined by IBM.
- The base address used is 0x378 for sending data to printer, getting status byte, and controlling.
- The parallel port can be accessed using the Tutor 'ps' command.
- There is a library ($pcinc/cpu.h) for port access support in C programs.
- Two basic strategies for I/O driver code are status polling and interrupt driven.
- Full duplex mode modem signal handshake involves turning on RTS and leaving it on.
- Status polling involves looping on send/receive data to/from COM2.
- Processor loop is much faster than byte transfer rate.
- Status polling assembly code involves turning on DTR and RTS, waiting for DSR, CTS, and DCD, and reading data ready.
- 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.
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