Z8: SPI interrupt does not work

This forum is about writing software to embedded systems and microcontrollers.

Z8: SPI interrupt does not work

Postby souza.bruno on Mon Apr 24, 2006 1:22 pm

All others interrupts work in Z8, but the SPI interrupt does not work..
Somebody knows what can be happening???
souza.bruno
 
Posts: 1
Joined: Mon Apr 24, 2006 1:06 pm

Re: Z8: SPI interrupt does not work

Postby nicholdraper on Tue Nov 18, 2008 8:42 pm

I've gotten the SPI interrupt to work. I realize that this question is way old, but for anyone searching for this, you must enable the interrupt in the SPI register:
SPICTL=0x81; /* IRQ enabled, BRG timer int-disabled, Phase:clock=0:0, Slave Mode & SPI Enabled */
and you must set an interrupt level like this:
IRQ0ENH |= 0x02; // enable SPI Interrupts
IRQ0ENL |= 0x02; //&= ~0x02;
nicholdraper
 


Return to Embedded Software

Who is online

Users browsing this forum: No registered users and 4 guests

cron