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.

CCS/AFE4404: AFE4404 internal oscillator with MSP430F5529 problem

Part Number: AFE4404
Other Parts Discussed in Thread: MSP430F5529,

Tool/software: Code Composer Studio

Hello everyone !

I tried to use the MSP430F5529 to drive the AFE4404, clocked by the AFE4404's internal oscillator 

I successfully obtained the waveform and displayed it on the Labview via the UART (baudrate 115200),

but the sampling rate should be 100HZ in the register setting.

I have only 50HZ, I did not do the division clock (AFE4404_Reg_Write(57, 0);     //CLKDIV_PRF)

so I am very confused. The part of the program uses the AFE4404EVMFWSRC-v1.5 provided by TI

Possible register where is the setting error (using the AFM4404 internal 4MHZ oscillator)?

can someone help me? Thank you very much.

void AFE4404_Reg_Init(void)
{
	  AFE4404_Disable_Read();
	  AFE4404_Reg_Write(1, 96);    //AFE_LED2STC
	  AFE4404_Reg_Write(2, 399);    //AFE_LED2ENDC
	  AFE4404_Reg_Write(3, 802);    //AFE_LED1LEDSTC
	  AFE4404_Reg_Write(4, 1201);   //AFE_LED1LEDENDC
	  AFE4404_Reg_Write(5, 501);    //AFE_ALED2STC
	  AFE4404_Reg_Write(6, 800);    //AFE_ALED2ENDC
	  AFE4404_Reg_Write(7, 902);    //AFE_LED1STC
	  AFE4404_Reg_Write(8, 1201);   //AFE_LED1ENDC
	  AFE4404_Reg_Write(9, 0);      //AFE_LED2LEDSTC
	  AFE4404_Reg_Write(10, 399);   //AFE_LED2LEDENDC
	  AFE4404_Reg_Write(11, 1303);  //AFE_ALED1STC
	  AFE4404_Reg_Write(12, 1602);  //AFE_ALED1ENDC
	  AFE4404_Reg_Write(13, 409);   //AFE_LED2CONVST
	  AFE4404_Reg_Write(14, 1468);  //AFE_LED2CONVEND
	  AFE4404_Reg_Write(15, 1478);  //AFE_ALED2CONVST
	  AFE4404_Reg_Write(16, 2537);  //AFE_ALED2CONVEND
	  AFE4404_Reg_Write(17, 2547);  //AFE_LED1CONVST
	  AFE4404_Reg_Write(18, 3606);  //AFE_LED1CONVEND
	  AFE4404_Reg_Write(19, 3616);  //AFE_ALED1CONVST
	  AFE4404_Reg_Write(20, 4675);  //AFE_ALED1CONVEND
	  AFE4404_Reg_Write(21, 401);   //AFE_ADCRSTSTCT0
	  AFE4404_Reg_Write(22, 407);   //AFE_ADCRSTENDCT0
	  AFE4404_Reg_Write(23, 1470);  //AFE_ADCRSTSTCT1
	  AFE4404_Reg_Write(24, 1476);  //AFE_ADCRSTENDCT1
	  AFE4404_Reg_Write(25, 2539);  //AFE_ADCRSTSTCT2
	  AFE4404_Reg_Write(26, 2545);  //AFE_ADCRSTENDCT2
	  AFE4404_Reg_Write(27, 3608);  //AFE_ADCRSTSTCT3
	  AFE4404_Reg_Write(28, 3614);  //AFE_ADCRSTENDCT3
	  AFE4404_Reg_Write(54, 401);   //AFE_LED3LEDSTC
	  AFE4404_Reg_Write(55, 800);   //AFE_LED3LEDENDC
	  AFE4404_Reg_Write(29, 39999); //AFE_PRPCOUNT
	  AFE4404_Reg_Write(30, 0x000103);	//AFE_CONTROL1 TimerEN = 1; NUMAV = 3
	  AFE4404_Reg_Write(32, 0x008003);  //AFE_TIA_SEP_GAIN (LED2) ENSEPGAIN = 1; LED2/LED3 gain = 50K
	  AFE4404_Reg_Write(33, 0x000003);  //AFE_TIA_GAIN (LED1) LED1/LED1AMB gain = 50K
	  AFE4404_Reg_Write(58, 0x000000);  //AFE_DAC_SETTING_REG
	  AFE4404_Reg_Write(34, 0x0030C3); 	//LED3 - 3.125mA; LED2 - 3.125mA; LED1 - 12.5mA
	  AFE4404_Reg_Write(35, 0x124218); 	//DYN1, LEDCurr, DYN2, Ext CLK, DYN3, DYN4 //0x000200); - 0x200 Osc mode //AFE_CONTROL2
	  AFE4404_Reg_Write(49, 0x000020); 	//ENABLE_INPUT_SHORT
	  AFE4404_Reg_Write(57, 0);     	//CLKDIV_PRF
	  AFE4404_Reg_Write(50, 5475);  	//AFE_DPD1STC
	  AFE4404_Reg_Write(51, 39199); 	//AFE_DPD1ENDC
	  AFE4404_Enable_Read();
}