PIT TIMER

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PIT TIMER

578 Views
badrilalprajapa
Contributor I

How to access PIT timer register of VF50 . Not able to read/write the PIT timer value at address (0x40037000)

Labels (1)
0 Kudos
1 Reply

327 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I just tested the latest MQX version and the hello_world example with the following modifications and I was able to acces the PIT module.

void hello_task

    (

        uint32_t initial_data

    )

{

    (void)initial_data; /* disable 'unused variable' warning */

    printf("Hello World\n");

   

    PIT_MCR = 0 ;

   

    PIT_LDVAL0 = 0xFFFF;

    PIT_TCTRL0 |= PIT_TCTRL_TEN_MASK;

   

    _task_block();

}

Best Regards,

Alejandro

0 Kudos