Do PIC micorcontrollers NEED an external oscillator

microcontrolleroscillatorpic

I'm trying to write my first and a simple program on a pic16LF84, but I'm confused as to whether an external oscillator is required or optional.

I'm reading a pdf called "Book: PIC Microcontrollers Programming in C" and it states:

CLOCK SIGNAL
Even though the microcontroller has a built-in
oscillator, it cannot operate without external components which
stabilize its operation and determine its frequency (operating speed
of the microcontroller). Depending on elements in use as well as their
frequencies, the oscillator can be run in four different modes:
·
LP – Low Power Crystal;
· XT – Crystal / Resonator;
· HS –
High speed Crystal / Resonator; and
· RC – Resistor / Capacitor.

^It's actually referring to the pic16f887.

I just want to make a simple LED blinker and ADC, so do I need an external oscillator?

Best Answer

Yes, the 16F84 does need an external oscillator. It is a very old PIC.

However almost all of the newer PICs have an Internal RC Oscillator that can be selected, which will be mentioned in the datasheet.

I would really consider getting hold of a newer PIC, something like a 16F690, or 16F1824/16F1828. These are far more current, and can do anything the 16F84 can do and much more.

If you want to use your 16F84 though, either use an external clock (e.g. from 555 timer or oscillator based on e.g. an inverting gate with RC or crystal) or crystal as specified in the datasheet, or if you don't have an external clock or crystal use the RC option.

RC osc