| Electronic Components Datasheet Search |
|
UPSD3354D Datasheet(PDF) 135 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UPSD3354D Datasheet(HTML) 135 Page - STMicroelectronics |
|
135 / 272 page ![]() Obsolete Product(s) - Obsolete Product(s) Obsolete Product(s) - Obsolete Product(s) UPSD33xx I2C interface Doc ID 9685 Rev 7 135/272 Set bus START condition sampling ● SFR S1SETUP[7:0] = number of samples Enable individual I2C interrupt and set priority ● SFR IEA.I2C = 1 ● SFR IPA.I2C = 1 if high priority is desired Set the Device address for Slave mode ● SFR S1ADR = XXh, desired address Enable SIOE (as Slave) to return an ACK signal ● SFR S1CON.AA = 1 Master-transmitter Disable all interrupts ● SFR IE.EA = 0 Set pointer to global data xmit buffer, set count ● *xmit_buf = *pointer to data ● buf_length = number of bytes to xmit Set global variables to indicate Master-Xmitter ● I2C_master = 1, I2C_xmitter = 1 Disable Master from returning an ACK ● SFR S1CON.AA = 0 Enable I2C SIOE ● SFR S1CON.INI1 = 1 Transmit Address and R/W bit = 0 to Slave ● Is bus not busy? (SFR S1STA.BBUSY = 0?) <If busy, then test until not busy> ● SFR S1DAT[7:0] = Load Slave Address & FEh ● SFR S1CON.STA = 1, send START on bus <bus transmission begins> Enable All Interrupts and go do something else ● SFR IE.EA = 1 Master-receiver Disable all interrupts ● SFR IE.EA = 0 Set pointer to global data recv buffer, set count ● *recv_buf = *pointer to data ● buf_length = number of bytes to recv Set global variables to indicate Master-Xmitter ● I2C_master = 1, I2C_xmitter = 0 |
|
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 |