Yes. It is working in the Fast Mode.
valuedac= 4095
I2CWRITE sda,scl,%11000010,[valuedac.highbyte,valuedac.lowbyte]
The above control byte in binary is from data sheet 1100 = device code
0010 is the board with address code set to A0 = 1 . Most default boards are factory 0000. I have tied the user A0 bit to VCC in the board.
Control and Address are in the same first byte.
Data sheet says that second and third bytes may be repeated (valuedac may be repeated ) like
I2CWRITE sda,scl,%11000010,[valuedac.highbyte,valuedac.lowbyte,valuedac.highby te,valuedac.lowbyte]
This also works but seems be not necessary.
I will try next days to write a code for other modes.
Data Sheet link: https://ww1.microchip.com/downloads/...doc/22039d.pdf
Bookmarks