Reply by PigPOg July 5, 20062006-07-05
Please ignore, found the problem - emulator not set correctly.
Simon

On Wed, 05 Jul 2006 10:11:19 +0100, PigPOg <simon@capella.co.uk>
wrote:

>Can anyone advise please? > >I written a simple prog for an 18F1320 using an RC network (62K+100pF) >giving an fosc of approx 100KHz. I've flashed a device and the program >runs perfectly with the correct fosc/4 (25KHz) waveform on RA6/OSC2. > >Now, if I replace the 18F1320 with a MPLAB ICE2000, PCM18XJO and >DVA18XP180 and execute from within MPLAB IDE (V7.31), RA6/OSC2 has a >frequency of approx 1MHz with ringing on the leading edge. > >It seems obvious that I haven't got the emulation hardware set up >correctly. I think I can work around this by setting the config bit to >EC mode and clocking externally but I'd rather use my RC network. > >Any ideas? >Thanks, >Simon
Reply by PigPOg July 5, 20062006-07-05
Can anyone advise please? 

I written a simple prog for an 18F1320 using an RC network (62K+100pF)
giving an fosc of approx 100KHz. I've flashed a device and the program
runs perfectly with the correct fosc/4 (25KHz) waveform on RA6/OSC2. 

Now, if I replace the 18F1320 with a MPLAB ICE2000, PCM18XJO and
DVA18XP180 and execute from within MPLAB IDE (V7.31), RA6/OSC2 has a
frequency of approx 1MHz with ringing on the leading edge. 

It seems obvious that I haven't got the emulation hardware set up
correctly. I think I can work around this by setting the config bit to
EC mode and clocking externally but I'd rather use my RC network. 

Any ideas? 
Thanks, 
Simon