|
![]() Oscillators/PCA/Timers/SMBus/UART/SPI
![]() SMBUS on F560 interface with I2C based led driver
|
| next newest topic | next oldest topic |
| Author | Topic: SMBUS on F560 interface with I2C based led driver |
|
krishnahari.pg Member |
hi In my project iam using AS1115 I2C based led driver. i used smbus at 60khz clock time base is TIMER0, free timeout and scl low condition implemented. devices working fine up to sometime,after that SDA line goes low(holded by led driver i think). after that device is hangs over there.
regards IP: Logged |
|
erikm Member |
devices working fine up to sometime,after that SDA line goes low(holded by led driver i think). SDA should never be held while the clock is running. http://ics.nxp.com/literature/presentations/interface/pdf/interface.solutions.pdf a simple means to see which chip holds it would be to insert a 10k resistor in the trace between the two devices, if both are low it is the device with the pullup attached. can we force fully pullup the SDA line. two things: Erik IP: Logged |
|
krishnahari.pg Member |
hi Erik two things: when SDA held at low,no clock running SCL line timer0 used as clock base. Regards IP: Logged |
|
erikm Member |
what is the size of your pullup resistors? :4.7k. a bit on the large side, if you are not overly power conscious change to 1k.
Erik IP: Logged |
|
krishnahari.pg Member |
hi Erik i captured data lines using Analyzer. In working procedure ACK received. In failed condition in 9th pulse SCL line held continuously in HIGH state not came to low state. slave device waiting for SCL low state to release SDA line(i.e low -> high).
IP: Logged |
|
erikm Member |
is it your code (if so, please show) or appnote code? did you reduce the pullups? Erik IP: Logged |
|
krishnahari.pg Member |
hi Erik can we control smbus pins by configure it as push pull. after it crossbar allocation.
project description: solenoid settings were stored in I2C EEPROM. Regards [This message has been edited by krishnahari.pg (edited September 13, 2010).] IP: Logged |
|
erikm Member |
can we control smbus pins by configure it as push pull. after it crossbar allocation. NO, NO I uploaded project in winrar format. It is a industrial timer it switches solenoids Erik IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?