Continue to Site

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.

  • 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

Status
Not open for further replies.

camerart

Well-Known Member
Hi,
Can someone put this through the Oshonsoft SIM, please. I can't get the Start up LEDs to flash at 1 sec ON/OFF.
Thanks.
Camerart
 

Attachments

  • 18LF2520 INT4MHz SIMPLE SERVO LOOP 160618 1700.bas
    1.4 KB · Views: 331
Hi,
Can someone put this through the Oshonsoft SIM, please. I can't get the Start up LEDs to flash at 1 sec ON/OFF.
Thanks.
Camerart
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.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top