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.

ADS1248讀寫暫存器有問題

Other Parts Discussed in Thread: ADS1248

ADS1248讀寫暫存器時,先寫入暫存器,想再讀出來檢查是否寫入正確,卻都只能讀到0

以下是使用邏輯分析儀分析的結果

指令為先寫入0x16(SDATA command) -> 0x40(WREG 1st command) -> 0x00(WREG 2nd command) -> 0x13(AIN2、AIN3)

接著依同樣方式寫入MUX1和IDAC0暫存器

之後想讀出00-0E全部的暫存器資料,所以寫入0x20(RREG 1st command) -> 0x0E(WREG 2nd command)

但讀出結果全部為0x00,不知道是程序上有錯誤還是問題出在哪?