• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Clock speed error 18LF2520

Can someone put this through the Oshonsoft SIM, please. I can't get the Start up LEDs to flash at 1 sec ON/OFF.
If you are using the internal oscillator, then you have to set the frequency to 4Mhz in OSCCON register.
Define clock_frequency = 4 only tells the compiler what the frequency is to be used in waitus, waitms delays, not to set it.

Latest threads

EE World Online Articles