Other Parts Discussed in Thread: HALCOGEN, MOTORWARE
I have a follow up question for the modified demo project SCI_UART_9600_RM48 for RM48 CNCD: I'm using the SCI Rx pin (DIMM 74) and while I can receive data without any problem in polling mode, I can't make the interrupt mode work: sciNotification() function or my interrupt function sciInterrupt() are not called by the code. I attached the files: sci.c/h, sys_vim.h, sys_main/startup.c, but to summarize, I did set sys_vim.h:
| /* Interrupt Handlers */ extern void phantomInterrupt(void); extern void esmHighInterrupt(void); extern void phantomInterrupt(void); extern void sciInterrupt(void); |
sys_stratup.c:
|
static const t_isrFuncPTR s_vim_init[] = ... ---------- /* enable interrupts */ ... |
and sci.c:
|
sciREG->GCR1 = (1U << 25U) /* enable transmit */ ... ----------- #pragma INTERRUPT(sciInterrupt, IRQ) ... |
Thanks,
Asa