Gast
#3417849
Grüßt euch, ich benutze zum ersten Mal den internen Oszillator eines PIC18F14K50. Wenn ich mir das Blockschema auf Seite 16 des Datasheets (http://ww1.microchip.com/downloads/en/DeviceDoc/41350E.pdf) angucke, sieht es so aus als würden bei FOSC<3:0> = FOSC_IRC immer 8MHz abgegriffen, unabhängig von IRCF. Weiter unten steht jedoch 32 MHZ INTERNAL OSCILLATOR FREQUENCY SELECTION The Internal Oscillator Block can be used with the 4X PLL associated with the External Oscillator Block to produce a 32 MHz internal system clock source. The following settings are required to use the 32 MHz inter- nal clock source: • TheFOSCbitsinCONFIG1Hmustbesettouse the INTOSC source as the device system clock (FOSC<3:0> = 1000 or 1001). • TheSCSbitsintheOSCCONregistermustbe cleared to use the clock determined by FOSC<3:0> in CONFIG1H (SCS<1:0> = 00). • TheIRCFbitsintheOSCCONregistermustbe set to the 8 MHz HFINTOSC set to use (IRCF<2:0> = 110). • TheSPLLENbitintheOSCTUNEregistermust be set to enable the 4xPLL, or the PLLEN bit of CONFIG1H must be progr mmed to a ‘1’. Dies entspricht auch meiner bisherigen Erfahrung, der uC scheint nach POR auf 1MHz zu laufen. Ist das ein Fehler im Datasheet oder in meinem Verständnis? Grüße