• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






Re: ADRESH和ADRESL
#9
初級會員
初級會員


查看用戶資訊
拍謝~~
可以再請教一下嗎?
我現在不想存到RAM,而想存到PIC16F877的EEPROM內這該如何做呢?

我目前是想將A/D的結果10bit(共有4個A/D結果,4個接腳輸入),存到單晶片的記憶體內....不知道有沒有什麼方法
也就是說,我現在想先把它存起來,再到MPLAB IDE裡面去用READ的功能去看記憶體內的資料,這樣可以嗎?

抱歉啦~~新手問題可能有點好笑,請多包涵

發表於: 2005/10/18 23:23
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ADRESH和ADRESL
#8
高級會員
高級會員


查看用戶資訊
nicecookie所寫的那個範例就是把AD轉換的結果寫到RAM裡了
基本上我們每宣告一個變數它都會在記憶體佔個空間
所以你要的就是這樣的功能的話就如前一個範例所示就可以得到結果囉

發表於: 2005/10/12 10:39
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ADRESH和ADRESL
#7
初級會員
初級會員


查看用戶資訊
請問原PO或是網上的各位前輩,可以對原PO的問題解決方法
做個詳細的解說嗎?
就是把AD的值儲存在記憶體中

對不起~~我真的是新手中的新手

發表於: 2005/10/11 23:08
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ADRESH和ADRESL
#6
資深會員
資深會員


查看用戶資訊
example,



int adc_value;

adc_value = ReadADC();

發表於: 2005/9/27 11:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ADRESH和ADRESL
#5
初級會員
初級會員


查看用戶資訊
sorry~~我也是新手
請問一下你所指的讀出來是讀出來到哪裡呢?

懇請賜教

發表於: 2005/9/27 11:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ADRESH和ADRESL
#4
高級會員
高級會員


查看用戶資訊
謝謝你們的回答

不過我發現是不是用這個指令就可以把10bit的值讀出來了呢

ReadADC()

發表於: 2005/8/9 9:34
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ADRESH和ADRESL
#3
資深會員
資深會員


查看用戶資訊
ADRESH跟ADRESL哪個放8位元哪個放2位元
是跟設定要向左靠齊或向右靠齊有關

但是一般如果不想自找麻煩的話
要用10位元就選向右靠齊
此時ADRESH放上2位元,ADRESL放下8位元
000000AB               CDEFGHIJ

而如果只想用8位元就選向左靠齊
此時ADRESH放上8位元,ADRESL放下2位元
ABCDEFGH               IJ000000

雖然他仍然是做10位元AD轉換
但只要取ADRESH上八位元,ADRESL別管他
就可以當作8位元AD轉換了

發表於: 2005/8/8 18:14
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ADRESH和ADRESL
#2
高級會員
高級會員


查看用戶資訊
ADRESH(2 Bit) + ADRESL (8 Bit) = 10 Bit

如果要存取完整的10 Bit 必須分兩次存取..

或用向左向右對齊來處理...

發表於: 2005/8/8 17:27
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


ADRESH和ADRESL
#1
高級會員
高級會員


查看用戶資訊
請教一下哦

在有支援AD(10bit)的MCU裡
都有用到ADRESH和ADRESL兩個暫存器
他們是ADRESH是高位元的兩個bit
而ADRESL是低位元的8個bit嗎
還是是什麼意思呢
如果我想要把AD轉換出來的結果存到MCU內建的RAM裡
我是應該用那一個暫存器的值能存到完整的結果呢

請高手們不吝指教囉

發表於: 2005/8/8 17:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

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... ]

教育訓練中心

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