Clarification for MCF5282LITE EVB include files and ISR

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

Clarification for MCF5282LITE EVB include files and ISR

2,297件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
1 返信

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