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

X  

ADE7166 数据表(PDF) 134 Page - Analog Devices

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

ADE7166 数据表(HTML) 134 Page - Analog Devices

Back Button ADE7166 Datasheet HTML 130Page - Analog Devices ADE7166 Datasheet HTML 131Page - Analog Devices ADE7166 Datasheet HTML 132Page - Analog Devices ADE7166 Datasheet HTML 133Page - Analog Devices ADE7166 Datasheet HTML 134Page - Analog Devices ADE7166 Datasheet HTML 135Page - Analog Devices ADE7166 Datasheet HTML 136Page - Analog Devices ADE7166 Datasheet HTML 137Page - Analog Devices ADE7166 Datasheet HTML 138Page - Analog Devices Next Button
Zoom Inzoom in Zoom Outzoom out
 134 / 144 page
background image
ADE7566/ADE7569/ADE7166/ADE7169
Rev. A | Page 134 of 144
I2C COMPATIBLE INTERFACE
The bit rate is defined in the I2CMOD SFR as follows:
The ADE7566/ADE7569/ADE7166/ADE7169 support a fully
licensed I2C interface. The I2C interface is implemented as a full
hardware master.
]
0
:
1
[
2
2
16
CR
I
CORE
SCLK
f
f
×
=
SDATA is the data I/O pin, and SCLK is the serial clock. These
two pins are shared with the MOSI and SCLK pins of the on-chip
SPI interface. Therefore, the user can enable only one interface
or the other on these pins at any given time. The SCPS bit in the
Configuration SFR (CFG, 0xAF) selects which peripheral is active.
SLAVE ADDRESSES
The I2C Slave Address SFR (I2CADR, 0xE9) contains the slave
device ID. The LSB of this register contains a read/write request.
A write to this SFR starts the I2C communication.
I2C REGISTERS
The two pins used for data transfer, SDATA and SCLK, are
configured in a wire-AND format that allows arbitration in a
multimaster system.
The I2C peripheral interface consists of five SFRs:
I2CMOD
SPI2CSTAT
The transfer sequence of an I2C system consists of a master device
initiating a transfer by generating a start condition while the bus
is idle. The master transmits the address of the slave device and
the direction of the data transfer in the initial address transfer. If
the slave acknowledges, the data transfer is initiated. This continues
until the master issues a stop condition and the bus becomes idle.
I2CADR
SPI2CTx
SPI2CRx
Because the SPI and I2C serial interfaces share the same pins,
they also share the same SFRs, such as the SPI2CTx and SPIXCRx
SFRs. In addition, the I2CMOD, I2CADR, SPI2CSTAT, and
SPI2CTx SFRs are shared with the SPIMOD1, SPIMOD2, and
SPISTAT SFRs, respectively.
SERIAL CLOCK GENERATION
The I2C master in the system generates the serial clock for a
transfer. The master channel can be configured to operate in
fast mode (256 kHz) or standard mode (32 kHz).
Table 144. I2C SFR List
SFR Address
Name
R/W
Length
Default
Description
0x9A
SPI2CTx
W
8
SPI/I2C Transmit Buffer (see Table 138).
0x9B
SPI2CRx
R
8
0
SPI/I2C Receive Buffer (see Table 139).
0xE8
I2CMOD
R/W
8
0
I2C Mode (see Table 145).
0xE9
I2CADR
R/W
8
0
I2C Slave Address (see Table 146).
0xEA
SPI2CSTAT
R/W
8
0
I2C Interrupt Status Register (see Table 147).
Table 145. I2C Mode SFR (I2CMOD, 0xE8)
Bit
Address
Mnemonic
Default
Description
7
0xEF
I2CEN
0
I2C Enable Bit. When this bit is set to Logic 1, the I2C interface is enabled. A write to the
I2CADR SFR starts a communication.
6 to 5
0xEE to 0xED
I2CR[1:0]
0
I2C SCLK Frequency.
I2CR[1:0]
Result
00
fCORE/16 = 256 kHz if fCORE = 4.096 MHz
01
fCORE/32 = 128 kHz if fCORE = 4.096 MHz
10
fCORE/64 = 64 Hz if fCORE = 4.096 MHz
11
fCORE/128= 32 kHz if fCORE = 4.096 MHz
4 to 0
0xEC to 0xE8
I2CRCT[4:0]
0
Configures the length of the I2C received FIFO buffer. The I2C peripheral stops when
I2CRCT, Bit[4:0] + 1 byte have been read or if an error occurs.
Table 146. I2C Slave Address SFR (I2CADR, 0xE9)
Bit
Mnemonic
Default
Description
7 to 1
I2CSLVADR
0
Address of the I2C Slave Being Addressed. Writing to this register starts the I2C transmission (read or write).
0
I2CR_W
0
Command Bit for Read or Write. When this bit is set to Logic 1, a read command is transmitted on the
I2C bus. Data from the slave in the SPI2CRx SFR is expected after a command byte. When this bit is set
to Logic 0, a write command is transmitted on the I2C bus. Data to slave is expected in the SPI2CTx SFR.



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