• 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: [問題]PIC16F628A的RA4問題
#5
版主
版主


查看用戶資訊
RA4 加個pull-up電阻(10K) , RA4 是 open drain output 的結構。

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


Re: [問題]PIC16F628A的RA4問題
#4
新會員
新會員


查看用戶資訊
就是因為CMCON已經設成0x07還不能動才讓我confuse
chip也換過一顆了,應該不是不良品

另外,同一根Pin設成input就OK

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


Re: [問題]PIC16F628A的RA4問題
#3
高級會員
高級會員


查看用戶資訊
記得沒錯的話 , CMCON = 0X07
總之看到PIC有類比界面的IO功能時 , 就去看看相關的暫存器要怎麼設定,另外看看IO結構是否為OPEN DRAIN , 是的話要有提昇電阻才能用

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


Re: [問題]PIC16F628A的RA4問題
#2
版主
版主


查看用戶資訊
RA4/T0CKI/CMP2 其中 CMP2 是類比電壓比較器功能,請參考 CMCON 暫存器的設定將比較器關閉,這樣 Digital I/O 功能才會顯現。



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


[問題]PIC16F628A的RA4問題
#1
新會員
新會員


查看用戶資訊
PIC16F628A的RA4是個multiple function的pin腳
RA4/T0CKI/CMP2
我想把他當成一般的I/O pin使用(當成output輸出)
試了幾次都不成功\r

請教各位版上的先進,我該如何正確設定這根Pin腳?

我使用的軟體是MPLAB7.0+PICC 8.05 PL2

發表於: 2005/1/10 10:21
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... ]

教育訓練中心

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