Hello,
I am using the ADuc814 microntroller and I'm trying to use the SPIs' ISR. It is currently not jumping to the ISR. For this microcontroller, the interupt vector address is located at 0x3Bh, which means that I should use interrupt 7. The SPI appears to be in operation because I put a couple of test lines in the main function of the program that sits in a while loop until the ISPI bit is set. Once that occurs I configured a LED to come on. When I ran that little test program the LED came on, so I know that the SPI is recieving the data. To me the problem appears to be jumping to the ISR when the ISPI bit is set. I have the code related to the SPI ISR below. I will be using one timer interupt in the final program as well, but I presently have it turned off until I can get the SPI interupt working. Any help/direction will be greatly appreciated.
main{ ...much more code is in this function, but I only included what pertains to the SPI.... CFG814 = CFG814 | 0x01; /*set bit 0 for SPI*/ SPICON = SPICON | 0x2C; /*SPI settings, slave, clk idles high, trailing clk edge transmits data*/ EA = 1; } void spi_isr (void) interrupt 7 { ....At this point, I simply tried having an LED come on and it does not.... }