I am using Atmel AT89C51CC03, and it is configured so in Keil too. The data sheet lists the SPI interrupt vector as 0x0053h, and I do define my interrupt as interrupt #10. However, the map file show my SPI interrupt has address of 0x0026h.
Does anyone know why is that? Anything I can do to make it right?
Thanks in advance!
The interrupt routine is like this:
static void SPICommISR(void) interrupt 10 { UINT8 tmpchar; if (SPSCR & 0x80) { tmpchar = SPDAT; SPDAT = 0xCC; } }
Does anyone know why is that?
nobody can till you show your code
the start of the SPI ISR should do
View all questions in Keil forum