That'll do a fast-mode write to the DAC register as long as the "12-bit value" is <4095, so you could remove the 'PAUSE 10'.Code:addr var byte addr = $C0 ;$60 <<1 writedac4725: I2CWRITE sda,scl,addr,[4000] '12 bit value PAUSE 10 ' Wait 10ms for write to complete
If the upper control bits are '01x' then it'll possibly write to the DAC + EEPROM, depending on the actual value.
Bookmarks