| 数据搜索系统,热门电子元器件搜索 |
|
ADE5166 数据表(PDF) 96 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE5166 数据表(HTML) 96 Page - Analog Devices |
|
96 / 148 page ![]() ADE5166/ADE5169/ADE5566/ADE5569 Preliminary Technical Data Rev. PrB | Page 96 of 148 BLINK MODE Blink mode is enabled by setting the BLINKEN bit in the LCD configuration SFR (LCDCON, 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[1:0] bits in the LCD clock SFR (LCDCLK, 0x96) by toggling the bits to turn the display on and off at a rate deter- mined by the MCU code. Automatic Blink Mode There are five blink rates. These blink rates are selected by the BLKMOD[1:0] and BLKFREQ[1:0] bits in the LCD clock SFR (LCDCLK, 0x96); see Table 85. SCROLLING MODE The ADE5166/ADE5169/ADE5566/ADE5569 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, 0xB1) and clearing the refresh bit 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/ADE5566/ADE5569 also provide an automatic scrolling between the screens using the five blink rates available. This mode is enabled by setting bit AUTOSCREENSCROLL in the LCD Configuration Y SFR (LCDCONY, 0xB1) and also the BLINKEN bit in the LCD configuration SFR (LCDCON 0x95). To allow the scrolling frequency to be selected, the BLKMOD[1:0] bits in the LCD Clock register (LCDCLK, 0x96) should both be set to 1. The scrolling rates are then selected by the BLKFREQ[1:0] bits in the LCD Clock register (LCDCLK, 0x96); see Table 85. Automatic scrolling mode is available in all operating modes. DISPLAY ELEMENT CONTROL Four banks of 15 bytes of data memory located in the LCD module controls 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 screen 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 92). 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, 0xAC) and LCD data SFR (LCDDAT, 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 89). Writing to LCD Data Registers To update the LCD data memory, first set the LSB of the LCD Configuration Y SFR (LCDCONY, 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, 0xAE) prior to accessing the LCD pointer SFR (LCDPTR, 0xAC). The address of the LCD screen should be consistent with the data changed. When the MSB of the LCD pointer SFR (LCDPTR, 0xAC) is set, the content of the LCD data SFR (LCDDAT, 0xAE) is transferred to the internal LCD data memory designated by the address in the LCD pointer SFR (LCDPTR, 0xAC) and the screen designator. Clear the LSB of the LCD Configuration Y SFR (LCDCONY, 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, 0xAC) is cleared, the content of the LCD data memory of the corresponding screen designated by LCDPTR is transferred to the LCD data SFR (LCDDAT, 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 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |