Posted on December 18, 2013 at 21:57Hello. I have a problem to cinfigure I2C. This is my code: &sharpdefine PRESC 0x0B &sharpdefine SCLL 0x13 &sharpdefine SCLH 0x0F &sharpdefine SDADEL 0x02 &sharpdefine SCLDEL 0x04 v...
Posted on December 20, 2013 at 12:30Hi. This is a working test code for 7 bits addressing. Use init, and next send address your slave and length of data. void I2C_PCF_init() { RCC->AHBENR|=RCC_AHBENR_GPIOBEN; GPIOB->MODER|= GPIO_MODER_MO...
Posted on December 19, 2013 at 19:28Thank you for response. The problem was here: I2C1->CR2|=(adress<<0)|(lenght<<16)|I2C_CR2_ADD10; //address SLAVE 10bits I was try to send 8 bits address, but that was send only 2 MSBs on 10bits mode, and slave...