New to PIC programming

Beta Testing discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
whitst
Posts: 10
Joined: 25 Dec 2009 06:43

New to PIC programming

#1 Post by whitst » 30 Dec 2009 16:54

In the examples for dsPICPro4, why is the clock in project settings set to 80 MHZ when the hardware clock is 10 MHz?

octal
Posts: 534
Joined: 09 Feb 2005 14:15
Location: France
Contact:

#2 Post by octal » 30 Dec 2009 17:16

/*
* Project name:
Led_Blinking (The simplest simple example)
* Copyright:
(c) mikroElektronika, 2009.
* Revision History:
20091030:
- Initial release;
* Description:
Simple "Hello world" example for the world of dsPIC MCUs;
* Test configuration:
MCU: dsPIC30F6014A
http://ww1.microchip.com/downloads/en/D ... 70143D.pdf
Dev.Board: dsPICPRO4
http://www.mikroe.com/en/tools/dspicpro4/
Oscillator: XT-PLL8, 10.000MHz
Ext. Modules: None.
SW: mikroC PRO for dsPIC30/33 and PIC24
http://www.mikroe.com/en/compilers/mikroc/pro/dspic/
* NOTES:
- Turn ON port LEDs at SW1 (board specific).
*/
The PLL does multiply the core frequency by nn value. In the case of the dspPIC30F6014A for example, in the Blink example provided with the mikroC Pro for dsPIC, you can see (in red) that the PLLx8 has been used (related registers configured in dsPIC chip), so this multiply the mcu core frequency by 8, and 10MHz (external clock) x PLL_8 = 80MHz.

Regards
http://www.pocketmt.com

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 Beta Testing”