*MASTER SPI initialization routine
SPI_INITM	LDAA	#$20	;configure PORTD bit 5  as ;general purpose output
	STAA	DDRD	
	BCLR	PORTD,$20	;make SS=0
	LDAA	#$56		;SPI enable, Master, CPHA=1 ;clock:32
	STAA	SPCR	
	RTS		
* SLAVE SPI initialization routine
SPI_INITS	LDAA	#$C6	;SPIE, SPE, Slave, CHPA=1 ;clock:32
	STAA	SPCR	
	RTS		
