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.
读取操作方法是否正确?如下
RREG: Read from Registers
Description: These opcode bytes read register data. The Register Read command is a two-byte opcode
followed by the output of the register data. The first byte contains the command opcode and the register address.
The second byte of the opcode specifies the number of registers to read – 1.
First opcode byte: 0010 rrrr, where rrrr is the starting register address.
Second opcode byte: 0000 nnnn, where nnnn is the number of registers to read.
The 17th SCLK rising edge of the operation clocks out the MSB of the first register
void ads1259_init()
{
ADS1259_Write_Byte(SDATAC); //Send the SDATAC command
ads1259_write(CONFIG1,0x50);
ADS1259_Write_Byte(START);
delay_ms(10);
}
main()
{
ADS1259_init();
while(1)
{
ADS1259_Read_from_Rg(0x00);
delay_ms(1);
ADS1259_Read_from_Rg(0x01);
delay_ms(1);
ADS1259_Read_from_Rg(0x02);
delay_ms(1);
ADS1259_Write_Byte(RDATA);
ADS1259_Read_2Word();
}
这是我对ads1259进行的初始化和主函数,可是我用示波器监控ADS1259的引脚,却什么都没有输出。请问是什么原因