void sio3_init(void) { __disable_interrupt(); // SI/O3 Control register (protect off bevor writing to this register) PRCR = 7; //Sout3 output, Input-output-port, MSB first, external clock, high output S3C = 0xA3; //Interrupt control register (polarity select bit: rising edge, Interrupt Level 6) S3IC |= (1<<2) | (1<<1); //disable writing to P9 and SI/O3 direction register PRCR = 0; //Interrupt cause select register select S I/O 3 IFSR = 0; //reset Interrupt request bit for SI/O3 S3IC &= ~(1<<3); //Transmit/receive data starts after setting transmitting data in SI/O3 transmit/receive register S3TRR = 0x00; __enable_interrupt(); } #pragma vector=SIO3 __interrupt void sio3_handler(void) { //Write 8-Bit Value into Array daten[data_counter]=S3TRR; //Increment counter data_counter++; //S3 Transmit/Receive Register reset S3TRR = 0x00; //toggle P9.3 for time measurement here //TIMEPORT ^= (1<