EXT RC on 18F1320

Jul 05, 2006 1 Replies

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


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required