• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Pic SPI Interrupt ?

Status
Not open for further replies.

richard.c

New Member
Hi,

We are using the spi mssp module of a 18F4520.

From when the data is moved to the SSPBUF and the next instruction to test for data transfer to complete, the SPI hardware module is in control of the data etc.
While it is in control can the normal interrupt system work without any delay or is it held up while the spi module completes its task ?

Initial tests seem to suggest the interrupts are delayed although I would have thought one of points of the hardware module was to overcome such problems ?


Code:
	movwf   SSPBUF 			; put in SSPBUF
done   btfss   SSPSTAT,BF 	        ; Data transfer complete?
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top