Soft I2C and Idle state detection

General discussion on mikroBasic.
Post Reply
Author
Message
pablomac
Posts: 43
Joined: 14 Jan 2006 04:07
Location: Argentina
Contact:

Soft I2C and Idle state detection

#1 Post by pablomac » 03 Mar 2006 18:39

Hi!!!, I need to use the Soft I2C library on PORTD pins 6,7, but I need to detect the Idle state of the slave device (RTC DS1307). How can I do this????

Thanks in advance!!!
Pablo.
Macca.

SoulAnimated
Posts: 2
Joined: 09 Jul 2011 18:43

Re: Soft I2C and Idle state detection

#2 Post by SoulAnimated » 25 Jul 2011 22:45

idle state relates to bus and not to device. slaves always listen for start condition, when not involved in a transfer, so i guess that's i could think of as their "idle". masters need to check bus idle before starting( just check sda and scl high, wait one full cycle and check again), but even if they don't, the hardware will detect any bus collision and raise an interrupt for user to service it. if what you have is one master firmware, then just check the lines before starting.

Post Reply

Return to “mikroBasic General”