Kann mir noch immer nicht erklären wieso INTRC unter fuses nicht erkannt
wird.
Hab im Header-File meines PIC steht eindeutig etwas über einen internen
Oszillator RC (ab Zeile 338).
1 | ////////////////////////////////////////////////////////////////// INTERNAL RC
|
2 | // Constants used in setup_oscillator() are:
|
3 | // First param:
|
4 | #define OSC_31KHZ 0
|
5 | #define OSC_125KHZ 0x10
|
6 | #define OSC_250KHZ 0x20
|
7 | #define OSC_500KHZ 0x30
|
8 | #define OSC_1MHZ 0x40
|
9 | #define OSC_2MHZ 0x50
|
10 | #define OSC_4MHZ 0x60
|
11 | #define OSC_8MHZ 0x70
|
12 | #define OSC_16MHZ 0x4060
|
13 | #define OSC_32MHZ 0x4070
|
14 | // The following may be OR'ed in with the above using |
|
15 | #define OSC_TIMER1 1
|
16 | #define OSC_INTRC 2
|
17 | #define OSC_NORMAL 0
|
18 | // The following may be OR'ed in with the above using |
|
19 | #define OSC_IDLE_MODE 0x80
|
20 | #define OSC_31250 0x8000
|
21 | #define OSC_PLL_ON 0x4000
|
22 | #define OSC_PLL_OFF 0
|
23 | // A second optional parameter may be used with this part to fine
|
24 | // tune the speed (signed int,0-31)
|
25 | // Result may be (ignore all other bits)
|
26 | #define OSC_STATE_STABLE 4
|
27 | #define OSC_STATE_EXT_RUNNING 8
|
Auch im Datasheet des PIC 's 18f4550 steht, dass ein interner Oszillator
RC vorhanden ist.
Wahrscheinlich hab ich im CCS C Programm etwas falsch geschrieben.
Hoffe auf kompetent Antworten: