Guest User

configuration_bits.c

a guest
Mar 14th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.83 KB | None | 0 0
  1. /******************************************************************************/
  2. /* Main Files to Include                                                      */
  3. /******************************************************************************/
  4.  
  5. #if defined(__XC)
  6.     #include <xc.h>         /* XC8 General Include File */
  7. #elif defined(HI_TECH_C)
  8.     #include <htc.h>        /* HiTech General Include File */
  9. #endif
  10.  
  11. /* TODO Fill in your config bits here.  Use the configuration bits generator/ */
  12.  
  13. #pragma config FOSC = INTOSCIO      //internal ocsillator
  14. #pragma config WDTE = OFF           //turn off WDT
  15. #pragma config LVP = OFF            //turn off LVP
  16. #pragma config BOREN = ON           //enable brownout reset
  17. #pragma config MCLRE = OFF          //tie MCLR to Vdd, free up
  18. #pragma config CPD = ON             //eprom protect
Advertisement
Add Comment
Please, Sign In to add comment