control intterupt timer.

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

control intterupt timer.

447 Views
rlaxortn
Contributor IV

i am using s32ds, RTD version is 4.0.0. mcu is s32k314. 

 

i use timer interrupt by PIT.

1. Is there a register to turn the interrupt timer on and off?

except by PIT function(ex, Pit_Ip_StartChannel,  Pit_Ip_StopChannel)

 

2. i wanna make source code for control interrupt timer except PIT Function. 

like (__asm volatile ("cpsid i"), __asm volatile ("cpsie i")). but it is not work. how do i?

 

thanks to help

 

Tags (2)
0 Kudos
Reply
1 Reply

335 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @rlaxortn 

You can directly manipulate the PIT registers to disable the interrupt if you prefer not to use the APIs.

Regarding the inline assembly instruction __asm volatile ("cpsid i"); On ARM Cortex‑M devices, this instruction sets the PRIMASK register, which globally disables all maskable interrupts. It does not disable an individual interrupt source. 

 

BR, VaneB

0 Kudos
Reply