Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PM0222 Datasheet(PDF) 27 Page - STMicroelectronics

Part # PM0222
Description  Brain smart hub family
PDF  33 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0222 Datasheet(HTML) 27 Page - STMicroelectronics

Back Button PM0222 Datasheet HTML 23Page - STMicroelectronics PM0222 Datasheet HTML 24Page - STMicroelectronics PM0222 Datasheet HTML 25Page - STMicroelectronics PM0222 Datasheet HTML 26Page - STMicroelectronics PM0222 Datasheet HTML 27Page - STMicroelectronics PM0222 Datasheet HTML 28Page - STMicroelectronics PM0222 Datasheet HTML 29Page - STMicroelectronics PM0222 Datasheet HTML 30Page - STMicroelectronics PM0222 Datasheet HTML 31Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 33 page
background image
DocID025476 Rev 1
27/33
PM0222
I2C
33
This sequence will trigger a master write operation of one data present in the transmit FIFO
to a slave I²C device addressed by 0x1D. The I2C_SR register contains information
concerning the status of the transaction:
Operation type (master-read, master-write, write-to-slave and read-from-slave).
Status (successful, abort)
Cause of the abort
Length of the transaction
This information will help to determine the next operation. For example, in case of an abort
status, the program may retry starting the transaction.
10.3.2
I²C slave
This section will show an example of configuring the I2C2 IP in slave mode with a 7-bit
address 0x1E.
// enable the peripheral; select the master mode, 7-bit addressing mode and the fast
// mode for the baud rate generation
I2C2->I2C_CR = 0x01 + (0x0<<1) + (0x0<<3) + (0x1<<4)
I2C2->I2C_SCR = 0x1E; // define the slave address
After this configuration the I2C2 is ready to work as a slave. Check the I2C_SR register to
get the status of the transaction (see Section 10.3.1: I2C master).
10.4
I2C double bonding
10.4.1
I2C2
The first bit of the I2C_CONF register (see Brain reference manual, GPIO chapter) is used
to reroute the I2C2 pins. After reset, this bit is configured as one, which means the I2C2 pins
are rerouted through MCL and MDA, specific open-drain I/Os. If this bit is set to zero, the
I2C2 pins are rerouted to digital standard push-pull I/Os. In both configurations, IO7 and IO8
have to be in serial mode 0 (see Section 5.1.1: I/O mode) to access the I2C2 pins,
according to the configuration of the I2C_CONF register.



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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