PIC16F88x コンフィグレーションビット (HI-TECH C)
HI-TECH Cで,PIC16F88X系を使うときコンフィグレーションビットに指定できる文字列.のメモ.
C:
-
//****************************************************************************************
-
// CONFIGURATION BITS PIC16F88X
-
//****************************************************************************************
-
-
// Configuration register 1
-
/* osc configurations - EXTCLK, EXTIO, INTCLK, INTIO, EC, ECCLKO, HS, XT, LP*/
-
/* watchdog Timer WDTEN, WDTDIS - enable / disable watchdog timer*/
-
/* power up timer PWRTEN, PWRTDIS - enable / disable power up timer*/
-
/* Master Clear Enable MCLREN, MCLRDIS - MCLR Enabled & RE3 Disabled , MCLR Disabled & RE3 Enabled*/
-
/* Code Protection UNPROTECT, CP - Do not protect code, Protect Code */
-
/* EE Read Protection DUNPROTECT, CPD - Do not protect code, Protect Code */
-
/* Brownout Control BOREN, BORNXSLP, SWBOREN, BORDIS*/
-
/* Internal External Switch Over Mode IESOEN, IESODIS - enable / disable*/
-
/* Fail-Safe Clock Monitor Enable FCMEN, FCMDIS - enable / disable*/
-
/* Low voltage program enable LVPEN, LVPDIS - enable / disable*/
-
/* debug option DEBUGEN, DEBUGDIS - enable / disable debugger */
-
// Configuration register 2
-
/* Brown-out Reset Voltage BORV21, BORV40 - Volts */
-
/* Flash Write Protection WP0, WP1, WP2 - Protect block 0, Protect block 1, Protect block 2 */
-
-
// These are set by the Bootloader
-
//__CONFIG(HS & WDTDIS & PWRTEN & MCLREN & UNPROTECT & DUNPROTECT & BOREN & IESODIS & FCMDIS & LVPDIS & DEBUGDIS);
-
//__CONFIG(BORV40);
-
-
Leave a Reply