napisalem programik do szukania urzadzen na magistrali I2C
w ukladzie jest tylko pamiec 24c16 (wszystkie nogi adresowe podpiete do masy) a w odpowiedzi dostaje:
a co to moze chodzic ??
$regfile = "M16def.dat"
$crystal = 16000000
$baud = 19200
$lib "i2c.lib"
Config Scl = Portc.0
Config Sda = Portc.1
I2cinit
Twbr = 12
Twsr = 0
Dim A As Byte
Print "TWI master"
For A = 2 To 254 Step 2
I2cstart
I2cwbyte A
I2cstop
If Err = 0 Then
Print "adres " ; A ; "!"
End If
Waitms 20
Next A
Print "koniec"
Wait 2
w ukladzie jest tylko pamiec 24c16 (wszystkie nogi adresowe podpiete do masy) a w odpowiedzi dostaje:
TWI master
adres 160!
adres 162!
adres 164!
adres 166!
adres 168!
adres 170!
adres 172!
adres 174!
a co to moze chodzic ??