Board & configuration
1 · What is fitted on OSC1 / OSC2
Frequency
Datasheet advice: REXT 3–100 kΩ, CEXT > 20 pF. The frequency below is approximate: it shifts with VDD, temperature and from chip to chip.
2 · Oscillator mode in the configuration word (FOSC1:FOSC0)
Circuit
Oscilloscope
What the numbers mean
Instruction cycle = 4 oscillator periods
Q1PC + 1
Q2read data
Q3process
Q4write · latch next instr.
The four modes
| Mode | Range | Amplifier | Use |
|---|---|---|---|
| LP | 32–200 kHz | lowest gain | 32.768 kHz watch crystal, lowest power |
| XT | 100 kHz–4 MHz | medium gain | common crystals and resonators |
| HS | 4–20 MHz | highest gain | fast crystals, highest current |
| RC | up to 4 MHz | no amplifier | cheapest, least accurate; OSC2 = CLKOUT |