; ********************************************************************** ; * * ; * TESTPROGRAMME : Serial Peripheral Interface * ; * * ; ********************************************************************** .nolist .include "tn26def.inc" .list ;************************************************************************************ RJMP START_ON_RESET ; RESET_handler : springe zum Label START_ON_RESET: RETI ; EXT_INTO : int0 blind RETI ; PIN_CHANGE : I/O Pins blind RETI ; TIM1_CMP1A : timer1,cmpa blind RETI ; TIM1_CMP1B : timer1,cmpb blind RETI ; TIM1_OVF : timer1,ovf1 blind RETI ; TIM0_OVF : timer0,ovf0 blind RJMP USI ; USI_STRT : usi_strt aktiv RETI ; USI_OVF : usi_ovf blind RETI ; EE_RDY : ee_rdy blind RETI ; ANA_COMP : ana_comp blind RETI ; ADC : adc blind ;************************************************************************************ USI: ; SPI - Interrupt Service Routine ; The value stored in register r16 is transferred to the master device, and when the ; transfer is completed the data received from the master is stored back into r16. ;The loop is repeated until the USI Counter Overflow Flag is set; see DATASHEET p.70 sbi PortB, 6 ; TEST LED out USIDR,r16 ; Ausgabe an Master ldi r16,(1< 63 => LED2 AN SEI sbi PortA, 2 ; LED für Betriebsanzeige RJMP NEU ; Endlosschleife ;************************************************************************************