Prox / RFID
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Resume / Consulting
Contact Me

LDmicro Forum - Internal oscillator question

(you are viewing a thread; or go back to list of threads)

Internal oscillator question (by Terry)
Can I use an internal oscillator in LDmicro if so how?
Thu Nov 29 2018, 15:56:45
(no subject) (by Alex)
Thu Nov 29 2018, 16:22:36
(no subject) (by Tom J.)
An interesting thing that works for me more often than not is forcing LDMicro to re-examine the configuration.

1) Open MCU Parameters
2) Set the frequency to whatever you need it to be
3) Delete the string in PIC Configuration
4) Close MCU Parameters and leave the PIC Configuration blank
5) LDMicro will throw an error message, ignore it.
6) Open MCU Parameters and the PIC Configuration will have changed.


You can also use MPLAB to find the config word and write it into that field manually.

I'm not certain what hardware you are using but my MiniPro software allows me to change config bits before a burn.
Thu Nov 29 2018, 21:44:28
(no subject) (by Ziggy)
May be a better way to think about this is to configure the fuses of the micro to suit your needs externally , outside LDmicro, and then tell LDmicro what clock rate to expect.
Fri Nov 30 2018, 00:16:59
Config word (by Terry)
Thank you for the prompt reply I am a complete novice at this I have attached a photo of the config code shown in the mini pro which bit do I change to use the internal oscillator thankyou again for your help
Fri Nov 30 2018, 13:00:58, download attachment C235F57D-760C-4581-AA38-F73F52E853DE.jpeg
(no subject) (by Tom J.)
it doesn't work like that, you have to go and get the data sheet from the manufacturer and read it to find the configuration bits. the mini pro software is backwards with their check marks, for instance you right now have a configuration of 010 for the oscillator.
Fri Nov 30 2018, 18:47:58
(no subject) (by Tom J.)
Terry, try the method I gave for forcing LDMicro to write the config word first, that's been successful for me but you really should get familiar with the data sheet at some point.

A bit of advice from another novice, write a simple program like blinking an LED with a cyclic on/off on one rung and just do it in all your early versions. That way if the micro isn't working you can verify that it's indeed running and know there's a problem in your ladder and not a power, wiring, or oscillator issue.
If you look at most everything I've written there's a status LED of some type, they get removed in the final version with the exception of my clock where the status is cleverly disguised as the colon on the display.
Sat Dec 1 2018, 03:25:52
Thankyou (by Terry )
Thank you for all your help looks like I need to experiment a bit Thanks again have a good Christmas
Sun Dec 2 2018, 11:58:03
Post a reply to this comment:
Your Name:
Your Email:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):