PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Nov 01, 2006 8:29 pm |
|
|
| Quote: |
#define DAC_ADDRESS 0b0101100 // 010=factory, 11=517 setting, 0=ad0 grd, 0=ad1 gnd
|
The Dac slave address is wrong.
The CCS i2c library routines do not use 7-bit i2c addresses.
They expect the R/W bit (which is bit 0) to be present. You need
to add a 0 onto the end of your address, as shown in bold below:
| Quote: |
#define DAC_ADDRESS 0b01011000 |
|
|