PIC16F819

PIC16F819 – Datenblatt – Microchip

interne Oszillator Konfiguration

/*
OSCCON - internal Oscillator Register
=====================================
Bit Nr	Bit7	Bit6	Bit5	Bit4	Bit3	Bit2	Bit1	Bit0
Name	-	IRCF2	IRCF1	IRCF0	-	IOFS	-	-
I/O	-	R/W	R/W	R/W	-	R	-	-
Default	0	0	0	0	0	0	0	0
Project -	1	1 	0 	-	-	-	-

IRCF2:IRCF0: Internal Oscillator Frequency Select bits
111 = 8 MHz (8 MHz source drives clock directly)
110 = 4 MHz
101 = 2 MHz
100 = 1 MHz
011 = 500 kHz
010 = 250 kHz
001 = 125 kHz
000 = 31.25 kHz (INTRC source drives clock directly)

IOFS: INTOSC Frequency Stable bit
1 = Frequency is stable
0 = Frequency is not stable
*/

OSCCON = 0b01100000; // 4 MHz Clock