cs609 Midterm Subjective Solved With References by Seher
cs609 Midterm Subjective Solved With References by Seher
((( inport((*lpt) +1)) & 0x80) == 0x80) which condition is checked? 2 marks
Q:2
Which command used before changing the typematic and LEDS? 3 marks.
If data is to be transferred from one computer to another through some media which can carry
digital data then the modem can be eliminated and the UART on both computers can be
interconnected. Such arrangement is called a NULL modem.
• Write on buffer
Interrupt 11H is used to determine the systems information. On return this service returns the
systems info in AX register.
Q.2: When we discuss flow control using RS232C. Which line is used for data transmission and
reception?
Q.3: What the usage of coprocessor control word while testing for coprocessor?
The coprocessor control word contains some control information about the coprocessor. The
bit number 7 of coprocessor control word is the Interrupt Enable Flag and bit number 8 & 9
should contain 11on initialization. The coprocessor status register stores the status of the
coprocessor. Very much like the flags register in the microprocessor the Coprocessor status
word can be used to determine the result of a comparison as shown in the slide.
Q.4: Suppose we have got the status byte of LPT1 port usig BIOS function int 17H.Write the
condition
Answer:
AH=00
AL=ASCII code
DX=Interface#
On exit
AH=Status Byte
in C language that can check the time out, transfer error and out of paper error.
The UART is a device used for asynchronous communications. UART is capable of encapsulating
a byte that might be 5, 6, 7 or 8 bits wide in start and stop bits. Moreover it can attach an extra
parity bit with the data for error detection. The width of stop bits may also vary.
• Write on buffer
temp=*(lpt);
*lpt=*(lpt + 1);
*(lpt + 1)=temp;
Answer:
Similarly some data (as control information) can be send to the keyboard. The processor will
write on the port 60H. The device driver will check the OBF( output buffer full bit of port 64H
which remains set as long as the byte is not received by the keyboard. On receipt of the byte
from the port 60H the keyboard device write a code 0xFA on the port 60H to indicate that the
byte has been received properly.
Answer:
Int 12H is used to determine the amount of conventional memory interfaced with the processor
in kilobytes. The amount of memory above conventional memory (extended memory) can be
determined using the service 15H/88H.
First the low nibble of the byte is sent from the sender in bit D0 to D3 of the data port. D4 bit is
cleared to indicate the low nibble is being sent. The receiver will know the arrival of the low
nibble when its checks BUSY bit which should be set (by the interface) on arrival.
Answer:
The lower 4 bits of this register stores a code indicating the frequency with which the RTC
hardware interrupt can interrupt the processor. The next field is used to specify the time
frequency i.e. the frequency with the time is sampled and hence updated. The most significant
bit indicates that after time sampling if the time has been updated in to the 64 byte RAM or
not.
Answer:
Once an interrupt occurs it may be required to identify the case of the interrupt. This register is
used to identify the cause of the interrupt.
What are the usages of coprocessor control word in coprocessor while testing for
coprocessor? 3 marks
Answer:
The coprocessor control word contains some control information about the coprocessor. The
bit number 7 of coprocessor control word is the Interrupt Enable Flag and bit number 8 & 9
should contain 11 on initialization.
Answer:
In direct parallel port programming it indicate to print a file. While loop terminate when the file
ends.
Unsigned int far * lpt = (unsigned int far *)0x00400008 Direct parallel port programming LPTs
swapping
Answer:
Here we are accessing the base register address of LPT1 that is on the 40 segment 08 offset
Answer:
First the low nibble of the byte is sent from the sender in bit D0 to D3 of the data port. D4 bit is
cleared to indicate the low nibble is being sent. The receiver will know the arrival of the low
nibble when its checks BUSY bit which should be set (by the interface) on arrival.
Answer:
Answer:
Answer:
Data is received through the RxD line. Data is send through the TxD line. DTR (data terminal
Answer:
Real time clock is a device incorporated into the PC to update time even if the computer is off.
It has the characteristics shown in the slide above which enables it to update time even if the
computer is off.
Answer:
Answer:
UART contains a self test mode which can be used by the programmer to self test the software.
In self test mode the output of the UART is routed to its input. So you receive what you send.
Answer:
Moreover if a single computer is available to a developer the UART contains a self-test mode
which can be used by the programmer to self-test the software. In self-test mode the output of
the UART is routed to its input. So you receive what you send.
Answer:
Answer:
First the low nibble of the byte is sent from the sender in bit D0 to D3 of the data port. D4 bit is
cleared to indicate the low nibble is being sent. The receiver will know the arrival of the low
nibble when its checks BUSY bit which should be set (by the interface) on arrival.
A function that will send com port. com port number will be accessed as parameter ?
Answer:
The initialize () function initializes the COM port whose number is passed as parameter using
BIOS services.
Answer: