Re: 關於 16f886 Pin 腳設定問題
|
||||
---|---|---|---|---|
新會員
|
感謝,原來在那裡就能設定了 @@"
一直在想辦法去修改 CONFIG 說,太感謝您了 ^^
發表於: 2007/10/9 17:24
|
|||
|
Re: 關於 16f886 Pin 腳設定問題
|
||||
---|---|---|---|---|
中級會員
|
! 要注意 pic16f886 的 RB3 還附加了 LVP 的功能在。
請設定 configuration bits 裡面的 Low Voltage Program 為 Disable, 這樣 LVP (低電壓燒錄) 的功能被除能後, I/O 的功能就會正常了。 Good Luck !
發表於: 2007/10/9 17:06
|
|||
|
Re: 關於 16f886 Pin 腳設定問題
|
||||
---|---|---|---|---|
新會員
|
剛才發現一個關於 RB3 的設定
CONFIG 裡的 LVT 預設為1,請問 CONFIG 如何去設定呢?
發表於: 2007/10/9 17:06
|
|||
|
關於 16f886 Pin 腳設定問題
|
||||
---|---|---|---|---|
新會員
|
以下是我對 886 下的初始設定, PORTA 與 PORTC 都正常
但是當 PORTB 的設定一進來時,就開始有問題 後來把 PORTB 的 RB3 接地後,功能都正常了 DataSheet 看不出是那裡的問題,請問有人知道是什麼狀況嗎,謝謝 ANSEL =0b00000000; TRISA =0b00000000; PORTA =0b00011111; ANSELH =0b00000000; TRISB =0b11111011; IOCB =0b11111011; WPUB =0b11111011; PORTB =0b11111011; OPTION =0b00000011; TRISC =0x00000000; PORTC =0b00001001;
發表於: 2007/10/9 16:06
|
|||
|