Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20688

BASCOM-AVR : new problem with I2C : REPLY

$
0
0
Hi, Maybe try a simple i2c scanner first just to see exactly what address the chip is responding to, if any. Something like:- [code:1:02516dce7f]For Temp_byte = 0 To 254 Step 2 'Scan every even address I2cstart 'Ping chip I2cwbyte Temp_byte 'get result If Err = 0 Then 'err=hw problem Print #1 , Temp_byte ; "," ; 'no error so device End If 'ie. no i2c device I2cstop 'stop bus Next Temp_byte 'loop through each sensor Print #1 , ""[/code:1:02516dce7f] Regards Ian Dobson

Viewing all articles
Browse latest Browse all 20688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>