Project Interfacing 2
Project Interfacing 2
Statement: Write a assembly program to transmit a message from an 8085 to a CRT terminal for the following requirements and draw the
interfacing diagram.
i) A message of 50 characters is stored as ASCII characters (without parity) in memory locations starting at 2200H.
Solution Description:
CRT terminal uses normal RS 232C standard serial communication interface. Therefore, to transmit data to CRT it is necessary to have RS 232C interface
As shown in the Fig. three RS-232C signals (TxD, RxD are Ground) are used for serial communication between the CRT terminal and the 8085 system.
Line drivers and receivers are used to transfer logic levels from TTL logic to RS-232C logic.
For RS-232C the voltage level +3V to +15V is defined as logic 0 and voltage level from -3V to -15V is defined as logic 1.
The line driver, MC 1488, converts logic 1 of TIL to approximately -9V and logic a of TIL to approximately +9V. These levels at the receiving end are again
INTERFACING DIAGRAM
Receive message using 8251
Statement: Write a assembly program to receive 25 bytes from an CRT terminal to 8085 for the following requirements.
i) Baud rate x 16
Status Word:
Note: Reading of status word is necessary for checking the status of RxD line of 8085 that whether receiver is ready to give data or not.
Keyboard interface(64-key-matrix-keyboard)
Statement: Interface a 64-key matrix keyboard to the 8085 microprocessor using 8255. Write an 8085 assembly language program to initialize 8255
of interfacing lines. In this example, the keyboard with 64 keys, is arranged in 8 x 8 (8 rows and 8 columns) matrix. This requires sixteen lines from the microprocessor
to make all the connections instead of 64 lines if the keys are connected individually. The interfacing of matrix keyboard requires two ports: one input port and other
output port. Rows are connected to the input port, port A and columns are connected to the output port, port B.
INTERFACING SCHEME
SOFTWARE FOR MATRIX KEYBOARD INTERFACE
As port A is used as an output port, control word for 8255 is 80H.
Delay Subroutine:
Delay: LXI D,
Count
Back: DCX D
MOV A, D
ORA E
JNZ Back
RET
Statement: Interface 8/7-segment digits (common cathode) to 8085 through 8279 and write an 8085 assembly language program to display 1 to 8 on
transistor and used to drive display digits. These buffered lines are connected in parallel to all display digits. So, Sl and S2 lines are decoded and decoded lines are used
are: