2021-04-08 04:18 AM
2021-04-08 12:08 PM
The hardware functionality and I2C state machine is described in a reference manual. Take a note that I2C is not the simplest peripheral to program. If you lack the experience, I suggest first implementing a reliable full-duplex UART driver. That is also more practical as UART can provide additional printf() style debugging. When you will have done that, you will have gained enough experience to go on and implement I2C driver. :)
2021-04-08 08:47 AM
Hello @Ocebe.1 ,
Have a look at the I2C examples within STM32CubeG0 MCU package, which can help you as an implementation example:
\STM32Cube_FW_G0_V1.4.1\Projects\NUCLEO-G031K8\Examples\I2C\
Imen
2021-04-08 08:52 AM
Thank you, I will look.
2021-04-08 08:58 AM
I looked these examples but it used HAL Library and I don't want to use HAL , but thank you your response
2021-04-08 12:08 PM
The hardware functionality and I2C state machine is described in a reference manual. Take a note that I2C is not the simplest peripheral to program. If you lack the experience, I suggest first implementing a reliable full-duplex UART driver. That is also more practical as UART can provide additional printf() style debugging. When you will have done that, you will have gained enough experience to go on and implement I2C driver. :)
2021-04-08 12:31 PM
Thank you for your advice , I wrote a code for printf() :grinning_face: