For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.
I have a problem now with the external oscillator. I use exactly the same 10Mhz oscillator I use on 18F family.
I think I set all the necessary fuse in the configuration menu but to have the good timing, I have to set 4 Mhz in the project menu.
The oscillator on the PIC24 devices is particularly complicated. In addition to the CONFIG fuses, there are programmable registers that affect initial calculations and allow changes to be made during program execution.
Your 4MHz estimation does not relate easily to the 10MHz xtal, but is one of the internal FRC clock frequencies. If possible, you could remove the xtal and see if the program still runs (confirming selection of the correct clock source).
Alternatively, you could post a simple LED flasher program on the forum, with a description of the timings you are observing, and see if anyone can check the settings.
Please post up your Flowcode file and I will have a look at your config settings for you. Could be you also need to write to the oscillator control registers at the start of your program if your using the onboard PLL.
On the dsPIC and PIC24 devices I think the XT oscillator type will run crystal frequencies up to 10MHz and HS will allow crystals over 10MHz.