[問題] I2C SCL default always low
代po
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
C
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
unknow
問題(Question):
MSP430 I2C SCL default always low
餵入的資料(Input):
I2C register address
預期的正確結果(Expected Output):
I2C register value 應該要 0x82
錯誤結果(Wrong Output):
但是讀出來的值,卻會亂飄
程式碼(Code):(請善用置底文網頁, 記得排版)
https://gist.github.com/anonymous/bcd2f9e577e2f091fe1a
補充說明(Supplement):
這個是用Ti的msp430 控制ADI(AD5933),來達到讀取阻抗值效果
目前的問題是在Read值得時候,SCL一開始處於low的位置 如附圖。
http://imgur.com/VVOdIcj
所以造成目前都讀不到正確的值。希望有人幫我解決 plz
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.249.111.109
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1438012659.A.C6B.html
※ liangzhi:轉錄至看板 Programming 07/28 00:06
※ liangzhi:轉錄至看板 Electronics 07/28 08:30
推
07/28 13:51, , 1F
07/28 13:51, 1F
→
07/28 16:26, , 2F
07/28 16:26, 2F
→
07/28 16:26, , 3F
07/28 16:26, 3F
→
07/28 16:26, , 4F
07/28 16:26, 4F
→
07/29 01:06, , 5F
07/29 01:06, 5F
推
07/30 22:47, , 6F
07/30 22:47, 6F
→
07/30 22:48, , 7F
07/30 22:48, 7F