http://www.lvboled.com/zh-TW/news.html?newsID=31716
http://willieled.mysinablog.com/index.php?op=ViewArticle&articleId=2194766
2014年1月4日 星期六
L6470 SPI 通訊韌體
L6470 這顆 Step-Motor Motion 控制IC,SPI 介面寫了一周,都通不起來;還以為是 Timming 問題,跟朋友借示波器涼了半天,Timming 調對了,還是通不起來..................
最後,再看一下 DataSheet,
http://www.st.com/web/en/resource/technical/document/datasheet/CD00255075.pdf
Page 38
中間有一段這樣寫;
After each byte transmission the CS input must be raised and be kept high for at least tdisCS
in order to allow the device to decode the received command and put the return value into
the SHIFT register.
見鬼了,第一次聽過這種SPI 封包,還要為每一個Byte 都留時間給 Chip 去處理。
照做寫下去,終於可以讀到數值了。
英文還是要認真看,不然怎麼被搞都不知道。
最後,再看一下 DataSheet,
http://www.st.com/web/en/resource/technical/document/datasheet/CD00255075.pdf
Page 38
中間有一段這樣寫;
After each byte transmission the CS input must be raised and be kept high for at least tdisCS
in order to allow the device to decode the received command and put the return value into
the SHIFT register.
見鬼了,第一次聽過這種SPI 封包,還要為每一個Byte 都留時間給 Chip 去處理。
照做寫下去,終於可以讀到數值了。
英文還是要認真看,不然怎麼被搞都不知道。
2014年1月3日 星期五
訂閱:
意見 (Atom)