Question
SCCB, STM32F429DISCO + OV9650
Posted on August 22, 2016 at 14:15
#i2c #sccb
Hi,
My code is the same as this post:/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https%3a//my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/SCCB%20emulation%20by%20I2C%20communication%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=99
I have a problem with I2C (SCCB) communication. More precisely, when i try to send slave write adress (0x60 - from 0v9650 datasheet), I get ''DONT_CARE_BIT'' = FALSE. It's like ACK, so after this ADDR flag in I2C_SR1 is set..BUT.. When i go to line:while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED))
and don't do this yet the ADDR flag is reset and it gets stuck because ADDR flag isn't set.What can be the reason of reset ADDR?screen from logic analyzer:
#i2c #sccb