/* 
 * File:   configbitsrev2014vSarah.h
 * Author: Sarah
 *
 * Created on October 13, 2014, 2:12 PM
 */

#ifndef CONFIGBITSREV2014VSARAH_H
#define	CONFIGBITSREV2014VSARAH_H

#pragma config FNOSC = FRCPLL // Oscillator selection - Internal Fast RC oscillator (8MHz) w/ PLL
#pragma config POSCMOD = OFF // Primary oscillator mode
#pragma config FPLLIDIV = DIV_2 // PLL input divider (8MHz -> 4MHz)
#pragma config FPLLMUL = MUL_20 // PLL multiplier  ( 4x20 = 80MHz)
#pragma config FPLLODIV = DIV_1 // PLL output divider (80MHz)
#pragma config FPBDIV = DIV_4 // Peripheral bus clock divider (10 MHz)
#pragma config FSOSCEN = OFF // Secondary oscillator disabeled
/* Clock control settings
*/
#pragma config IESO = ON // Internal/external clock switchover
#pragma config FCKSM = CSECME // Clock switching (CSx)/Clock monitor (CMx)
#pragma config OSCIOFNC = OFF // Clock output on OSCO pin enable
/* USB Settings
*/
#pragma config UPLLEN = OFF // USB PLL enable
#pragma config UPLLIDIV = DIV_2 // USB PLL input divider
#pragma config FVBUSONIO = OFF // VBUS pin control
#pragma config FUSBIDIO = OFF // USBID pin control
/* Other Peripheral Device settings
*/
#pragma config FWDTEN = OFF // Watchdog timer enable
#pragma config WDTPS = PS1024 // Watchdog timer post-scaler
#pragma config FSRSSEL = PRIORITY_7 // SRS interrupt priority
#pragma config DEBUG = ON

/*PWM Settings (added by Sarah: 2/12/15)
 */

//#pragma config ICESEL = ICS_PGx1 // ICE/ICD Comm Channel Select


#endif	/* CONFIGBITSREV2014VSARAH_H */

