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


Browsing this Thread:   3 Anonymous Users






Re: 關於 16f886 Pin 腳設定問題
#5
新會員
新會員


查看用戶資訊
感謝,原來在那裡就能設定了 @@"
一直在想辦法去修改 CONFIG 說,太感謝您了 ^^

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


Re: 關於 16f886 Pin 腳設定問題
#4
中級會員
中級會員


查看用戶資訊
忘了說設定的方式....

選擇功能列的 Configure -> Configuration Bits 開啟設定視窗,

然後,
如果 Configuration Bits set in code 有被選取的話, 取消它,

接著就可以按 Low Voltage Program 為 Enable 的地方去更改了。

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


Re: 關於 16f886 Pin 腳設定問題
#3
中級會員
中級會員


查看用戶資訊
! 要注意 pic16f886 的 RB3 還附加了 LVP 的功能在。

請設定 configuration bits 裡面的 Low Voltage Program 為 Disable,
這樣 LVP (低電壓燒錄) 的功能被除能後, I/O 的功能就會正常了。

Good Luck !

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


Re: 關於 16f886 Pin 腳設定問題
#2
新會員
新會員


查看用戶資訊
剛才發現一個關於 RB3 的設定
CONFIG 裡的 LVT 預設為1,請問 CONFIG 如何去設定呢?

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


關於 16f886 Pin 腳設定問題
#1
新會員
新會員


查看用戶資訊
以下是我對 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
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... ]

教育訓練中心

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