#include <inavr.h>
#include "mega128.h"
#pragma vector=TIMER2_COMP_vect
static __interrupt void TIMER2();
__interrupt void TIMER2()
{
SPDR = 0x55; while(!SPIF);
}
void main()
{
SPIE = 0;
SPE = 1;
MSTR = 1;
SPR0 = 0;
SPR1 = 0;
SPI2X = 1;
DDRB_.bit.bit_2 = 1;
OCR2 = 28;
WGM21 = 1;
WGM20 = 0;
CS2 = 5;
OCIE2 = 1;
__enable_interrupt();
while(1){}
}