Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Discussion Groups

Discussion Groups | Piclist | I2C data line (SDA) goes low and hangs

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

I2C data line (SDA) goes low and hangs - Basic Poke - Jun 4 11:37:26 2008


I have a PIC18F66J50 with a Microchip EEPROM on the I2C port.
Sometimes when I program the MCU using MPLAB, the I2C data line (SDA)
goes low and stays there. Any read or write I then attempt results in
a bus collision error and doesn't work. Here is the sequence of events:

* cycle power to the MCU/EEPROM board
* compile with MPLAB
* program the target device with MPLAB. There is chatter on the SCL
and SDA lines, then SDA goes low and stays. This does not happen every
time.

Any help?
Thanks
BasicPoke
------------------------------------

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: I2C data line (SDA) goes low and hangs - Basic Poke - Jun 5 9:38:58 2008

The problem was that during download to the target MPLAB was allowing
the program to run briefly and an I2C message was started and
apparently interrupted while the external EEPROM was driving the data
line low. To fix it, at the beginning of my code I basically send
out clock pulses until the data line is released.
BP
--- In p...@yahoogroups.com, "Basic Poke" wrote:
>
> I have a PIC18F66J50 with a Microchip EEPROM on the I2C port.
> Sometimes when I program the MCU using MPLAB, the I2C data line
(SDA)
> goes low and stays there. Any read or write I then attempt results
in
> a bus collision error and doesn't work. Here is the sequence of
events:
>
> * cycle power to the MCU/EEPROM board
> * compile with MPLAB
> * program the target device with MPLAB. There is chatter on the
SCL
> and SDA lines, then SDA goes low and stays. This does not happen
every
> time.
>
> Any help?
> Thanks
> BasicPoke
>

------------------------------------

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Re: I2C data line (SDA) goes low and hangs - np np - Jun 10 20:10:39 2008

But the I2C can be interupted, there is no time out on the bus.
Are you sure that you are clocking out the ACK ?
Sounds to me like your not clocking the bus again to get rid of the ACK.

----- Original Message ----
From: Basic Poke
To: p...@yahoogroups.com
Sent: Thursday, 5 June, 2008 2:38:52 PM
Subject: [piclist] Re: I2C data line (SDA) goes low and hangs
The problem was that during download to the target MPLAB was allowing
the program to run briefly and an I2C message was started and
apparently interrupted while the external EEPROM was driving the data
line low. To fix it, at the beginning of my code I basically send
out clock pulses until the data line is released.
BP

--- In piclist@yahoogroups .com, "Basic Poke" wrote:
>
> I have a PIC18F66J50 with a Microchip EEPROM on the I2C port.
> Sometimes when I program the MCU using MPLAB, the I2C data line
(SDA)
> goes low and stays there. Any read or write I then attempt results
in
> a bus collision error and doesn't work. Here is the sequence of
events:
>
> * cycle power to the MCU/EEPROM board
> * compile with MPLAB
> * program the target device with MPLAB. There is chatter on the
SCL
> and SDA lines, then SDA goes low and stays. This does not happen
every
> time.
>
> Any help?
> Thanks
> BasicPoke
>

__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )