gavilan
Joined: 16 Dec 2014 Posts: 1
|
speed debug icd-u64 |
Posted: Tue Dec 16, 2014 11:16 am |
|
|
Hello,
I'm using PCWHD version 5.019 with ICD-U64 and in my target there's a DSPIC33FJ256GP710. I've created a Project with "Project 24 Bit wizard". In my target I've an oscillator of 12 MHz, therefore I've configured:
Crystal clock speed: 12.000.000 Hz
CPU Clock speed: 80.000.000 Hz => 40 MIPS.
When I program in release mode the MCU runs at 80 MHz but when I program in debug mode in the debug Windows appears 7.47 MHz and I don`t know because run so slowly.
In debug mode isn't possible to run at 80 MHz?
I attached the code:
Code: |
#include <33FJ256GP710.h>
#FUSES NOWDT //No Watch Dog Timer
#FUSES CKSFSM //Clock Switching is enabled, fail Safe clock monitor is enabled
#FUSES NOJTAG //JTAG disabled
#FUSES PR_PLL
#FUSES HS
//#FUSES FRC_PLL
#device ICSP=3
#use delay(clock=80000000,crystal=12000000)
#define LED PIN_E5
#define DELAY 1000
void main()
{
//Example blinking LED program
while(true)
{
output_low(LED);
delay_ms(DELAY);
output_high(LED);
delay_ms(DELAY);
}
}
|
Thanks a lot.
David. |
|