Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 27615

Forum Post: RE: ADS1298: Not able to write registers of ADS1298 with MSP430F67751

$
0
0
Hello, thanks for reply, i have tied the CS Pin to low as of now to get initialize and to fist communication done. Also, I want to let you know that i my DRDY pin is not going high to low after giving START signal high.Here is my sequence according to datasheet DRDY signal should go high to low after RDATAC command. while(1) { if (cFrame_Received_Flag==1) { fSend_Char('p'); P4OUT |= BIT5; //START=1 //__delay_cycles(8196721); //1 sec delay, 18 tclk __delay_cycles(12295081); P4OUT ^= BIT6; // set P4.6, ADC_RST __delay_cycles(8); //4uS delay (7.2 uS = delay (50)), 2 tclk P4OUT ^= BIT6; __delay_cycles(60); //16tclk send_spi(0x11); // Device Wakes up in RDATAC mode, so send SDATAC command so Registers can be written __delay_cycles(8197); //1ms unsigned char dataArray[14]={0x41,0x0C,0x86,0x00,0xC0,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01}; SPISend(dataArray, 14); __delay_cycles(819672); //100ms // RREG(0x21,0x01); __delay_cycles(81967); P4OUT |= BIT5; //START=1 send_spi(0x10); //Put the Device Back in RDATAC Mode __delay_cycles(819672); cFrame_Received_Flag=0; } } } Regards, Ashish Jain

Viewing all articles
Browse latest Browse all 27615

Trending Articles