pc8574 interfacing with stm32f103c8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-28 6:58 AM
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 waveform
- Labels:
-
ST boards
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-28 7:07 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-28 10:51 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-28 11:20 PM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-29 6:40 AM
Looks like you're just missing edges due to insufficient sample rate. Increase the sampling rate on your logic analyzer.
