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


Browsing this Thread:   1 Anonymous Users






Re: PIC16F18855同時使用mTouch 及 ADCC
#4
管理員
管理員


查看用戶資訊
說起來還真不好意思,

標準的MCC libraries確實在 mTouch 這段, 是以獨占的方式處理的.
所以要透過 GUI 直接設定成 mTouch+ADC 確實無法做到.

這時需要對硬體掌握度夠, bare-metal功力又足夠的人才能處理.

看起來大大已經順利破台, 不好意思沒能及時回復你,
實在是因為透過文字, 很難描述...請見諒...

發表於: 2022/9/13 11:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC16F18855同時使用mTouch 及 ADCC
#3
新會員
新會員


查看用戶資訊
真冷清,原廠AE也沒人回覆,mTouch 中文使用手冊 v1008也沒答案,本想放棄使用mTouch,改用專用的觸控IC,
但想到要重新Layout重新做樣板,就花時間多試試了,
幸好還是做得到,測試的結果:
mTouch的Scan Rate Control使用Free Running,
mTouch的程式使用Polling的方式呼叫,
在主程式迴圈裡先判斷ADCON0bits.ADGO是否為0,如果是1就是mTouch正在使用ADC的功能,
當ADGO為0時,先把mTouch的ADCON0、ADCON1、ADCON2、ADCON3儲存起來,
設定要讀取ADC的ADCON0、ADCON1、ADCON2、ADCON3 設定值,
呼叫ADCC_GetSingleConversion函數來讀取ADC值,
恢復mTouch的ADCON0、ADCON1、ADCON2、ADCON3的數值

這樣就可以同時使用mTouch功能又可以讀取其他腳的ADC值了。

Attach file:



jpg  PCB1_Top.jpg (183.77 KB)
75650_631963106598e.jpg 682X675 px

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


Re: PIC16F18855同時使用mTouch 及 ADCC
#2
新會員
新會員


查看用戶資訊
所以在使用mTouch功能後,無法同時使用其它腳的ADC輸入功能嗎?

發表於: 2022/9/7 9:17
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PIC16F18855同時使用mTouch 及 ADCC
#1
新會員
新會員


查看用戶資訊
PIC16F18855使用mTouch的3組觸摸按鍵,使用起來很靈敏,很好用沒問題,但要使用 ADCC時(Basic mode)讀取其他的ADC輸入時,卻會當掉,請問是什麼原因。

發表於: 2022/9/6 15:30
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... ]

教育訓練中心

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