EXT RC on 18F1320

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 to
PigPOg
Loading thread data ...

Reply to
PigPOg

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.