PIT TIMER

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PIT TIMER

760 次查看
badrilalprajapa
Contributor I

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

标签 (1)
0 项奖励
回复
1 回复

509 次查看
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 项奖励
回复