• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::

論壇索引


Board index » All Posts (Blake)




關於TDS轉換
#21
高級會員
高級會員


請問是否有人知道關於水質TDS檢測的轉換?
就讀取的電壓值如何轉換成ppm的? 謝謝!!

發表於: 2009/9/17 10:17
頂部


Re: 請教 AN734 有關 I2C 的問題..
#22
高級會員
高級會員


參照:

Ryang 寫道:
參照:
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時,則必須再準備下一筆資料傳送..我的想法對嗎?

錯。
若 Data 是從 Master 送出的,則該筆的 ACN/NAK 會是由 Slave 回傳的。I2C 的 SDA 是雙向的,且有Handshake 的協定。



謝謝板大...
因為Master端是用 89S52 的 IO 去寫的..然後Slave端要用PIC的SSP模組..還要實現1對多的通訊...所以必須搞清楚一些信號..
如果都可以用PIC的話,就不用這麼麻煩了..無奈~

再請教板大...
Master 寫入資料到 Slave 時,Data 是從Master 送出的,
則該筆的ACK/NAK會是由Slave回應的..由Master產生第9個Pulse讀入ACK/NAK...這樣想正確吧?

那Master 在讀取 Slave 資料時, Data 不是從 Slave 送出的嗎? 然後ACK/NAK變成由Master告知Slave是否還要繼續讀取資料...感覺這樣想還滿合理的..我再想辦法Try看看..

發表於: 2009/8/19 1:01
頂部


請教 AN734 有關 I2C 的問題..
#23
高級會員
高級會員


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遇上的一些問題請教!!謝謝
#24
高級會員
高級會員


小弟想將程式由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
頂部


請教頻率切換問題?
#25
高級會員
高級會員


各位先進..
因考慮到lcm繪圖速度跟耗電量..
想說在平常時用8M來執行..
但在繪圖時則切換成16M來執行?..這樣做是否可行?
因為頻率切換..那平時計時的值不就會整個亂掉?
是否有比較好的做法?

發表於: 2008/11/19 17:39
頂部


Re: 有人用過 聯詠 NT7553E LCD Controller 嗎?
#26
高級會員
高級會員


謝謝版大..
這個是客戶指定的..160x160點,有sleep模式,低耗電..
看來還是得乖乖的看spec.慢慢try了....

發表於: 2008/9/5 9:19
頂部


有人用過 聯詠 NT7553E LCD Controller 嗎?
#27
高級會員
高級會員


是否能提供小弟一些 demo 程式參考..
用google搜尋..沒找到有用的資料..
上聯詠的網站..好像只針對他們的客戶有提供一些服務
其它也沒什麼東西可以參考的..這顆是很冷門嗎?

小弟公司規模不大...什麼東西都要自己看spec.
自已寫副程式..真的是很累的一件事..有些真的是看的霧煞煞..
抱著一絲絲希望..看能不能減輕一點負擔...謝謝~

發表於: 2008/9/4 14:45
頂部


Re: 請教C18 inline asm 問題
#28
高級會員
高級會員


版大...
我發現原來是我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 問題
#29
高級會員
高級會員


請教 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奇怪的用法?
#30
高級會員
高級會員


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
頂部



« 1 2 (3) 4 5 6 ... 13 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------