11.07.2015 Views

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ATmega48A/PA/88A/PA/168A/PA/328/PAssembly Code Example (1)USART_Receive:; Wait for data to be receivedin r16, UCSRnAsbrs r16, RXCnrjmp USART_Receive; Get status and 9th bit, then data from bufferin r18, UCSRnAin r17, UCSRnBin r16, UDRn; If error, return -1andi r18,(1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!