поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

RM0319 датащи(PDF) 232 Page - STMicroelectronics

номер детали RM0319
подробное описание детали  SPEAr320S architecture and functionality
PDF  368 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

RM0319 датащи(HTML) 232 Page - STMicroelectronics

Back Button RM0319 Datasheet HTML 228Page - STMicroelectronics RM0319 Datasheet HTML 229Page - STMicroelectronics RM0319 Datasheet HTML 230Page - STMicroelectronics RM0319 Datasheet HTML 231Page - STMicroelectronics RM0319 Datasheet HTML 232Page - STMicroelectronics RM0319 Datasheet HTML 233Page - STMicroelectronics RM0319 Datasheet HTML 234Page - STMicroelectronics RM0319 Datasheet HTML 235Page - STMicroelectronics RM0319 Datasheet HTML 236Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 232 / 368 page
background image
I2C bus ports (I2C)
RM0319
232/368
Doc ID 022640 Rev 3
If the remote master is to receive n bytes from the I2C controller, but a number of bytes
larger than n is written to the Transmit FIFO then, when the slave finishes sending the
requested n bytes, it will clear the Transmit FIFO and ignore any excess bytes.
17.4.2
Master mode
Initial configuration
To use the I2C controller as a master, you must perform the following steps:
1.
Disable the I2C controller by writing a 1‘b0 to the IC_ENABLE register.
2.
Write to the IC_CON register to set the maximum speed mode supported and the
desired speed of the I2C controller master-initiated transfers, 7- or 1-0 bit addressing.
3.
Write to the IC_TAR register the address of the I2C device to be addressed by the I2C
controller as a master (10-bit field IC_TAR). It also indicates whether adding a START
BYTE or issuing a general call is going to occur (through the GC_OR_START bit on the
same register), The desired speed of the I2C controller master-initiated transfer is
controlled by the IC_10BITADDR_MASTER bit in the IC_TAR register,
4.
For high-speed mode transfer only: the desired master code for I2C controller must be
written to the IC_HS_MADDR register (3-bit IC_HS_MAR field),
5.
Enable again the I2C controller setting the IC_ENABLE register,
6.
Command and data to be sent may be written now to the IC_DATA_CMD register. If this
register is written before I2C controller is enabled, the data and commands are lost as
the buffers are kept cleared when I2C controller is not enabled.
Dynamic IC_TAR or IC_10BITADDR_MASTER update
The I2C controller supports a dynamic IC_TAR or IC_10BITADDR_MASTER update.
Even if the slave part of the DW_apb_i2c is involved in an I2C transfer, both of the following
must occur:
MST_ACTIVITY must be IDLE, that is, IC_STATUS[5] = ‘b0,
Transmit FIFO completely empty must occurs, that is, IC_STATUS[2] = ‘b0.
Note:
If a bulk read is performed on the slave part of the DW_apb_i2c over the I2C bus, then only
MST_ACTIVITY must be IDLE, that is, the Transmit FIFO does not need to be completely
empty. This is a very specific case and should be monitored in software.
To write to the IC_TAR register, dynamically write the IC_TAR and
IC_10BITADDR_MASTER using the following requirements:
IC_TAR[12] = IC_10BITADDR_MASTER. Master uses 7 or 10 bit addressing and is
writable when the conditions in step 1 are met and if I2C_DYNAMIC_TAR_UPDATE is
set to ‘b1,
IC_TAR[11:10] = Only writable when DW_apb_i2c interface is disabled, which
corresponds to the IC_ENABLE register being set to ‘b0. otherwise writes have no
effects,
IC_TAR[9:0] = IC_TAR. Master’s 10 bit target address is writable at any time when the
conditions in step 1 are met and if I2C_DYNAMIC_TAR_UPDATE is set to ‘b1.



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


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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