| Electronic Components Datasheet Search |
|
UPSD3354D Datasheet(PDF) 134 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UPSD3354D Datasheet(HTML) 134 Page - STMicroelectronics |
|
134 / 272 page ![]() Obsolete Product(s) - Obsolete Product(s) Obsolete Product(s) - Obsolete Product(s) I2C interface UPSD33xx 134/272 Doc ID 9685 Rev 7 Table 84. S1SETUP examples for various I2C bus speeds and oscillator frequencies 23.13 I2C operating sequences The following pseudo-code explains hardware control for these I2C functions on the UPSD33xx: ● 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 UPSD33xx I2C interface, and other interfaces are available from the web at www.st.com/mcu. Initialization after a UPSD33xx 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. I2C Bus speed, fSCL Parameter Oscillator frequency, fOSC 6 MHz 12 MHz 24 MHz 33 MHz 40 MHz Standard Recommended S1SETUP Value 93h A7h CFh EEh FFh Number of Samples 20 40 80 111 128 Time Between Samples 166.6ns 83.3ns 41.6ns 30ns 25ns Total Sampled Period 3332ns 3332ns 3332ns 3333ns 3200ns Fast Recommended S1SETUP Value 82h 85h 8Bh 90h 93h Number of Samples 3 6 12 17 20 Time Between Samples 166.6ns 83.3ns 41.6ns 30ns 25ns Total Sampled Period 500ns 500ns 500ns 510ns 500ns High Recommended S1SETUP Value (1) 1. Not compatible with high Speed I2C. 80 82 83 84 Number of Samples - 1 3 4 5 Time Between Samples - 83.3ns 41.6ns 30ns 25ns Total Sampled Period - 83.3 125ns 120ns 125ns |
|
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 |