PIC16F88x コンフィグレーションビット (HI-TECH C)

9月 14th, 2009 tocmoc

HI-TECH Cで,PIC16F88X系を使うときコンフィグレーションビットに指定できる文字列.のメモ.

C:
  1. //****************************************************************************************
  2. //                    CONFIGURATION BITS PIC16F88X
  3. //****************************************************************************************
  4.  
  5. // Configuration register 1
  6. /* osc configurations         - EXTCLK, EXTIO, INTCLK, INTIO, EC, ECCLKO, HS, XT, LP*/
  7. /* watchdog Timer WDTEN,  WDTDIS       - enable / disable watchdog timer*/
  8. /* power up timer PWRTEN, PWRTDIS       - enable / disable power up timer*/
  9. /* Master Clear Enable MCLREN, MCLRDIS    - MCLR Enabled & RE3 Disabled , MCLR Disabled & RE3 Enabled*/
  10. /* Code Protection  UNPROTECT, CP        - Do not protect code, Protect Code */   
  11. /* EE Read Protection  DUNPROTECT, CPD - Do not protect code, Protect Code */   
  12. /* Brownout Control BOREN, BORNXSLP, SWBOREN, BORDIS*/
  13. /* Internal External Switch Over Mode IESOEN, IESODIS - enable / disable*/
  14. /* Fail-Safe Clock Monitor Enable FCMEN, FCMDIS       - enable / disable*/
  15. /* Low voltage program enable LVPEN, LVPDIS             - enable / disable*/
  16. /* debug option            DEBUGEN, DEBUGDIS - enable / disable debugger */
  17. // Configuration register 2
  18. /* Brown-out Reset Voltage  BORV21, BORV40   - Volts */
  19. /* Flash Write Protection WP0, WP1, WP2      - Protect block 0, Protect block 1, Protect block 2 */  
  20.  
  21. //  These are set by the Bootloader
  22. //__CONFIG(HS & WDTDIS & PWRTEN & MCLREN & UNPROTECT &  DUNPROTECT & BOREN & IESODIS & FCMDIS & LVPDIS & DEBUGDIS);
  23. //__CONFIG(BORV40);
  24.  
  25.