Dear All
Do you have ADS8698 sample code ,control by MSP430?
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello Clark,
Unfortunetly we do not have sample code for the device. The most common issue when communicating with devices is timing errors. I would suggest to look closely to the timing diagram in the datasheet.
If you have any inquiries concerning the MSP430, I suggest posting again in their desginated forum area.
Regards,
Cynthia
How can i know that command is sent correctly?
if i want to send a RST command
my command like that: (Cmd = 0x85)
void ADS8698_CMD(uchar Cmd) { //Cmd = 0x85; AVCS = 0; //CS LOW delay_us(2); for(i=0;i<8;i++) //Send CMD MSB 8bit { AVSCLK = 1 ; // SCLK HI if(Cmd & 0x80) AVSDI = 1; else AVSDI = 0; delay_us(2); AVSCLK = 0; //SCLK LOW delay_us(2); Cmd =Cmd << 1; } AVSDI= 0 ; //Send CMD LSB 8bit delay_us(2); for(i=0;i<8;i++) { AVSCLK = 1; delay_us(2); AVSCLK = 0; delay_us(2); } r=0; for (i=0;i<18;i++) //Read previous data { r = r<< 1; AVSCLK = 1; // SCLK HI if(AVSDO) //Check SDO 1 or 0 r = r | 0x0001; else r = r & 0x03fe; delay_us(2); AVSCLK = 0; // SCLK LOW delay_us(2); } AVCS = 1; //CS HI delay_us(2); }
Yes,
If you want to send a RST command, you would use x8500h. More commands are shown in table 6 in the datasheet. Note that there are 16 bits though, even though the 8 least signifact are all zeros.
In general if you want to double check that the registers are programmed correctly:after you program the registers, read them to be sure the values you assigned are correct.
Regards
Cynthia