Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

how can i make 89s52 i2c sniffer ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive
View previous topic :: View next topic  
Author Message
solar1

Bascom Member



Joined: 21 Nov 2005
Posts: 2

blank.gif
PostPosted: Mon Nov 21, 2005 7:24 am    Post subject: how can i make 89s52 i2c sniffer ? Reply with quote

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 As Bit
Dim C As Bit
Dim D As Bit
Dim E As Bit

Config Sda = P0.1
Config Scl = P0.0
Dim Value1 As Byte
Dim Value2 As Byte


Do

I2creceive 32 , Value1                                      
If Value1 = 1 Then                                          
End If
If Value1 = 2 Then
End If
 If Value1 = 4 Then
 End If
 If Value1 = 8 Then
program do something
End If

  I2creceive 36 , Value 2
  If Value2 = 1 Then
  End If
  If Value2 = 2 Then
   End If
   If Value2 = 128 Then
   End If
 Loop
 
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Mon Nov 21, 2005 9:34 am    Post subject: I2c-tracer Reply with quote

Could you have a look at

http://members.home.nl/bzijlstra/hardware/I2Ctrace/I2Ctrace.htm

Bye
Ben Zijlstra
Back to top
View user's profile Visit poster's website
solar1

Bascom Member



Joined: 21 Nov 2005
Posts: 2

blank.gif
PostPosted: Mon Nov 21, 2005 7:30 pm    Post subject: Reply with quote

pc is't 89S52 !! i need do this on 89s52
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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