| Swordfish Code Snippet - External Oscillator and PLL |
|
|
| Saturday, 04 April 2009 10:15 | |
|
The fastest a 16F PIC micro can run is 5 Million Instructions Per Second (MIPS), almost every 18F PIC micro can run at 10 MIPS, some more. Here's an extract from an 18F datasheet;
for frequencies up to 10 MHz. A PLL then multiplies the oscillator output frequency by 4 to produce an internal clock frequency up to 40 MHz."
Device = 18F458 Clock = 40 Config OSC = HSPLL // Start Of Program...
The above code is simply the start of the program. OSC = HSPLL enables the High Speed (HS) PLL feature, but there are some limitations to take into account.
Remember that the PIC usually executes an instruction once every 4 oscillator cycles, with PLL, it can be reduced t a 1:1, that is, one oscillation = 1 instruction. With this in mind, and the PIC's max speed (10 MIPS), the greatest external crystal that can be used is 10Mhz. If you compared the speed to a PIC running normally, it would be that of a PIC running with a 40Mhz crystal. That is why the Clock setting is declared as 40Mhz, allowing the compiler to generate the right delays etc when required.
Some 18F PIC's can operate at 48Mhz (12 MIPS), check the datasheet for more information about the PIC your using. |
|
| Last Updated ( Tuesday, 14 April 2009 10:47 ) |
Whos Online
- Roshan
- andyo
- MrDEB
Forum Activity
Must have....delta temperature glowies! - andyo Friday, 12 March 2010 08:55 - [1 reply]
USB 8 Channel Servo Controller - andyo Friday, 12 March 2010 08:33 - [0 replies]
Marching LEDs - jon chandler Friday, 12 March 2010 07:39 - [6 replies]
iHID - graham Friday, 12 March 2010 02:04 - [5 replies]
simulation program - mrdeb Thursday, 11 March 2010 22:52 - [0 replies]
REALISTIC LED candle flicker - mrdeb Wednesday, 10 March 2010 05:48 - [0 replies]
the LCD demo hello world - mrdeb Wednesday, 10 March 2010 05:41 - [29 replies]




What program do you use to capture the simulation to a videofile?
Here's a tip for tying out SD cards. An SD card will fit the flopp...
If this wasn't a class project that had to be done on a PIC16F690 u...
I am going to send two data from ADC to USART(async mode) to serial...
I was thinking of battery with powered routers or powered for every...
50 rooms - wow. The XBee modules are very easy to use but I'm not ...
Thanks AndyO. What I have to do is design a device to monitor temp...
The circuit used for the remote sensor can be found here: [url]http...