12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ATmega32A</strong>Assembly Code Example (1)USART_Transmit:; Wait for empty transmit buffersbis UCSRA,UDRErjmp USART_Transmit; Copy 9th bit from r17 to TXB8cbi UCSRB,TXB8sbrc r17,0sbi UCSRB,TXB8; Put LSB data (r16) into buffer, sends the dataout UDR,r16retC Code Example (1)void USART_Transmit( unsigned int data ){/* Wait for empty transmit buffer */while ( !( UCSRA & (1

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

Saved successfully!

Ooh no, something went wrong!