I am trying to control the DAC MCP4725 but my code seems not work . My code:
sda var portb.4
scl var portb.5
cont var byte
cont = %1100
addr var byte
addr = $60
'=========================================
writedac4725:
I2CWRITE sda,scl,cont,addr,[4095] '12 bit value
PAUSE 10 ' Wait 10ms for write to complete
return
'=========================================
The address of my board was confirmed $60 by reading the board with I2CScanner Arduino sketch
The device control %1100 was from datasheet :
https://ww1.microchip.com/downloads/...doc/22039d.pdf
I would appreciate any help
Thanks
ACJacques
Bookmarks