Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************/
- /*Files to Include */
- /******************************************************************************/
- #if defined(__XC)
- #include <xc.h> /* XC8 General Include File */
- #elif defined(HI_TECH_C)
- #include <htc.h> /* HiTech General Include File */
- #endif
- #include <stdint.h> /* For uint8_t definition */
- #include <stdbool.h> /* For true/false definition */
- #include "system.h"
- #pragma config FOSC = INTOSCIO //internal ocsillator
- #pragma config WDTE = OFF //turn off WDT
- #pragma config LVP = OFF //turn off LVP
- #pragma config BOREN = ON //enable brownout reset
- #pragma config MCLRE = ON //tie MCLR to Vdd, free up
- #pragma config CPD = ON //eprom protect
- /* Refer to the device datasheet for information about available
- oscillator configurations. */
- void ConfigureOscillator(void)
- {
- OSCCON = 0b01110100; //8mhz stable
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement