This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Delays in RTX kernel and configuration

Hi, Iam working on LPC248 OEM board ,where iam testing the delays in RTX kernel.

In configuration file i set the value as shown below.

#define OS_TICK        10000

Can anybody explain what is the meaning of this?

In

os_dly_wait(100)

i kept 100 as sytem ticks.

The above delay work as 1sec delay.

My aim is to get the delay of 1sec ,what are the changes i needed in configuration file?

Parents
  • I have doubts on the below values

     #define OS_TIMER       0
     #define OS_CLOCK     12000000
    

    How can i set the correct values.

    The code is what i used for configuring the PLL

    /* Fcck = 57.6Mhz, Fosc = 288Mhz, and USB 48Mhz */
    #define PLL_MValue                      11
    #define PLL_NValue                      0
    #define CCLKDivValue            4
    #define USBCLKDivValue          5
    
    /* System configuration: Fosc, Fcclk, Fcco,Fpclk   must be defined */
    
    /* PLL input Crystal frequence range 4KHz~20MHz. */
    #define Fosc    12000000
    
    /* System frequence,should be less than 80MHz. */
    #define Fcclk   57600000
    #define Fcco    288000000
    
    /* APB clock frequence , must be 1/2/4 multiples of ( Fcclk/4 ). */
    #define Fpclk   (Fcclk / 2)
    
    

    This is what i have done in my code.

    My goal is verifying the delays with real time clock.
    I want to see the printed count values for 1 sec which was compared to real time.

    If i give any trouble sorry for that!!

Reply
  • I have doubts on the below values

     #define OS_TIMER       0
     #define OS_CLOCK     12000000
    

    How can i set the correct values.

    The code is what i used for configuring the PLL

    /* Fcck = 57.6Mhz, Fosc = 288Mhz, and USB 48Mhz */
    #define PLL_MValue                      11
    #define PLL_NValue                      0
    #define CCLKDivValue            4
    #define USBCLKDivValue          5
    
    /* System configuration: Fosc, Fcclk, Fcco,Fpclk   must be defined */
    
    /* PLL input Crystal frequence range 4KHz~20MHz. */
    #define Fosc    12000000
    
    /* System frequence,should be less than 80MHz. */
    #define Fcclk   57600000
    #define Fcco    288000000
    
    /* APB clock frequence , must be 1/2/4 multiples of ( Fcclk/4 ). */
    #define Fpclk   (Fcclk / 2)
    
    

    This is what i have done in my code.

    My goal is verifying the delays with real time clock.
    I want to see the printed count values for 1 sec which was compared to real time.

    If i give any trouble sorry for that!!

Children
No data