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.

ADS131M04: stm32 SPI接口无法修改寄存器

Part Number: ADS131M04


uint16_t response = sendCommand(OPCODE_NULL);
response = sendCommand(OPCODE_NULL);

response = sendCommand(OPCODE_STANDBY);
response = sendCommand(OPCODE_NULL);

response = readSingleRegister(0);	
response = readSingleRegister(1);
response = readSingleRegister(2);
response = readSingleRegister(3);
response = readSingleRegister(4);
response = readSingleRegister(6);
response = readSingleRegister(9);

	/* (OPTIONAL) Define your initial register settings here */
  writeSingleRegister(CLOCK_ADDRESS, (CLOCK_DEFAULT & ~CLOCK_OSR_MASK) | CLOCK_OSR_8192);
	response = readSingleRegister(CLOCK_ADDRESS);
	response = readSingleRegister(CLOCK_ADDRESS);
	response = readSingleRegister(CLOCK_ADDRESS);

用的是STM32的SPI口连接ADS131M04,现在碰到现象是SPI读到的寄存器数据均为正常默认值,写进入待机模式命令回复的数据是0X0022,也是正确的,修改CLOCK寄存器后立即读回来参数也是正确的,但是再读一次还是默认值,实际上并没有修改成功,示波器观察DRDY输出频率是3.96K,不知道是什么问题?