News:

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

Main Menu

Find the MCP3422 3 digit address

Started by Yves, Aug 30, 2026, 09:51 AM

Previous topic - Next topic

Yves

The MCP basic address is %11010000. Is any one has a simple scanning routine to find the last 3 digit

Yves
Yves

Frizie

#1
I've asked AI (but there are compile errors)
To be continued...
Ohm sweet Ohm | www.picbasic.nl

trastikata

Hello Yves - 3bits is only 8 possibilities - enter those manually in your program and see to which the chip responds.

Frizie

Trastikata, is this possible automatically to do by running thru the 8 addresses and watching the ACK/NACK response?
Ohm sweet Ohm | www.picbasic.nl

streborc

It's quite easy to write an I2C ping program that tests all 128 addresses and identifies the correct one.  See https://electronics.stackexchange.com/questions/76617/determining-i2c-address-without-datasheet for an explanation.  I wrote such a pinger a couple years ago in PIC Basic, but never did a conversion to Proton.

Yves

Many thanks for the clarification.

Yves
Yves

Pepe

#6
demo proteus using les library