Dear friends,
I have a CMPS03 and I want to change the address.
I have read the related link, but whatever I wrie the program, I could not get any reply!
the link is below:
http://www.robot-electronics.co.uk/htm/cmps3tech.htm
the last idea was below, but it was not effective:
%%%%%%
I2caddr = &HC0
I2cstart
I2creg = 12
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
'I2cstop
I2cstart
I2creg = 13
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
' I2cstop
I2creg = 14
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
' I2cstop
I2creg = 15
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
' I2cstop
I2caddr = &HC2
I2cstart
I2creg = 2
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
I2cstop
%%%%%%
Any help will be appreciated.
Best Regards,
Sara
I have a CMPS03 and I want to change the address.
I have read the related link, but whatever I wrie the program, I could not get any reply!
the link is below:
http://www.robot-electronics.co.uk/htm/cmps3tech.htm
the last idea was below, but it was not effective:
%%%%%%
I2caddr = &HC0
I2cstart
I2creg = 12
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
'I2cstop
I2cstart
I2creg = 13
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
' I2cstop
I2creg = 14
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
' I2cstop
I2creg = 15
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
' I2cstop
I2caddr = &HC2
I2cstart
I2creg = 2
I2csend I2caddr , I2creg
I2creceive I2caddr , I2cdata
I2cstop
%%%%%%
Any help will be appreciated.
Best Regards,
Sara