Datasheet

ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/ADE7569
Rev. B | Page 107 of 152
The LCD is set up with the following 8052 code:
; set up LCD pins to have LCD functionality
MOV LCDSEG,#FP20EN+FP21EN+FP22EN+FP23EN
MOV LCDSEGX,#FP16EN+FP17EN+FP18EN+FP19EN
; set up LCDCON for f
LCDCLK
=2048Hz, 1/3 bias and 4x multiplexing
MOV LCDCON,#BIAS+LMUX1+LMUX0
; setup LCDCONX for charge pump and BIASLVL[110111]
MOV LCDCONX,#BIASLVL5+BIASLVL4+BIASLVL3+BIASLVL2+BIASLVL1+BIASLVL0
; set up refresh rate for 64Hz with f
LCDCLK
=2048Hz
MOV LCDCLK,#FD3+FD2+FD1+FD0
; set up LCD data registers with data to be displayed using
; LCDPTR and LCDDATA registers
; turn all segments on FP27 ON and FP26 OFF
ORL LCDCONY,#01h ; start data memory refresh
MOV LCDDAT,#F0H
MOV LCDPTR, #80h OR 0DH
ANL LCDCONY,#0FEh ; end of data memory refresh
ORL LCDCON,#LCDEN ; enable LCD
To set up the same 3.3 V LCD for use with an external resistor ladder:
; set up LCDCONX for external resistor ladder
MOV LCDCONX,#EXTRES