Skip to main content
Explorer
December 28, 2023
Question

pc8574 interfacing with stm32f103c8

  • December 28, 2023
  • 1 reply
  • 1589 views

Hi,while interfacing pc8574t with stm 32  i2c communication after generating start condition and sending slave address (0x4e) as in datasheet acknowledge failure flag was enable  this was the waveform i got and still can't find what could be reason it

if any suggestions please let me knowi2c waveformi2c waveform

    This topic has been closed for replies.

    1 reply

    Super User
    December 28, 2023

    SCL should be toggling.

    Some possibilities:

    • Pin isn't configured correctly.
    • Something else is pulling SCL high. Consider doing an analog capture at a high sample rate to see if voltage drops at all when SCL should be going low.
    • Probe isn't connected to the pin.
    ElangoAuthor
    Explorer
    December 29, 2023

    hi sir, i checked it it seems to be a pin connection and i sort it out now after sending start bit it transmits stop bit 

    i have attached photo below

    while debugging i came to know it generates start condition after sending slave address the AF(ack failure) flag was set and stop bit was generated

    IMG20231229115924.jpg

    ElangoAuthor
    Explorer
    December 29, 2023

    and also add on to that while debugging i saw it doesn't generate start on first transfer it generates restart condition 

    i have attached photo for better understanding(the green colour statements are the one which conditions satisified)

    Screenshot (2).png