Oscillators/PCA/Timers/SMBus/UART/SPI
  SMBUS on F560 interface with I2C based led driver

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   SMBUS on F560 interface with I2C based led driver
krishnahari.pg
Member
posted September 09, 2010 08:20 AM     Click Here to See the Profile for krishnahari.pg   Click Here to Email krishnahari.pg     Edit/Delete Message
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.
can we force fully pullup the SDA line.
if we initialize SMBUS again,can we bring busline state to high.


please give a solution please urgent

regards
HARI

IP: Logged

erikm
Member
posted September 09, 2010 09:10 AM     Click Here to See the Profile for erikm   Click Here to Email erikm     Edit/Delete Message
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.
sure, if you do not mind possibly burning a chip

two things:
what is the size of your pullup resistors?
make sure SCL and SDA are not configured push-pull

Erik

IP: Logged

krishnahari.pg
Member
posted September 09, 2010 11:54 PM     Click Here to See the Profile for krishnahari.pg   Click Here to Email krishnahari.pg     Edit/Delete Message
hi Erik

two things:
what is the size of your pullup resistors?
:4.7k.
make sure SCL and SDA are not configured push-pull
:configured as open drain

when SDA held at low,no clock running SCL line timer0 used as clock base.

Regards
hari

IP: Logged

erikm
Member
posted September 10, 2010 07:29 AM     Click Here to See the Profile for erikm   Click Here to Email erikm     Edit/Delete Message
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.


when SDA held at low,no clock running
SDA is irrelevcant when the clock is not running

Erik

IP: Logged

krishnahari.pg
Member
posted September 10, 2010 08:15 AM     Click Here to See the Profile for krishnahari.pg   Click Here to Email krishnahari.pg     Edit/Delete Message
hi Erik

i captured data lines using Analyzer.
normally in the 9th clock pulse master receives ACK pulse.

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).


please verify the images of bus signals
http://www.4shared.com/photo/8kyYumH_/failed.html
http://www.4shared.com/photo/rReSCRVX/working.html


Regards
hari

IP: Logged

erikm
Member
posted September 10, 2010 09:48 AM     Click Here to See the Profile for erikm   Click Here to Email erikm     Edit/Delete Message
is it your code (if so, please show) or appnote code?

did you reduce the pullups?
did you try the 10k in series?

Erik

IP: Logged

krishnahari.pg
Member
posted September 13, 2010 01:12 AM     Click Here to See the Profile for krishnahari.pg   Click Here to Email krishnahari.pg     Edit/Delete Message
hi Erik

can we control smbus pins by configure it as push pull. after it crossbar allocation.


I uploaded project in winrar format.
http://www.4shared.com/file/bAdnAegb/FEUGO_KODHADA.html

project description:
It is a industrial timer it switches solenoids
for a particular time.

solenoid settings were stored in I2C EEPROM.
these settings were red from eeprom, updated on led display these loop will run forever.

Regards
hari

[This message has been edited by krishnahari.pg (edited September 13, 2010).]

IP: Logged

erikm
Member
posted September 13, 2010 05:56 AM     Click Here to See the Profile for erikm   Click Here to Email erikm     Edit/Delete Message
can we control smbus pins by configure it as push pull. after it crossbar allocation.
NO, NO

I uploaded project in winrar format.
http://www.4shared.com/file/bAdnAegb/FEUGO_KODHADA.html

I do not want the amoumt of spam accessing such websites result in, post the code here

It is a industrial timer it switches solenoids
This makes it likely that your problem is noise. Does this ever happen when running the device on the bench with no solenoids attached

Erik

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | MCU User Forum

Have you seen our MCU Knowledge Base?


Ultimate Bulletin Board 5.47b