關於TDS轉換
|
||||
---|---|---|---|---|
高級會員
|
請問是否有人知道關於水質TDS檢測的轉換?
就讀取的電壓值如何轉換成ppm的? 謝謝!!
發表於: 2009/9/17 10:17
|
|||
|
請教 AN734 有關 I2C 的問題..
|
||||
---|---|---|---|---|
高級會員
|
AN734 - page 2
After the address byte is received, the slave device sends an ACK pulse and holds the SCL line low (clock stretching).By holding the SCL line, the slave can take as much time as needed to prepare the data to be sent back to the master. When the slave is ready, it releases SCL and the master device clocks the data from the slave buffer. 問題: 若我要寫一個 Slave 端的程式,Slave 如何 holding SCL line? 而且 Master 要讀幾個byte就產生幾個 Clock,Master 要如何知道 Slave release SCL.. 不然 Slave holding SCL, 然後 Master 一直在產生 Clock..這樣會造成資料錯亂吧? On the ninth clock pulse, the slave latches the value of the ACK bit received from the master. 問題: 在讀取資料時,第9個Clock Pulse,SDA腳上的 ACK 或 NACK 信號是 MASTER 控制,Slave 若接收為ACK時,則必須再準備下一筆資料傳送..我的想法對嗎? 謝謝~~
發表於: 2009/8/18 12:23
|
|||
|
16F74轉16F724遇上的一些問題請教!!謝謝
|
||||
---|---|---|---|---|
高級會員
|
小弟想將程式由16F74轉成16F724..發生底下一些問題,
前來請教各位前輩.... 1. pic16f72x 的 Configuration bits 有分 CONFIG1,CONFIG2 請教如何在程式中直接定義? 2.底下錯誤訊息是什麼意思,用16F7X可以正常編譯出來..但改成PIC16F724就一堆類似底下的問題...看不懂,所以不知道該如何調整 Error [1347] ; 0. can't find 0x37 words (0x37 withtotal) for psect "text651" in segment "CODE" (largest unused contiguous range 0x33) Error [1347] ; 0. can't find 0x34 words (0x34 withtotal) for psect "text680" in segment "CODE" (largest unused contiguous range 0x33) 3.使用ICD2燒錄時..有訊息說MCLR VPP 12V,好象說要確認線路的保護?..這是什麼意思.? 謝謝各位解惑...
發表於: 2009/5/5 23:42
|
|||
|
請教頻率切換問題?
|
||||
---|---|---|---|---|
高級會員
|
各位先進..
因考慮到lcm繪圖速度跟耗電量.. 想說在平常時用8M來執行.. 但在繪圖時則切換成16M來執行?..這樣做是否可行? 因為頻率切換..那平時計時的值不就會整個亂掉? 是否有比較好的做法?
發表於: 2008/11/19 17:39
|
|||
|
Re: 有人用過 聯詠 NT7553E LCD Controller 嗎?
|
||||
---|---|---|---|---|
高級會員
|
謝謝版大..
這個是客戶指定的..160x160點,有sleep模式,低耗電.. 看來還是得乖乖的看spec.慢慢try了....
發表於: 2008/9/5 9:19
|
|||
|
有人用過 聯詠 NT7553E LCD Controller 嗎?
|
||||
---|---|---|---|---|
高級會員
|
是否能提供小弟一些 demo 程式參考..
用google搜尋..沒找到有用的資料.. 上聯詠的網站..好像只針對他們的客戶有提供一些服務 其它也沒什麼東西可以參考的..這顆是很冷門嗎? 小弟公司規模不大...什麼東西都要自己看spec. 自已寫副程式..真的是很累的一件事..有些真的是看的霧煞煞.. 抱著一絲絲希望..看能不能減輕一點負擔...謝謝~
發表於: 2008/9/4 14:45
|
|||
|
Re: 請教C18 inline asm 問題
|
||||
---|---|---|---|---|
高級會員
|
版大...
我發現原來是我C18的組語語法錯誤.. 所以Complier會有錯誤 後來改成 unsigned char data[8]; _asm RRCF data+0,1,1 RRCF data+1,1,1 ..... _endam 這樣的方式試過ok....~謝謝~
發表於: 2008/8/20 14:39
|
|||
|
請教C18 inline asm 問題
|
||||
---|---|---|---|---|
高級會員
|
請教 inline asm 呼叫 C變數的問題..
例小弟宣告一個陣列 unsigned char data[8]; _asm RRF _data[0],f RRF _data[1],f ..... _endam 在inline asm 中..要如何使用 C18 宣告的變數??? 謝謝...
發表於: 2008/8/20 12:09
|
|||
|
Re: 請問union奇怪的用法?
|
||||
---|---|---|---|---|
高級會員
|
change(temp_16);
temp_16 是 int 型態... void change(union dt j) -->union 型態 { x[1]=j.a_b[1]; x[0]=j.a_b[0]; }
發表於: 2008/8/20 12:06
Edited by Blake on 2008年08月20日 12:40:48
|
|||
|