Posted: Mon Nov 21, 2005 7:24 am Post subject: how can i make 89s52 i2c sniffer ?
how can i make 89s52 as i2c sniffer , i have som panel that sends data via i2c i want to listen this transmision i dont want steal messages .. i write some program in bascom but it steal messages ;/ i know what i want to hear and from what adress HELP ?
Code:
Dim A AsBit Dim C AsBit Dim D AsBit DimEAsBit
Config Sda = P0.1
Config Scl = P0.0
Dim Value1 AsByte Dim Value2 AsByte
Do
I2creceive32 , Value1
If Value1 =1Then End If If Value1 =2Then End If If Value1 =4Then End If If Value1 =8Then
program do something
End If
I2creceive36 , Value 2 If Value2 =1Then End If If Value2 =2Then End If If Value2 =128Then End If Loop
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum