1. 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.
    Dismiss Notice

Enabling HSPLL (10 mhz x 4 PLL for 40mhz)

Discussion in 'Oshonsoft' started by Artistguy, Mar 29, 2011.

  1. Artistguy

    Artistguy New Member

    Joined:
    Mar 29, 2011
    Messages:
    1
    Likes:
    0
    I have written Oshon but have not gotten a reply yet.

    I read a post dated 2007 or 2008 elsewhere on another forum that PICSimulator IDE incorrectly fathoms timings and such when the chip is running 40mhz via PLL (10mhz Resonator/Crystal with internal 4x PLL engaged).

    My questions are twofold (using a PIC18F2520, and PICSimulator18 IDE)

    1. How would one enable the HSPLL in code (just choosing 40mhz won't do that, will it?)

    2a. Does anyone know if that PLL bug has been fixed? And how can I verify if not? (Still just learning the interrupts and timers myself, so not good at counting clocks just yet)

    2b. If it is not fixed, any workarounds I can do..perhaps by generating an assembly listing to be compiled into Hex in MPLAB, and adjusting certain parts before compiling?

    Thanks, Robert
     

Share This Page