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

X  

ADE5166 数据表(PDF) 105 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) 105 Page - Analog Devices

Back Button ADE5166 Datasheet HTML 101Page - Analog Devices ADE5166 Datasheet HTML 102Page - Analog Devices ADE5166 Datasheet HTML 103Page - Analog Devices ADE5166 Datasheet HTML 104Page - Analog Devices ADE5166 Datasheet HTML 105Page - Analog Devices ADE5166 Datasheet HTML 106Page - Analog Devices ADE5166 Datasheet HTML 107Page - Analog Devices ADE5166 Datasheet HTML 108Page - Analog Devices ADE5166 Datasheet HTML 109Page - Analog Devices Next Button
Zoom Inzoom in Zoom Outzoom out
 105 / 148 page
background image
Preliminary Technical Data
ADE5166/ADE5169/ADE5566/ADE5569
Rev. PrB | Page 105 of 148
Enabling Flash Protection by Emulator Commands
Another way to set the Flash protection bytes is to use the reserved
emulator commands available only in download mode. These
commands write directly to the SFRs and can be used to duplicate
the operation mentioned in the Enabling Flash Protection by
Code section. Once these Flash bytes are written, the part can
exit emulation mode by reset and the protections will be effective.
This method can be used in production and implemented after
downloading the program. The commands used for this opera-
tion are an extension of the commands listed in Application
Note uC004, Understanding the Serial Download Protocol,
available at www.analog.com.
Command with ASCII code I or 0x49 write the data into R0.
Command with ASCII code F or 0x46 write R0 into the
SFR address defined in the data of this command.
Omitting the protocol defined in uC004, the sequence to load
protections is similar to the sequence mentioned in the Enabling
Flash Protection by Code section, except that two emulator
commands are necessary to replace one assembly command.
For example, to write the protection value in EADRH, the two
following commands need to be executed:
Command I with Data = value of Protection Byte 0x3FFF
Command F with Data = 0xC7
Following this protocol, the protection can be written to the
Flash using the same sequence as mentioned in the Enabling
Flash Protection by Code paragraph. When the part is reset the
protection will be effective.
Notes on Flash Protection
The flash protection scheme is disabled by default so that none
of the pages of the flash are protected from reading or writing/
erasing.
The last page must be write-/erase-protected for the protection
scheme to work.
To activate the protection settings, the ADE5166/ADE5169/
ADE5566/ADE5569 must be reset after configuring the
protection.
After configuring protection on the last page and resetting the
part, protections that have been enabled can only be removed
by mass erasing the flash memory. The protection bits are never
truly write protected. Protection bits can be programmed
modified from a 1 to a 0, even after the last page has been
protected. In this way, more protection can be added but none
can be removed.
When the last page is read protected, the protection bits can still
be read by the user code. All other bits on this page are not
available for reading.
The protection scheme is intended to protect the end system.
Protection should be disabled while developing and emulating
code.
Flash Memory Timing
Typical program and erase times for the flash memory are
shown in Table 101.
Table 101. Flash Memory Program and Erase Times
Command
Bytes Affected
Flash Memory Timing
Write Byte
1 byte
30 us
Erase Page
512 bytes
20 ms
Erase All
62 kB
2.5 sec
Read Byte
1 bytes
100 ns
Note that the core microcontroller operation is idled until the
requested flash memory operation is complete. In practice, this
means that even though the Flash operation is typically initiated
with a two-machine-cycle MOV instruction (to write to the
flash control SFR (ECON, 0xB9), the next instruction is not
executed until the Flash/EE operation is complete. This means
that the core cannot respond to interrupt requests until the
Flash/EE operation is complete, although the core peripheral
functions such as counter/timers continue to count as
configured throughout this period.
IN CIRCUIT PROGRAMMING
Serial Downloading
The ADE5166/ADE5169/ADE5566/ADE5569 facilitate code
download via the standard UART serial port. The parts enter
serial download mode after a reset or a power cycle if the SDEN
pin is pulled low through an external 1 kΩ resistor. Once in
serial download mode, the hidden embedded download kernel
executes. This allows the user to download code to the full 62 kB
of flash memory while the device is in circuit in its target
application hardware.
Protection configured in the last page of the ADE5166/ADE5169/
ADE5566/ADE5569 affects whether flash memory can be
accessed in serial download mode. Read protected pages cannot
be read. Write/erase protected pages cannot be written or
erased. The configuration bits cannot be programmed in serial
download mode.



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