数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ADE5166 数据表(PDF) 96 Page - Analog Devices

部件名 ADE5166
功能描述  Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
PDF  148 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  AD [Analog Devices]
网页  http://www.analog.com
标志 AD - Analog Devices

ADE5166 数据表(HTML) 96 Page - Analog Devices

Back Button ADE5166 Datasheet HTML 92Page - Analog Devices ADE5166 Datasheet HTML 93Page - Analog Devices ADE5166 Datasheet HTML 94Page - Analog Devices ADE5166 Datasheet HTML 95Page - Analog Devices ADE5166 Datasheet HTML 96Page - Analog Devices ADE5166 Datasheet HTML 97Page - Analog Devices ADE5166 Datasheet HTML 98Page - Analog Devices ADE5166 Datasheet HTML 99Page - Analog Devices ADE5166 Datasheet HTML 100Page - Analog Devices Next Button
Zoom Inzoom in Zoom Outzoom out
 96 / 148 page
background image
ADE5166/ADE5169
Rev. 0 | Page 96 of 148
BLINK MODE
Blink mode is enabled by setting the BLINKEN bit (Bit 5) in the
LCD configuration SFR (LCDCON, Address 0x95). This mode
is used to alternate between the LCD on state and LCD off state
so that the LCD screen appears to blink. There are two blinking
modes: a software controlled blink mode and an automatic
blink mode.
Software Controlled Blink Mode
The LCD blink rate can be controlled by user code with the
BLKMOD bits (Bits[7:6]) in the LCD clock SFR (LCDCLK,
Address 0x96) by toggling the bits to turn the display on and off
at a rate determined by the MCU code.
Automatic Blink Mode
There are five blink rates. These blink rates are selected by the
BLKMOD bits (Bits[7:6]) and the BLKFREQ bits (Bits[5:4]) bits
in the LCD clock SFR (LCDCLK, Address 0x96); see Table 94.
SCROLLING MODE
The ADE5166/ADE5169 provide the possibility to have four
screens in memory. The LCD driver can use any of these screens
by setting the SCREEN_SEL bits in the LCD Configuration Y SFR
(LCDCONY, Address 0xB1) and clearing the refresh bit (Bit 0)
in the same register. The software scrolling of the screens can
then be achieved by a one-command instruction.
Automatic Scrolling Mode
The ADE5166/ADE5169 also provide an automatic scrolling
between the screens using the five available blink rates. This
mode is enabled by setting bit AUTOSCREENSCROLL (Bit 7)
in the LCD Configuration Y SFR (LCDCONY, Address 0xB1)
and also the BLINKEN bit (Bit 5) in the LCD configuration SFR
(LCDCON, Address 0x95). To allow the scrolling frequency to
be selected, the BLKMOD bits (Bits[7:6]) in the LCD clock SFR
(LCDCLK, Address 0x96) should both be set to 1. The scrolling
rates are then selected by the BLKFREQ bits (Bits[5:4]) in the
LCD clock SFR (LCDCLK, Address 0x96); see Table 94. Auto-
matic scrolling mode is available in all operating modes.
DISPLAY ELEMENT CONTROL
Four banks of 15 bytes of data memory located in the LCD module
control the on or off state of each segment of the LCD. The LCD
data memory is stored in Address 0 through Address 14 in the
LCD module, with two extra bits defining which one of the four
screens is being addressed.
Each byte configures the on and off states of two segment lines.
The LSBs store the state of the even numbered segment lines,
and the MSBs store the state of the odd numbered segment lines.
For example, LCD Data Address 0 refers to segment Line 1 and
Line 0 (see Table 101). Note that the LCD data memory is
maintained in the PSM2 operating mode.
The LCD data memory is accessed indirectly through the LCD
pointer SFR (LCDPTR, Address 0xAC) and LCD data SFR
(LCDDAT, Address 0xAE). Moving a value to the LCDPTR SFR
selects the LCD screen and data byte to be accessed and initiates
a read or write operation (see Table 98).
Writing to LCD Data Registers
To update the LCD data memory, first set the LSB of the LCD
Configuration Y SFR (LCDCONY, Address 0xB1) to freeze the
data being displayed on the LCD while updating it. This operation
ensures that the data displayed on the screen does not change
while the data is being changed. Then, move the data to the
LCD data SFR (LCDDAT, Address 0xAE) prior to accessing the
LCD pointer SFR (LCDPTR, Address 0xAC). The address of the
LCD screen should be consistent with the data changed. When the
MSB of the LCD pointer SFR (LCDPTR, Address 0xAC) is set, the
content of the LCD data SFR (LCDDAT, Address 0xAE) is trans-
ferred to the internal LCD data memory designated by the address
in the LCD pointer SFR (LCDPTR, Address 0xAC) and the
screen designator. Clear the LSB of the LCD Configuration Y SFR
(LCDCONY, Address 0xB1) when all of the data memory has been
updated to allow the use of the new LCD setup for display.
Sample 8052 code to update the segments attached to Pin FP10
and Pin FP11 on Screen 1 is as follows:
ORL
LCDCONY,#01h
;start updating the data
MOV
LCDDAT,#FFh
MOV
LCDPTR,#80h OR 05h
ANL
LCDCONY,#0FEh ;update finished
Reading LCD Data Registers
When the MSB of the LCD pointer SFR (LCDPTR, Address 0xAC)
is cleared, the content of the LCD data memory of the correspond-
ing screen designated by LCDPTR is transferred to the LCD data
SFR (LCDDAT, Address 0xAE).
Sample 8052 code to read the contents of LCD Data Memory
Address 0x07 on Screen 1, which holds the on and off state of
the segments attached to FP14 and FP15, is as follows.
MOV
LCDPTR,#07h
MOV
R1, LCDDAT



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com