Re: PIC12f675把mclr pin當output使用
|
||||
---|---|---|---|---|
版主
|
參照:
抱歉,看錯以為使用 PIC16F616 之類的元件
發表於: 2009/5/14 11:10
|
|||
|
Re: PIC12f675把mclr pin當output使用
|
||||
---|---|---|---|---|
資深會員
|
/MCLR 再加個10K 電阻 到 VCC ( PULL HIGH )
/MCLR 基本上 並無 A/D 功能 So.... ANSEL 不需 Disable
發表於: 2009/5/14 0:59
|
|||
|
Re: PIC12f675把mclr pin當output使用
|
||||
---|---|---|---|---|
版主
|
參照:
還有 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
|
|||
|
Re: PIC12f675把mclr pin當output使用
|
||||
---|---|---|---|---|
新會員
|
我已經在 MPLAB 的 Configuration Bits 裡面將位址 2007 的值設定為 3FC4,這樣應該就有把 MCLR disable 了吧?
請問除了這個之外,還有需要設定的嗎?
發表於: 2009/5/13 9:52
|
|||
|
Re: PIC12f675把mclr pin當output使用
|
||||
---|---|---|---|---|
資深會員
|
CONFIG 要設 _MCLRE_OFF
發表於: 2009/5/12 22:40
|
|||
|
Re: PIC12f675把mclr pin當output使用
|
||||
---|---|---|---|---|
新會員
|
請問一下,我現在使用的是 PIC16F688,想要將 RA3/MCLR/Vpp 這個 IO port 設定為一般 input port 來使用,配置方面有什麼需要 disable 的嗎?
因為我知道配置有些 IO port 時,其 analog in 的功能要 disable 才能正常使用,那 RA3/MCLR/Vpp 這個 port 呢?
發表於: 2009/5/12 18:06
|
|||
|
Re: PIC12f675把mclr pin當output使用
|
||||
---|---|---|---|---|
資深會員
|
依你的予求 , pic 至少要 14 pin 以上的mcu 才能滿足
試試 16636 or 16f616 之類的
發表於: 2008/12/19 22:49
|
|||
|
Re: PIC12f675把mclr pin當output使用
|
||||
---|---|---|---|---|
高級會員
|
12f675的MCLR從其等效接腳示意圖上來看無法當作輸出埠使用吧,也無法設成輸出埠,就算設了也沒用,倒是可以當輸入埠使用
發表於: 2008/12/19 19:11
|
|||
|
PIC12f675把mclr pin當output使用
|
||||
---|---|---|---|---|
新會員
|
如標題!
之前有看過一篇把有weak pull up功能的MCLR接腳當輸出埠使用! 可12f675 MCLR接腳無 weak pull up,請問有辦法讓它為輸出部嗎? 需要3個a/d,3個output及有timer 中斷功能的mcu.
發表於: 2008/12/19 10:47
|
|||
|