Hi William, Eur,

When the master is reset while receiving data from a slave, this particular
slave remains active and might keep the clock line low (which is allowed
and usefull).

Resetting the master does not solve this, but there is a sequence
(described in an atmel AN, iirc) that clears the bus. I've added this to
i2c_initialize() and you could try and use it with i2c hardware too. Note
that it might not easy to have the peripheral create this pulse sequence
and different peripherals might respond differently as a result of their
internal state machine configuration. So my advise is to toggle the lines
before you activate the peripheral.

So, nothing wrong with i2c hardware, just a bit more functionality in i2c
software ;)

Regards,
Joep


2014-03-28 19:18 GMT+01:00 Eur van Andel <[email protected]>:

> On 28 mrt. 2014, at 18:52, William <[email protected]> wrote:
> >
> > SDA is 'stuck' low.
>
> I had the exact same problem. If you read fiw_7.jal, you see that I reset
> the I2C bus when it is low.
>
>
> > However, when using i2c_software.jal, its version of i2c_initialize()
> will reset/clear away the problem.
>
> This initializing does not work with the hardware version?
>
> > What I am doing wrong with i2c_hardware.jal?
>
> I was hoping you would answer that.
>
> I'm not in my lab, I'm working on the winding machine. I will check your
> software later and see if I can replicate it on the new board.
>
>
>
>
> Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/jallib.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to