icm7218 interfacing
TRANSCRIPT
![Page 1: ICM7218 Interfacing](https://reader036.vdocument.in/reader036/viewer/2022082322/5452e53faf79591d308b52d0/html5/thumbnails/1.jpg)
![Page 2: ICM7218 Interfacing](https://reader036.vdocument.in/reader036/viewer/2022082322/5452e53faf79591d308b52d0/html5/thumbnails/2.jpg)
ICM 7218 Display Controller
First set mode = 1 and write the controller configuration data.
Then set mode = 0 and write eight bytes of display data. On-chip sequential RAM accepts only the aforesaid
writing sequence. It updates the contents of the sequential RAM locations only after eight bytes are successfully transferred to the display controller.
The data bus of the display controller is driven by port A of the second 82C55A.
Mode and _WR are driven by PC0 and PC1 of the second 82C55A.
![Page 3: ICM7218 Interfacing](https://reader036.vdocument.in/reader036/viewer/2022082322/5452e53faf79591d308b52d0/html5/thumbnails/3.jpg)
Writing on ICM 7218 Sequential RAM
Configure the second 82C55A with port A and C_lower as output ports; port B and C_upper as input ports.
Select Code B decoder. Obtain measurement data (in packed BCD format) from
SRAM locations 8000H to 8003H. Generate display data (in unpacked BCD format with
leading zeros) from the measurement data and store them in SRAM locations 9000H to 9007H.
OR 80H with each unpacked data to turn off the decimal point.
Copy the display data from SRAM locations to 7218 sequential RAM.
![Page 4: ICM7218 Interfacing](https://reader036.vdocument.in/reader036/viewer/2022082322/5452e53faf79591d308b52d0/html5/thumbnails/4.jpg)
ORG 0000h;Configure the second 82C55A
MVI A, 8AhOUT FBh
; Set mode = 1 MVI A, 01h
OUT FBh; Set _WR = 1
MVI A, 03h OUT FBh; Write 7218 configuration data
MVI A, 90hOUT F8h
; Generate _WR pulse MVI A, 02hOUT FBh
MVI A, 03hOUT FBh
; Generate display data LXI H, 8000hLXI B, 9000h
L1:MOV A,MANI 0FhORA 80h STAX BINX BMOV A,MANI F0hRLCRLCRLCRLCORA 80HSTAX B
Assembly Language Code (pg 1)
![Page 5: ICM7218 Interfacing](https://reader036.vdocument.in/reader036/viewer/2022082322/5452e53faf79591d308b52d0/html5/thumbnails/5.jpg)
INX B
INX H
MOV A, L
CPI 04h
JNZ L1
; Set mode = 0
MVI A, 00h
OUT FBh
; Write display data to 7218 RAM
LXI H, 9000h
L2:MOV A,M
OUT F8h
MVI A, 02h
OUT FBh
MVI A, 03h
OUT FBh
INX H
MOV A, L
CPI 08h
JNZ L2
; Set mode = 1
MVI A, 01h
OUT FBh
HLT
Assembly Language Code (pg 2)