| Electronic Components Datasheet Search |
|
UPSD3422 Datasheet(PDF) 135 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UPSD3422 Datasheet(HTML) 135 Page - STMicroelectronics |
|
135 / 300 page ![]() Obsolete Product(s) - Obsolete Product(s) Obsolete Product(s) - Obsolete Product(s) UPSD3422, UPSD3433, UPSD3434, UPSD3454 I2C interface 135/300 23.13 I2C operating sequences The following pseudo-code explains hardware control for these I2C functions on the UPSD34xx: ● Initialize the Interface ● Function as Master-Transmitter ● Function as Master-Receiver ● Function as Slave-Transmitter ● Function as Slave-Receiver ● Interrupt Service Routine Full C code drivers for the UPSD34xx I2C interface, and other interfaces are available from the web at www.st.com\psm. Initialization after a UPSD34xx reset Ensure pins P3.6 and P3.7 are GPIO inputs – SFR P3.7 = 1 and SFR P3.6 = 1 Configure pins P3.6 and P3.7 as I2C – SFR P3SFS.6 = 1 and P3SFS.7 = 1 Set I2C clock prescaler to determine fSCL – SFR S1CON.CR[2:0] = desired SCL freq. Set bus Start condition sampling – SFR S1SETUP[7:0] = number of samples Fast Recommended S1SETUP value 82h 85h 8Bh 90h 93h Number of samples 3 6 12 17 20 Time between samples 166.6 ns 83.3 ns 41.6 ns 30 ns 25 ns Total sampled period 500 ns 500 ns 500 ns 510 ns 500 ns High Recommended S1SETUP value (1) 80 82 83 84 Number of samples - 1 3 4 5 Time between samples - 83.3 ns 41.6 ns 30 ns 25 ns Total sampled period - 83.3 125 ns 120 ns 125 ns 1. Not compatible with High Speed I2C. Table 88. S1SETUP examples for various I2C bus speeds and oscillator frequencies (continued) I2C bus speed, fSCL Parameter Oscillator frequency, fOSC 6 MHz 12 MHz 24 MHz 33 MHz 40 MHz Obsolete Product(s) - Obsolete Product(s) |
|
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 |
| 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 |