hayowazzup
Advanced Member level 4
I wish to use use usart to pass the data to the spi buffer using interrupt at a frequency of 4.8k.
I was wondering if this code is ok.
I was wondering if this code is ok.
Code:
ISR (USART_RXC_vect) {
SPDR = UDR;
while(!(SPSR & (1<<SPIF)));
;
}