MK20DN512 Clear i2c bus using Processor Expert InternalI2C Component

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MK20DN512 Clear i2c bus using Processor Expert InternalI2C Component

1,444 次查看
cesar1
Contributor I

I'm using an i2c eeprom memory and sometimes this memory lock the bus. The memory have no reset pin than, the only way to clear the bus is to send nine clock pulses and generate a stop condition to reset the i2c communication state of the memory.

Is there any way to do it using the Processor Expert components?

0 项奖励
回复
1 回复

1,373 次查看
ErichStyger
Specialist I

I'm doing this with the GenericSWI2C component (see Bit-Banging I2C with ResetBus() Functionality | MCU on Eclipse ).

If you want to combine this with the InternalI2C, you would have to use shared pins (see ) and do the re-muxing (see Tutorial: Bits and Pins with Kinetis and the FRDM-KL25Z Board | MCU on Eclipse ).

I hope this helps,

Erich

PS: if there is any interest how this works with the MCUXpresso SDK: The I2CLIB_ReleaseBus() does exactly this: mcuoneclipse/i2clib.c at master · ErichStyger/mcuoneclipse · GitHub 

0 项奖励
回复