Can’t get a crystal to oscillate. LPC2368 has 12MHz crystal, 20pF load capacitance, 60 Ohm ESR (DigiKey X428-ND). 39pF caps to ground, as recommended by the user manual. In the beginning of the program I enable the oscillator (this code comes from the example for LPC2378, which comes with IAR Embedded Workbench):
// 1. Init OSC
SCS_bit.OSCRANGE = 0;
SCS_bit.OSCEN = 1;
// 2. Wait for OSC ready
while(!SCS_bit.OSCSTAT);
Execution hangs on the last line. When I check the crystal with the scope, both sides are at 3.3V.
Any suggestion or insight is greatly appreciated!
- Nick