• slider image 442
  • slider image 497
  • slider image 498
  • slider image 499
  • slider image 500
  • slider image 502
:::


Browsing this Thread:   1 Anonymous Users






Re: 請問一下,MPLAB 8.3 燒錄設定
#5
版主
版主


查看用戶資訊
還沒試過用 Hi-Tech PICC 寫 PIC16F877 的設定。最近有用 Hi-Tech PICC 寫 PIC16F1937 的 COnfiguration Bits,其設定如下:
// ************ 設定 PIC16F1937 Configuration Bits  ******
// 有關此設定的定義字請參考 pic16f1937.h 檔的說明
//
__CONFIG  FOSC_INTOSC WDTE_OFF PWRTE_ON MCLRE_ON CP_OFF BOREN_ON CLKOUTEN_ON
           
IESO_OFF FCMEN_OFF); 
__CONFIG2 FCMEN_OFF VCAPEN_OFF PLLEN_ON STVREN_OFF BORV_27 LVP_OFF);


因為 PIC16F877 有兩個 CONFIG Words,而 BOR 電壓的社電設在 CONFIG2 的,所以請將 CONFIG1 與 CONFIG2 的參數設定各歸其位,請分成兩的 _ _ CONFIG 來設定。

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


Re: 請問一下,MPLAB 8.3 燒錄設定
#4
資深會員
資深會員


查看用戶資訊
參照:

Ryang 寫道:
如過對 PIC16F886 的 Configuration Bits 有設定上的問題,建議參考一下201_ASP 中文版的教育訓練教材。

http://www.microchip.com.tw/modules/w ... nglefile.php?cid=4&lid=68

Example on Slide page 37:
__CONFIG _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOR_ON & _IESO_OFF & _FCMEN_OFF & _LVP_OFF & _DEBUG_ON ;
__CONFIG _CONFIG2, _WRT_OFF & _BOR40V;


__CONFIG 設定 Configuration Words 的 Macro 指令

_CONFIG1 : 位址 0x2007 的 Configuration Word
_CONFIG2 : 位址 0x2008 的 Configuration Word

其餘的參數選項須參考 p16f887.inc 裡的定義與 Data Sheet 的說明。


版主您好

我想請問 關於 PIC16F887 的FUSE設定

(In HI-TECH C Compiler)

裡面 BOR Setting:

__CONFIG(INTIO & MCLREN & WDTDIS & BORV21);

BORV21

這個選項 似乎都不會起作用

In the Configuration Bits window,the value of BOR4V is always "Brown out at 4.0V ",not 2.1V.

請問 這是為何 ???

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


Re: 請問一下,MPLAB 8.3 燒錄設定
#3
版主
版主


查看用戶資訊
如過對 PIC16F886 的 Configuration Bits 有設定上的問題,建議參考一下201_ASP 中文版的教育訓練教材。

http://www.microchip.com.tw/modules/w ... nglefile.php?cid=4&lid=68

Example on Slide page 37:
__CONFIG _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOR_ON & _IESO_OFF & _FCMEN_OFF & _LVP_OFF & _DEBUG_ON ;
__CONFIG _CONFIG2, _WRT_OFF & _BOR40V;


__CONFIG 設定 Configuration Words 的 Macro 指令

_CONFIG1 : 位址 0x2007 的 Configuration Word
_CONFIG2 : 位址 0x2008 的 Configuration Word

其餘的參數選項須參考 p16f887.inc 裡的定義與 Data Sheet 的說明。

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


Re: 請問一下,MPLAB 8.3 燒錄設定
#2
資深會員
資深會員


查看用戶資訊
石英接在 RC0 , RC1 ; 那是 TIMER 1 的外部振盪 , 與 CONFIGUARE 無關
致於 Configuration bits set in code 是否需要打勾 ? 就看程式有無設置而定 , 外人無從得知

有無設置config 端看主程式的前幾行 有沒有以 config 開頭的敘述 就知道

如果只有 hex 檔 , 則看 2007h , 2008h 有無資料 ......

發表於: 2009/10/22 23:21

Edited by Ryang on 2009年10月23日 16:04:35
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請問一下,MPLAB 8.3 燒錄設定
#1
新會員
新會員


查看用戶資訊
各位先進,想請問一下,我想用MPLAB 8.3燒錄PIC16F886.
用的是外掛的32.768Khz震盪器,接在RC0 & RC1上,但是不知道怎設定燒錄. 請問有人設定過configuration bit嗎?
另外在MPLAB設定畫面上有個Configuration bits set in code,這個需要打勾嗎??

Thanks for your reply.

BR.

發表於: 2009/10/22 19:19
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... ]

教育訓練中心

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