標題: 單片機驅動DS18B20程序工作流程 [打印本頁]
作者: 不妥 時間: 2018-9-14 21:54
標題: 單片機驅動DS18B20程序工作流程
(1) initial (DS18B20初始化)
(2) skip rom
(3) convert T (讓DS18B20開始工作采集周圍溫度)
(4) busy check (等待DS18B20完成采集)
(5) initial (DS18B20初始化)
(6) skip rom
(7) read scratchpad (發送讀scratchpad命令)
(8) rcv data (接收DS18B20傳過來的數據)
(9) cal (計算溫度值)
(10) display (把這個值顯示出來)
| 歡迎光臨 (http://m.raoushi.com/bbs/) |
Powered by Discuz! X3.1 |