HSC CS Paper II Most IMP Questions
HSC CS Paper II Most IMP Questions
1. Address Bus
6. The 8085 has a special signal called ALE (Address Latch Enable) for
informing the peripheral when the address / data bus is sending an address
and when it is functioning as a data bus.
Control and Status signals
This group of signals includes two control signals RD and
WR, three status signals IO/M, S1 and S0 and one special
signal ALE.
1. ALE:
4. IO/M:
8. X₁ and X₂:
• A crystal having frequency 6 MHz is connected at
these two pins.
• The frequency is internally divided by two.
• The system operates at 3 MHz
Power supply and clock frequency
4. CLK (OUT):
• This is clock output.
• This signal can be used as the system clock for other
devices.
Externally Initiated signals
1. INTR:
• This is the interrupt request signal.
• This is a general purpose interrupt.
Externally Initiated signals
3. TRAP:
• This is a nonmaskable interrupt and has the highest priority.
Externally Initiated signals
4. INTA:
• This is an interrupt acknowledgement.
• The microprocessor acknowledges an interrupt request by
the INTA signal.
• In addition to the interrupts, three pins - RESET, HOLD and
READY accept the externally initiated signals as inputs.
5. Ready:
• If the signal at this READY pin is low, the microprocessor
enters into a wait state.
• This signal is used primarily to synchronize slower
peripherals with the microprocessor.
Externally Initiated signals
6. HOLD:
• When a HOLD pin is activated by an external signal.
• The microprocessor releases control of buses and
allows the external peripherals to use them.
• For example HOLD signal is used in Direct memory
Access (DMA) data transfer.
7. HLDA:
• This is an acknowledgement.
• Microprocessor acknowledges the hold request by
HLDA.
Externally Initiated signals
8. RESET IN:
• When the signal on this pin goes low, the program
counter is set to zero, the buses are tri-stated and
the MPU is reset.
9.RESET OUT:
• This signal indicates that the MPU is being reset.
• The signal can be used to reset other devices.
Serial I/O Ports
● The 8085 has two pins to implement serial
transmission, SID (Serial input data) and SOD
(serial output data).
● A single bit can be serially inputted through
SID.
● The output pin SOD is set or reset as per 8085
SIM instruction.
Interrupts
What is an interrupt? Explain in detail.
Interrupts
What is an interrupt? Explain in detail.
• An interrupt is a subroutine call, initiated by external device through hardware
(hardware interrupt) or microprocessor itself (software interrupt).
• An interrupt can also be viewed as a signal, which suspends the normal sequence of
microprocessor and then microprocessor gives service to that device which has
given the signal. After completing the service, microprocessor again returns to the
main program.
• Microprocessor is connected to different peripheral devices. To communicate with
these devices, microprocessor 8085 uses interrupt method.
• An interrupt is an input signal, which transfers control to specific routine known as
Interrupt Service Routine (ISR). After executing ISR, control is again transfer to main
program.
• Microprocessor 8085 has two types of interrupts :
(i) Software interrupt ii) Hardware interrupt
• The software interrupts has more priority than any hardware interrupt.
• Software interrupts are not requested by external peripheral devices.
• All software interrupts are non-maskable. Some hardware interrupts are maskable.
Interrupts (Hardware)
Interrupts
• 8085 provides 8 user defined software interrupts RST 0 to RST 7 where RST means
restart.
• These interrupts are vectored interrupts and when these interrupts are called the
control is transferred to the memory location.
• Software interrupts are not used to handle asynchronous events. They are used to
call software routines like single step, break point etc.
• These interrupts are requested by executing interrupt instructions. They can also be
requested due to arithmetic errors.
Interrupts
What are software interrupts?
• After execution of these interrupts, program counter is incremented. The
microprocessor does not execute any interrupt acknowledge cycle. The microprocessor
executes normal instruction cycle.
• They are not used to interface peripherals. That means they does not improve
throughput of the system. They are used in program debugging.
Chapter 2 - (Paper II)
Instruction Set and Programming of
8085
12th Computer Science
Maharashtra Board
Number System
Instruction Size
● MOV A, B - 1 Byte instruction size
MOV –> 1 Byte
B (8) C (8)
D (8) E (8)
H (8) L (8)
B (8) C (8)
D (8) E (8)
H (8) L (8)
H (8) L (8)
C001 H Instruction 2
Program Counter
C000 H Instruction 1
PROGRAMMING MODEL OF8085
Flags (8) Accumulator A (8)
• Stack pointer is also a 16 bit register.
B (8) C (8)
• It consist of top address of memory location called
stack. D (8) E (8)
H (8) L (8)
C001 H C002 H
Stack Pointer
C001 H
C000 H
Stack
PROGRAMMING MODEL OF8085
Flags (8) Accumulator A (8)
• 8085 has Five flags.
• They are Zero (Z), Carry ( Cy ), Sign ( S ), Parity (P) and B (8) C (8)
Auxiliary Carry (Ac ) flag. D (8) E (8)
• The microprocessor uses these flags to test data
conditions. H (8) L (8)
B7 B6 B5 B4 B3 B2 B1 B0
S Z - AC - P - CY
Addressing Modes of 8085 :
Register Indirect
Operand's address is in a register pair HL(M), BC, DE 1 byte
Addressing
2. MOV A, M,
3. ADD B
2. Direct Addressing Mode
• In this mode, the memory address of the operand is given in the
instruction itself.
• Either memory address of source or destination is given in the
instruction directly.
• Instructions using direct addressing are 3 byte instruction.
• Example1: Let [A] =35 H, [C000] =04 H
Instruction: LDA C000 H (Source Addresse)
After execution: [A]= 04 H and [C000] = 04 H
Example3. STAX D
4. Immediate Addressing Mode
• In this mode, the operand is specified (given) within the instruction itself.
• Either 8 bit data or 16 bit data given in the instruction.
• Instructions using immediate addressing are 2 byte or 3 byte Instruction.
• Eg. 1. Let A = 05 H ,
MVI A, 23 H
A = 23 H
•Eg1. CMA
Let A = 04 H
After CMA
A=FB H
Eg2. DAA
Eg3. RLC
Flags 8085 has five flags
• Sign flag
• Zero flag
• Auxiliary carry flag
• Parity flag
• Carry a flag
Flag register contain data C5H interpret its
meaning.
C5H = 1100 0101
D7 D6 D5 D4 D3 D2 D1 D0
1 1 0 0 0 1 0 1
S Z - AC - P - CY
(i) ADD B
(ii) ORA B
(iii) ANA B
3. Introduction of
X-86 Family
Computer Science- II
Maharashtra Board
Microprocessors in Intel's X-86 family.
Q. Advantages of the Pentium processor with respect
to the following features
1. Dual pipelining
2. On-chip caches
3. Branch prediction
4. 64-bit data bus
1. Dual pipelining
• The first group contains 8 general purpose register called as AH, AL,
BH, BL, CH, CL, DH, DL.
• The 16-bit general purpose registers are called as AX, BX, CX, DX. This
group also has SI (source index), DI (Destination Index) and BP (Base
pointer register) and SP (Stack Pointer) to point their particular
address.
PROGRAMING MODEL OF 16 bit X 86 family
Programming model has 3 resister group named as -
2. Segment register:
• This set consist of code segment (CS), stack segment (SS) and two
data segment registers (ES and DS).
8051 :
• 8051 has 4K bytes of onboard ROM and 128 bytes of onboard RAM
• 8051 has a dual 16-bit timer event counter.
• The cost of 8051 is more than that of 8048, 8049, 8050 and less than 8052
Explain in detail other microcontrollers in 8051 family.
8052 :
1. Cost of media
2. Installation requirement
3. Bandwidth
4. Band usage (base band and broad band)
5. Attenuation
6. Immunity from electromagnetic interference.
Cost of media:
2) There are two transmission modes, base band and broadband transmissions
3) Base band devotes the entire capacity of the medium to one communication channel.
4) Broad band enables two or more communication channels to share the bandwidth of
communication medium.
6) Most local area networks (LAN) function in base band mode. In base band, signaling can
be analog or digital.
Attenuation:
2) As signals pass through the medium, part of the signal is absorbed and makes the
signal weak.
3) Attenuation decides the cable length when signal strength falls below certain limits,
then at receiving station noise may appear.
2. EMI is interfering the signals and makes it difficult for computers to decode the signal.
4. Crosstalk occurs when the signal from one wire is picked by another wire.
5. In computer networks, large number of cables are located close together, therefore
crosstalk is a significant problem in networks.
Cable Media
1. Coaxial Cable
2. Twisted Pair Cable
3. Fiber-optic cable
Coaxial Cable
In co-axial cable, there are two conductors sharing a
common axis.
Thinnet :
● Ethernet systems using thinner coaxial cable RG58/U that is 0.2 inch in
diameter referred to as Thinnet or 10Base2.
● Here 2 represents the maximum distance of 200 meters recommended
between nodes/repeaters.
● Thinnet cabling can become damaged if it is sharply bent or twisted, so handle
it carefully.
• Advantages:
1. The co-axial cable is better shielded than the twisted pair cable. So, it can
span longer distance at higher data transmission speed.
2. Its shielding provides better resistance to EMI.
3. Attenuation is less than twisted pair cable
• Disadvantages:
1. It is relatively more expensive than Twisted Pair but less than fiber optic
cable.
2. Bandwidth capacity is comparatively less than fiber optic cable.
Characteristics of co-axial cable
Bandwidth: LANs based on co-axial cable gives bandwidth, in between 2.5 Mbps to 10
Mbps. Thicknet co-axial cable gives higher bandwidth.
EMI : As co-axial cable consists of central copper conductor, it is sensitive to EMI, but
shielding reduces its sensitivity to EMI. Co-axial cable is less sensitive to EMI than UTP
cable.
Twisted pair cable
• Twisted pair cable consist of two wires of conducting material like copper, insulated
from each other by plastic.
(i) Cost: The cost of STP cable is more than that of co-axial or UTP cable. Its cost is less than that of
thick co-axial or fiber optic cable.
(ii) Installation: The installations required for STP cable depends upon the type of network. As per
the type of network, different connectors are used.
(iii) Capacity: STP cable has a theoretical capacity of 500 MBPS. Practically it is around 155 MBPS
with 100 meter cable run. The most common data rate for STP cable is 16 MBPS.
(iv) Attenuation: All Twisted pair cables have attenuations. This limits the length of cable. 100
meter limit is most common.
(v) EMI characteristics: The shield in STP cable results in good EMI characteristics. STP cable has
low sensitivity towards electromagnetic interference.
Unshielded Twisted pair (UTP):
• The unshielded Twisted pair does not have a braided shield into its structure.
(i) Cost: UTP cable is cheaper than any other cable. The cost of category 5 twisted
pair cable is high.
(ii) Installation: UTP cable is easy to install. The equipment's required are also low cost.
UTP system can be easily reconfigured.
(iii) Capacity: For UTP cable data rate capacity up to 100 MBPS can be achieved.
(iv) Attenuation : UTP cable has similar attenuation characteristic as that of other copper
cables. UTP cable run is restricted to few hundred meters. 100 m is most common limit.
(v) EMI: UTP cable does not have shield. Hence it is more sensitive to EMI than co- axial or
STP cable. Using latest technology, noise can be avoided.
Differentiate between UTP and STP cable
UTP cable STP cable
UTP consists of a number of twisted pairs STP also consists of a number of pairs but a
with plastic jacket. jacket and pairs. shell usually aluminum or polyester between
Inexpensive and easy to install. Expensive than UTP and difficult to install.
Bandwidth capacity is from 1 to It is 10 to 155 Mpbs up to 100 mtrs.
100 Mbps up to 100 mtrs.
More attenuation and sensitive to EMI. Less attenuation and EMI is reduced to
shielding.
Used in telephone system. STP is used in LAN
Maximum number of nodes 1024. Maximum number of nodes are 270.
Fiber optic cable.
• The light wave can be efficiently conducted through
transparent glass fiber cables known as optic fiber
cables.
(i) Cost:
• The cost of fiber optic cable is more than that of co-axial cable and Twisted
pair cable.
(ii) Installation:
• Fiber optic cable requires skilled installation.
• Every cable has minimum bend radius.
• They may get damaged if bent sharply Fiber optic cable cannot be stretched.
(iii) Capacity:
• Fiber optic cable supports high data rates (up to 2,00,000 MBPS), even with
long run cables.
• Fiber optic cable can transmit 100 MBPS for several kilometer.
(iv) Attenuation :
• Attenuation for fiber optic cable is much lower than co-axial cable and
twisted pair cable.
• It can run to larger distance.
(v) EMI :
• Fiber optic cable does not use electrical signals to transmit data, therefore
they are free from EMI.
• The data transfer in fiber optic cable have high security, as it cannot be
detected by electronic wave dropping equipment's.
Compare any four attributes of UTP and Optical
Fiber Cable.
UTP Optical Fiber Cable
(1) Cost Cost of UTP cable is less than that Optical fiber cable are
of optical fiber cable. expensive.
(2) Installation Installation of UTP cable is easy. Optical fiber cable requires
skilled
(3) Capacity Data rate capacity is from 1 to 100 Optical fiber cable can
MBPS up to 100 mtrs. transmit
100 MBPS for several
kilometers.
(4) EMI More sensitive to EMI. This cable has no sensitivity to
EMI.
(5) Attenuation Attenuation is more than optical In optical fiber cable
fiber cable. attenuation is very less.
Compare the characteristics of fiber optic cable
and co-axial cable
Co-axial cable Optical Fiber Cable
(1) Cost Cost of co-axial cable is less than Optical fiber cable are
that of fiber optic cable. expensive.
(2) Installation Installation of co-axial cable is Optical fiber cable requires
cheap and easy. skilled
(3) Capacity Data rate capacity is from 1 to 10 Optical fiber cable can
MBPS transmit
100 MBPS for several
kilometers.
(4) EMI Co-axial cable is less sensitive to This cable has no sensitivity to
EMI. EMI.
(5) Attenuation Attenuation is more than optical In optical fiber cable
fiber cable. attenuation is very less.
Compare the co-axial cable with Twisted pair cable.
Twisted Pair Cable Coaxial Cable
(1) It consists of a pair of wires or one or more pairs of (1) It is a hallow cable with a solid copper at the center
two twisted copper wires insulation. of the cable surrounded by plastic from
(2) This is inexpensive medium. (2) Relatively expensive i.e. twice or thrice than twisted
pair.
(3) EMI effect is maximum. (3) EMI effect is minimum.
(4) Attenuation is more than coaxial cable. (4) Attenuation is less than twisted pair cable.
(5) Bandwidth capacity is from 1 to 100 Mbps upto 100 (5) Bandwidth capacity is from 500 Mbps upto 100
mtrs. mtrs.
(6) They can be used only for short distance (6) It is commonly used in network.
communication.
Q.19 Compare any four attributes of Coaxial thicknet Cable
with UTP cable.
Coaxial Thicknet cable UTP Cable
1.More expensive. 1. Less expensive.
A WAN (Wide Area Network) is the interconnection of A LAN (Local Area Network) is a group of computers
LAN or MAN can interconnected within a small area such as room,
be located entirely within a state, country or around building or a campus.
the world.
Data transfer rate is comparatively slower Data transfer speed is comparatively high
In WAN, links may be established by using telephone Co-axial cables are generally used to connect the
cable or microwave towers or satellite computer and other devices.
While WAN works on the principle of point to point.
LAN operates on the principle of broadcasting.
In this network, short circuit errors, noise errors, Due to short distance, short circuit errors or other
atmospheric errors are higher than any other noise errors are minimum.
networks.
For example: bank, which includes its branch offices For example: A computer lab in a college.
and ATMs
Network topology and categories
1. Bus topologies
2. Ring topologies
3. Star topologies
4. Mesh topologies
1. BUS topology :
• In a BUS physical topology, all the devices are connected to a common shared cable, called as
backbone of the network.
• The bus is available for each node to send its data to each and every computer node.
• Most of the buses transmits signals in both directions on backbone cable and hence all
workstations are able to receive signals.
• But some buses are unidirectional and data is transmitted only in one direction of backbone
cable.
• Hence only downstream devices can receive signals.
1. BUS topology :
• The backbone cable carries transmission message along the cable.
• As message arrives at a workstation, it checks whether the destination address matches to its
own or not.
• If not, it does no more and the message goes to next workstation.
• The bus cable is terminated at each end by placing terminators to prevent signals from reflecting
back.
• The commonly used implementation for BUS topology is ethernet at 10 MBPS.
Advantages of BUS topology :
• Breakdown of any failure node does not affect other node's communication.
• The token passes around the ring, and the only node
that holds the token can transmit data.
2. RING topology.
• This topology is always implemented as a
logical topology.
• e.g. In token ring network, the topology is physically
a STAR topology. But logical topology is
RING topology
Disadvantages:
• Difficult connections.
3. STAR topology.
• In a STAR topology all the workstations are connected to
central hub.
Disadvantages:
i. Asynchronous modems
ii. Synchronous modems
Q.38 What are the two types of modems. Explain
them.
Modems are classified into two categories depending upon transmission methods:
1) Asynchronous modems
2) Synchronous modems
1) Asynchronous modems :
• An asynchronous modem transmits data character by character, with each byte framed
by start and stop bits.
• It does not require a clock signal for synchronization.
• Uses start and stop bits to mark the beginning and end of a data unit.
• Data is sent in small packets instead of a continuous stream.
• Extra bits (start & stop) increase transmission overhead.
• Typically supports slower data transfer rates.
2) Synchronous modems :
(2) A repeater reshapes and amplifies the signal from one Ethernet segment to
another.
(3) A backbone cable runs vertical up in the building and a repeater is used to
attach an Ethernet segment running in each floor of the office to the backbone
cable.
(4) No two Ethernet workstations can have more than two repeaters between
them, if they have to communicate reliably.
(5) The main disadvantage of repeaters is that they repeat noise in the system.
• Routers can use network address to assist efficient delivery of message. Delivering
packets according to logical network address is called as routing. Routers
performs routing.
• Routers are intelligent. They can use algorithms to determine most efficient path
for sending a packet to any given network.
• Routers can also be used to divide large, busy LANs into smaller segments.
• Routers are also employed to connect LAN to wide area network (WAN).
1. Static routers
2. Dynamic routers
Static routers do not determine paths, but you need to specify them. Dynamic
routers have capacity to determine paths (routes).