FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2014 Threads] FreeRTOSconfig.hPosted by leviatan1 on May 13, 2014 Hello, i have some troubles understanding the specification for
#define configCPUCLOCKHZ ( ( unsigned long ) 66000000 ) /* = Fosc/2 */
in the dsPIC30F.
lets asume i use XT=10 Mhz and PLL= x8 , i will have 80 Mhz. NOW, the Fosc/2 would be 40 Mhz? or am i wrong?
FreeRTOSconfig.hPosted by rtel on May 13, 2014 I just looked at the official demo, and in that it is hard coded to 25000000.
I think in this port you just have to set the constant to whatever frequency the CPU is running at, but there is probably more than one clock source for the CPU. In the official demo it looks like the CPU is driven by Fosc, and that Fosc is being divided by two before it drives the CPU. If you application drives the CPU from a different clock source then you will have to change the constant accordingly.
Regards.
FreeRTOSconfig.hPosted by leviatan1 on May 13, 2014 if you say that Fosc drives the CPU and its divded for 2 before entering the cpu the correct frquenci in the config seems to be 40 Mhez in my case, i thank you sir.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|