openwch / ch32v003

CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10
386 stars 56 forks source link

Example for I2C is not working #9

Closed waiweng83 closed 10 months ago

waiweng83 commented 1 year ago

The I2C example is not working. The Master always hold the SCL pin low. I've added external 4K7 pull up resistor to both PC1 and PC2 but it's still the same.

qiyongshuang commented 1 year ago

I want to know which EVT does not work or all I2C routines do not work.

waiweng83 commented 1 year ago

I want to know which EVT does not work or all I2C routines do not work.

I tried "I2C_7bit_Mode" and it's not working. Didn't try on other examples.

qiyongshuang commented 1 year ago

In "I2C_7bit_Mode“, first reset the slave board, then reset the host board. "I2C_7bit_Mode“rountine sends and receives multiple arrays, and the result printing will have a delay. emobile_2023-02-27_15-10-05