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

X  

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

部件名 ADE7166
功能描述  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

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

Back Button ADE7166 Datasheet HTML 129Page - Analog Devices 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 133 / 148 page
background image
Preliminary Technical Data
ADE75xx/ADE71xx
Rev. PrE | Page 133 of 148
important, therefore, that CPHA and CPOL are configured the
same for the master and slave devices.
SS (Slave Select Pin)
In SPI slave mode, a transfer is initiated by the assertion of SS
low. The SPI port will then transmit and receive 8-bit data until
the data is concluded by deassertion of SS. In slave mode, SS is
always an input.
In SPI master mode, the SS can be used to control data transfer
to a slave device. In the automatic slave select control mode, the
SS is asserted low to select the slave device and then raised to
deselect the slave device after the transfer is complete.
Automatic slave select control is enabled by setting the
AUTO_SS bit in the SPI Configuration Register SFR (SPIMOD1,
0xE8)
.
In a multi-master system, the SS can be configured as an input
so that the SPI peripheral can operate as a slave in some
situations and as a master in other situations. In this case, the
slave selects for the slaves controlled by this SPI peripheral
should be generated with general I/O pins.
SPI MASTER OPERATING MODES
The double buffered receive and transmit registers can be used
to maximize the throughput of the SPI peripheral by
continuously streaming out data in master mode. The
continuous transmit mode is designed to use the full capacity
of the SPI. In this mode, the master will transmit and receive
data until the SPI/I2C Transmit Buffer SFR (SPI2CTx, 0x9A)
register is empty at the start of a byte transfer. Continuous mode
is enabled by setting the SPICONT bit in the SPI Configuration
Register SFR (SPIMOD2, 0xE9)
.The SPI peripheral also offers a
single byte read and a single byte write function.
In master mode, the type of transfer is handled automatically
depending on the configuration of bits 0 and 7 of the SPI
Configuration Register SFR (SPIMOD2, 0xE9)
. Table 133 shows
the sequence of events that should be performed for each
master operating mode. Based on the SS configuration, some of
these events will take place automatically.
Table 133. Procedures for using SPI as a Master
Mode
SPIMOD[7]
= SPICONT
bit
Description of operation
Step 1: Write to SPI2CTx SFR
Step 2: SS is asserted low and write routine is initiated
Step 3: SPITxIRQ Interrupt Flag is set when SPI2CTx register is empty
Step 4: SS is deasserted high
Single Byte
Write
0
Step 5: Write to SPI2CTx SFR to clear SPI2CTxIRQ Interrupt flag
Step 1: Write to SPI2CTx SFR
Step 2: SS is asserted low and write routine is initiated
Step 3: Wait for SPI2CTxIRQ Interrupt flag to write to SPI2CTx SFR. Transfer will
continue until the SPI2CTX register and transmit shift registers are empty.
Step 4: SPITxIRQ Interrupt Flag is set when SPI2CTx register is empty
Step 5: SS is deasserted high
Continuous
1
Step 6: Write to SPI2CTx SFR to clear SPITxIRQ Interrupt flag
Figure 82
shows the SPI output for certain automatic chip select
and continuous mode selections. Note that if the continuous
mode is not used, a short delay is inserted between transfers.



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