PIT TIMER

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PIT TIMER

634件の閲覧回数
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 返信

383件の閲覧回数
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 件の賞賛
返信