Clarification for MCF5282LITE EVB include files and ISR

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

Clarification for MCF5282LITE EVB include files and ISR

1,858 Views
Chandrashekar
Contributor I
Hello Trevor,
Thank you for the information and i need few more clarifications from you,
i am currently using MCF5282LITE EVB board and unable to find the necessary
include files from Freescale(as stated by you).
 
I configured the ICR and IMR as suggested by you and
I am calling the below function in my application
setup_handler(64 + 13);//For UART0 
 
but the interrupt is not getting invoked, i don't know what's wrong with my code.
 
 
void setup_handler(unsigned short vec_index)
{
 unsigned long **autovector = (unsigned long **)0x20000000;  // The Vector Base Address 
 *(autovector + vec_index)  = (unsigned long *) &SCI1_tx_ISR; 
}
 
Actually i am using vector.s, int_handlers.c files for handling interrupts,
 
 
 
can you guide me how to go about it,
if i get those include files to be used, it would be helpful.
 
Regards,
Chandrashekar
Labels (1)
0 Kudos
1 Reply

434 Views
mnorman
NXP Employee
NXP Employee
To get UART interrupts, you need to insure that:
 
1) the desired interrupts are enabled in the UART module
2) the interrupt controller is setup to allow UART interrupts (ICRn, IMR)
3) the appropriate handler pointer is loaded into the appropriate vector in the vector table
4) the core's interrupt level in the status register (SR) is equal to or below the interrupt level programmed into the ICRn
0 Kudos