SOLVED thanks... see below
Hey everyone! I am doing a PIC32 project and need a routine to run very fast, so I need to setup the PIC for 80 Mhz.
I am using a PIC32MX320F128H, I looked in that datasheet to investigate the PLL and how to achieve 80 Mhz. It basically states that if I am using a 8Mhz external crystal, I need to divide that by 2 and multiply it by 20 to get 80 Mhz, which is understandable. So I configured the Config bits for PLL divide by 2 x20 and such.
How do I know its not at 80Mhz? The routine I set up takes 6ms at 80Mhz when using the MPLAB C32 IDE debugger in simulation. When I program a chip to run this on a test board, and time it with an oscilloscope, it takes 32ms. All the routine does is pulse a pin, do a function and pulse the same pin when its done... Easy to single sequence on the scope.
Any ideas??? Thanks!
Hey everyone! I am doing a PIC32 project and need a routine to run very fast, so I need to setup the PIC for 80 Mhz.
I am using a PIC32MX320F128H, I looked in that datasheet to investigate the PLL and how to achieve 80 Mhz. It basically states that if I am using a 8Mhz external crystal, I need to divide that by 2 and multiply it by 20 to get 80 Mhz, which is understandable. So I configured the Config bits for PLL divide by 2 x20 and such.
How do I know its not at 80Mhz? The routine I set up takes 6ms at 80Mhz when using the MPLAB C32 IDE debugger in simulation. When I program a chip to run this on a test board, and time it with an oscilloscope, it takes 32ms. All the routine does is pulse a pin, do a function and pulse the same pin when its done... Easy to single sequence on the scope.
Any ideas??? Thanks!
Last edited: