Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 240518

I²C (Inter-Integrated Circuit) is a multi-drop serial bus invented by Philips (now NXP) for communication between ICs on the same PCB, i.e. short distance.

2 votes
1 answer
2k views

How to setup STM32 as I2C target device?

I've been trying to set up MCU (STM32 L432KC) as an I2C target device. I have previously tested it as a controller device to interface with a port expander (MCP2307) and it works perfectly fine. … RCC_APB1ENR1_I2C1EN; GPIOA->MODER &=~(3<<18 | 3<<20); GPIOA->MODER |= 2<<18 | 2<<20; GPIOA->AFR[1] &=~(0xF<<4 | 0xF<<8); GPIOA->AFR[1] |= (4<<4 | 4<<8); //PA9, PA10 - AF i2c
Luffy's user avatar
  • 65
2 votes
3 answers
584 views

How do I figure the I2C timings for a peripheral?

The I2C timing specs are confusing me a bit. Here's a few timing characteristics from my peripheral : It's basically the same as I2C timing specs provided by NXP. … Should I program my I2C controller on MCU for 1000 ns rise time only or could I go lower? Similarly the specs for,say, START condition Hold time is given by a minimum 4 us. …
Luffy's user avatar
  • 65