Interfacing OF 8085 TO Memory: Example: D 64K 8085MP
Interfacing OF 8085 TO Memory: Example: D 64K 8085MP
AD0_AD7
MUX
A0_A7 A8_A15
D0_D7
RD WR 10/M
RD WR
D6
OCTAL
D3 D2 D1 D0 CONTROL OF TRI-STATE BUFFER
LATCH
PROGRAM:MVI A,Data
Out FFh ,output the acc content of port FFh
D/P SWICH
Out put
MATRIX
push button
+5V
to reduce the number of connection keys arranged in a matrix form Here 16 keys using only 4 rows and 4 columns .otherwise, the row and the column do not have any connection this keyboard required 8 lines only to make all connection instate of 16 lines. The row and columns are connected only when akey is prssedport A is output port the data bus is connected to A are(D0_D3) for these matrix key to read them a software techniques called MATRIX scan is used to read data from keyboard as:
+5V
D3 D2 D1 D0
K.B
INPUT PORT
1. Check whether all keys are open in this step the program check all row by sending (0000) to O/P port it read the input port. 2. IF all keys are open the input reading on data lines(D0_D3) should be (1111); if one key is closed the reading less than (1111) 3. Identify the key some what complex procedure one akey closure is found the key should be identi fied by grounding one row at atime and checking each column for zero. 4. Finding the binary key code of the key, this key code identified through the counter procedure(0_F).