2012-09-25 07:23 AM
How to use stm32f100 to make I2C sniffer using inter-integrated circuit (I2C) interface?
I've read all data sheet but don't find answer. Is there I2C mode selection used only for read data from i2c bus , the 'Slave receiver' may be is the approach mode but things not work.Have you got any idea ?2012-09-25 08:36 AM
Quick guess: you will hardly find any example code.
I2C is an adressed bus. You would have problems to record bus events that do not directly concern the sniffer, which are basically all ... You can use GPIO's in input mode, either with polling or interrupts on transition, and interpret the bus events internally.2012-09-25 09:13 AM
You can use GPIO's in input mode, either with polling or interrupts on transition, and interpret the bus events internally.
That would probably make the mode sense. Using the STM32's I2C controller in any form or fashion would seem to increase the complexity geometrically. What you'd want is a ''promiscuous'' mode, but it doesn't have one. Things like logic analyzers would just look at and decode the signals. Often in the world of software/hardware development you can't just expect a ready-to-wear solution to be handed to you, if you're paid to come up with solutions, people usually expect you to figure it out and get it done.