Re: A/D轉換後的問題?16f877a
|
||||
---|---|---|---|---|
新會員
|
後來ADRESH改成ADRESL就可以了
謝謝
發表於: 2009/11/20 22:29
|
|||
|
Re: A/D轉換後的問題?16f877a
|
||||
---|---|---|---|---|
資深會員
|
個人覺得 A/D線路 規劃可能有問題.
可以貼硬體 A/D部分 的線路看看嗎? 硬體就像骨骼肌肉,軟體像神經網路.相互協調.
發表於: 2009/11/19 0:57
|
|||
少年不知愁滋味,老來方知路難行。
|
||||
|
Re: A/D轉換後的問題?16f877a
|
||||
---|---|---|---|---|
新會員
|
程式要怎改連續累加?
能大概說明一下?謝謝
發表於: 2009/11/18 23:53
|
|||
|
Re: A/D轉換後的問題?16f877a
|
||||
---|---|---|---|---|
資深會員
|
設迴圈 , 連續累加 16 or 32 or 64 or 128 or 256 讀值後 , 取平均值 ( 右移 )(或以累加值 ) 作判斷
發表於: 2009/11/18 23:27
|
|||
|
Re: A/D轉換後的問題?16f877a
|
||||
---|---|---|---|---|
新會員
|
那如果硬體固定了.有其他改法嗎?
我們要用可變電阻 因阻值不同顯示不同的數值 可是老師給的難題是電阻變化非常微小 所以不知道該如何是好...
發表於: 2009/11/18 23:17
|
|||
|
Re: A/D轉換後的問題?16f877a
|
||||
---|---|---|---|---|
資深會員
|
動態範圍太小 , ((79-77) * 4 / 1024 ) * 5v = 0.039v , 容易誤判
建議由硬體將這範圍拉大 , 再交由 MCU 判斷 A/D 周邊設定沒什麼問題 , 但主迴圈速度太快 , 如果是由人眼判斷,可能無法察覺 CMCON 設定式 多了一個 0 ( 應無大礙 )
發表於: 2009/11/18 22:53
|
|||
|