timer counter interrupt for cortex-M4 Udoo Neo board

Discussion in 'UDOO NEO' started by Agung Pambudi, Jan 2, 2018.

Tags:
  1. Agung Pambudi

    Agung Pambudi New Member

    Joined:
    Oct 19, 2017
    Messages:
    2
    Likes Received:
    0
    I am doing a research on the RTOS kernel on cortex-M, which requires timer counter interrupt, like research done on cortex-M3 / Arduino Due SAM3X8E which its configuration as follows :

    void SetupTimer (){
    pmc_set_writeprotect (false);
    pmc_enable_periph_clk ((uint32_t) INT_GPIO1_INT7);
    TC_Configure (TC2, 2, TC_CMR_WAVE | TC_CMR_WAVSEL_UP_RC | TC_CMR_TCCLKS_TIMER_CLOCK1);
    TC_SetRC (TC2, 2, delayPeriod);

    TC2-> TC_CHANNEL [2] .TC_IER = TC_IER_CPCS;
    TC2-> TC_CHANNEL [2] .TC_IMR = TC_IMR_CPCS;
    TC2-> TC_CHANNEL [2] .TC_IDR = ~ TC_IER_CPCS;

    NVIC_SetPriority (INT_GPIO1_INT7, 0);
    TC_Start (TC2,2);
    NVIC_EnableIRQ (INT_GPIO1_INT7);
    }

    If Udoo Neo board for cortex-M4 on IMX6SX, how to access and use the counter interrupt timer provided because it is also associated with NVIC (Nested Vectored Interrupt Controller).

    thank you.
     
    Last edited: Mar 16, 2018
  2. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    The IMX6SX has the Enhanced Periodic Interrupt Timer (EPIT) feature refer to the i.MX 6SoloX Applications Processor Reference Manual for details.
     

Share This Page