I think you may find it useful to look at this thread: http://www.mikroe.com/forum/viewtopic.php?f=194&t=61866
I have just posted a little tool that will forcibly move applications to a specific x:y co-ordinate.
I would not be able to function without this since it is impossible in Windows 7 to move a fixed size window if you cannot access the top line to drag it. It was easy to do in all previous versions of windows, including Vista by using the shift + cursors or right clicking on the taskbar and selecting to move and then using the cursors.
That's progress for you.
I do also have a query about the Timer Calculator. It does not appear to generate the proper code for PIC24 devices.
1. It sets an interrupt priority bit for Timer1 when I am generating Timer2 code. Here is the code it generated
Code: Select all
//Timer2
//Prescaler 1:8; PR2 Preload = 10000; Actual Interrupt Time = 5 ms
//Place/Copy this part in declaration section
void InitTimer2(){
T2CON = 0x8010;
T2IE_bit = 1;
T2IF_bit = 0;
IPC0 = IPC0 | 0x1000;
PR2 = 10000;
}
void Timer2Interrupt() iv IVT_ADDR_T2INTERRUPT{
T2IF_bit = 0;
//Enter your code here
}
I just need to find out why the timer seems to be out by 50%.
Before it is said, I have selected the correct 32MHz clock frequency.
[EDIT]I have tried to use the application to set a 1s timer using timer1 but I get a 0.5ms timer (again, the project compiles and works at 32MHz, library delay_ms(1000) provides a 1s delay and my UART comms work so this also proves the micro clock is running at 32MHz).
It is allowing for the timer clock on the P24 running at Fosc/2 rather than the Fosc/4 that the P18 devices use isn't it?
I have to set the MCU clock frequency (IN TIMER CALCULATOR APPLICATION) to 64MHz to get the correct values.