CS609 VU Current Assignment No. 2 Spring 2013 Solution
Assignment No. 02
Semester: Spring 2013
System Programming-CS609
Total Marks: 20
Due Date: 17/May/2013
Question 1: Marks 08
Answer the following questions precisely. Do not include irrelevant data in your answers. (1 mark for each)
Q.1. Which type of communication is feasible for a large distance?
Q.2. Which signals performs Handshaking and Polling?
Q.3. Where the PPI exists?
Q.4. Which interrupt and its service used to initialize the printer?
Q.5. Why we initialize the printer when it is already in ready state?
Q.6. Which BIOS routine supports the LPT4 and how?
Q.7. If the printer is connected at LPT1, where and what value should you placed?
Question 2: Marks 12
Write a program to print a file “abc.txt” located on D drive. Your program should perform the following checks before printing a character. (12 marks)
i. Printer has not any communication error.
ii. Printer is not busy.
iii. Printer must be selected.
SOLUTION IDEA:
Q.4. Which interrupt and its service used to initialize the printer?
interrupt INT 17H
service number 01
Q.3. Where the PPI exists?
it exist between CPU and parallel I/O devices ports.(not sure)
……………
Q.1. Which type of communication is feasible for a large distance?
There’s basically two options I see: get one of those super long range radio modules, like XBee that’s rated for 1 mile distance, or get a cellphone module and communicate over the internet using the cellular network.
……………
Q.1. Which type of communication is feasible for a large distance?
Serail communication.
Q.2. Which signals performs Handshaking and Polling?
r *d (data ready)
strobe signal
Q.3. Where the PPI exists?
PPI act an interface between I/O and CPU.
Q.4. Which interrupt and its service used to initialize the printer?
INt.17H/01H
Q.5. Why we initialize the printer when it is already in ready state?
to check the status of printer. i thnk…not cnfrmed yet
Q.6. Which BIOS routine supports the LPT4 and how?
Bios does not support LPT4. it just support LAPT1, LPT2, LPT3
Q.7. If the printer is connected at LPT1, where and what Continue reading