Hi, Karthik,
The FTM, PIT,LPTMR even PDB can all generate interrupt continously for a specified interval of time, which one do you uses?
Regarding the interrupt priority, there is IPR register in core, pls refer to 3.2.2 Nested Vectored Interrupt Controller (NVIC) Configuration in RM of K64, the lower the IRQx bits are, the Higher the interrupt priority is, for example IRQx=0 is the highest priority.
Regarding how to write register of K64, it is dependent on the tools especially the registers.h file, which define the register.
This is the code in KDS tools for KEA64 instaed of K64:
void kbi1_interruptInit(void)
{
NVIC_SetPriority(25,0x3);
// NVIC->IPR6=0xC000; //set KBI1 interrupt priority
NVIC_EnableIRQ(25);
// NVIC->ICPR|=1<<25; //clear the pending register of interrupt source 25(KBI1)
NVIC_ClearPendingIRQ(25);
// NVIC->ISER|=1<<25; //set the interrupt source of KBI1
NVIC_EnableIRQ(25);
}
Regarding the I2C and UART code, I suggest you use SDK2.0, you can download the SDK2.0 from the website based on K64.
There are example.
http://www.nxp.com/ksdk
Hope it can help you
BR
Xiangjun rong