Issue with flowchart is you have left the osc speed set to 19.66MHz, yet internal osc will only run at: So there is a mismatch.
This means that your microcontroller is running very slow, so delay will take much longer than the 200ms value
I'm surprised that LCD was working at all!
The Clockout is an output function and only produces a waveform of clock/4
so if clock is set at 8MHz then at clockout pin you should see 8MHz/4 = 2MHz
The flowchart I posted in the above post should work on the fastest speed (8MHz).
How I derived osccon (placed at the very top of Main macro) value of:
Code: Select all
osccon=0x70;
http://www.matrixmultimedia.com/mmforum ... 29&#p28829
Although its for a different target device, the principle will still be the same.
Martin