Posted on August 18, 2014 at 17:08
I'm trying to connect this port to i2c standard PCF8574 I/O expander.
And I can't get it to work.
My GPIO init code:
RCC->APB1ENR |= ( RCC_APB1ENR_I2C1EN | RCC_APB1ENR_I2C2EN );
RCC->AHBEN...
Posted on August 24, 2014 at 19:33
Thank you.
I've found my mistake.
1.
GPIOA->AFR[0] = 0x00;
2.
GPIOA->AFR[1] |= ( (0x04 <<4) | ( 0x04 <<8 ) ); Earlier, I meant hex but wrote in bits.
Interesting right now is that I do...
Posted on August 18, 2014 at 19:43
gonzalez.laurent
Are SCL/SDA correctly pulled high (use MCU internal pull-up when the board does not provide pull-up resistor) ? What are levels of SCL/SDA observed on the oscilloscope.
I 've pul...