Skip to main content
Associate II
December 28, 2023
Question

pc8574 interfacing with stm32f103c8

  • December 28, 2023
  • 4 replies
  • 2587 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.

4 replies

TDK
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.
"If you feel a post has answered your question, please click ""Accept as Solution""."
ElangoAuthor
Associate II
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
Associate II
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