#include #define F_CPU 8000000UL #include /* Übertragung vom ATMega16 zum AD9835 ATMega16 : AD9835: PB7 SCK => SCLK PB5 MOSI => SDATA PB4 SS => FSYNC */ void SPI_MasterInit(void) { // PB7 = SCLK und PB5 = MOSI und PB4 = SS DDRB = 0b10110000; SPCR = (1<> 8)); //MSB SPI_MasterTransmit(word); //LSB PORTB = PORTB & ~(1<