• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   2 Anonymous Users






Re: PIC12f675把mclr pin當output使用
#10
資深會員
資深會員


查看用戶資訊
引言:

Ryang 寫道:
引言:

EddieChiu 寫道:
我已經在 MPLAB 的 Configuration Bits 裡面將位址 2007 的值設定為 3FC4,這樣應該就有把 MCLR disable 了吧?

請問除了這個之外,還有需要設定的嗎?


還有 ANSEL 暫存器也要設定,將不要用的 AD 輸入功能關閉,這樣才會顯現出I/O 功能。
Data Sheet 的說明:
The ANSEL register is used to configure the Input
mode of an I/O pin to analog. Refer to Register 4-3.
Setting the appropriate ANSEL bit high will cause all
digital reads on the pin to be read as ‘0’ and allow
analog functions on the pin to operate correctly.


抱歉,看錯以為使用 PIC16F616 之類的元件


版主 不用心 ..........
就我經驗 /MCLR 如用為 I/O , 都是只有 INPUT 功能 , 且無 WEAK PULL UP ; 不知有無例外 , 還望高人前輩告知

So... 要加 PULL UP 電阻
( 如接到地 應該會影響 燒錄 ........)

近來 有 產品研討會 版主您辛苦了......

發表於: 2009/5/15 0:14
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC12f675把mclr pin當output使用
#9
版主
版主


查看用戶資訊
參照:

Ryang 寫道:
參照:

EddieChiu 寫道:
我已經在 MPLAB 的 Configuration Bits 裡面將位址 2007 的值設定為 3FC4,這樣應該就有把 MCLR disable 了吧?

請問除了這個之外,還有需要設定的嗎?


還有 ANSEL 暫存器也要設定,將不要用的 AD 輸入功能關閉,這樣才會顯現出I/O 功能。
Data Sheet 的說明:
The ANSEL register is used to configure the Input
mode of an I/O pin to analog. Refer to Register 4-3.
Setting the appropriate ANSEL bit high will cause all
digital reads on the pin to be read as ‘0’ and allow
analog functions on the pin to operate correctly.


抱歉,看錯以為使用 PIC16F616 之類的元件

發表於: 2009/5/14 11:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC12f675把mclr pin當output使用
#8
資深會員
資深會員


查看用戶資訊
/MCLR 再加個10K 電阻 到 VCC ( PULL HIGH )
/MCLR 基本上 並無 A/D 功能 So.... ANSEL 不需 Disable

發表於: 2009/5/14 0:59
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC12f675把mclr pin當output使用
#7
版主
版主


查看用戶資訊
參照:

EddieChiu 寫道:
我已經在 MPLAB 的 Configuration Bits 裡面將位址 2007 的值設定為 3FC4,這樣應該就有把 MCLR disable 了吧?

請問除了這個之外,還有需要設定的嗎?


還有 ANSEL 暫存器也要設定,將不要用的 AD 輸入功能關閉,這樣才會顯現出I/O 功能。
Data Sheet 的說明:
The ANSEL register is used to configure the Input
mode of an I/O pin to analog. Refer to Register 4-3.
Setting the appropriate ANSEL bit high will cause all
digital reads on the pin to be read as ‘0’ and allow
analog functions on the pin to operate correctly.

發表於: 2009/5/13 10:16
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC12f675把mclr pin當output使用
#6
新會員
新會員


查看用戶資訊
我已經在 MPLAB 的 Configuration Bits 裡面將位址 2007 的值設定為 3FC4,這樣應該就有把 MCLR disable 了吧?

請問除了這個之外,還有需要設定的嗎?

發表於: 2009/5/13 9:52
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC12f675把mclr pin當output使用
#5
資深會員
資深會員


查看用戶資訊
CONFIG 要設 _MCLRE_OFF

發表於: 2009/5/12 22:40
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC12f675把mclr pin當output使用
#4
新會員
新會員


查看用戶資訊
請問一下,我現在使用的是 PIC16F688,想要將 RA3/MCLR/Vpp 這個 IO port 設定為一般 input port 來使用,配置方面有什麼需要 disable 的嗎?
因為我知道配置有些 IO port 時,其 analog in 的功能要 disable 才能正常使用,那 RA3/MCLR/Vpp 這個 port 呢?

發表於: 2009/5/12 18:06
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC12f675把mclr pin當output使用
#3
資深會員
資深會員


查看用戶資訊
依你的予求 , pic 至少要 14 pin 以上的mcu 才能滿足

試試 16636 or 16f616 之類的

發表於: 2008/12/19 22:49
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC12f675把mclr pin當output使用
#2
高級會員
高級會員


查看用戶資訊
12f675的MCLR從其等效接腳示意圖上來看無法當作輸出埠使用吧,也無法設成輸出埠,就算設了也沒用,倒是可以當輸入埠使用

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


PIC12f675把mclr pin當output使用
#1
新會員
新會員


查看用戶資訊
如標題!

之前有看過一篇把有weak pull up功能的MCLR接腳當輸出埠使用!

可12f675 MCLR接腳無 weak pull up,請問有辦法讓它為輸出部嗎?

需要3個a/d,3個output及有timer 中斷功能的mcu.

發表於: 2008/12/19 10:47
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... ]

教育訓練中心

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