Let's find out together what makes a PIC Tick!

Main Menu

A simple I2C scanner

Started by keytapper, Feb 07, 2021, 02:00 AM

Previous topic - Next topic


Some time is difficult to understand whether we have attached correctly a device to the I2C bus and what is the expected address for that device.
Mimic the same snippet made for Arduino I wrote this simple scanner which will tell what it can find on the I2C bus.
For simplicity I propose the software version which uses a bit-bashing.
The example works for all midrange MCU, tested a 16F877A and 12F675.
Ignorance comes with a cost


Great job keytapper


small time-saving utilities, thanks