Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] uart txmission

2005-10-04 by Mark Jordan

On 4 Oct 2005 at 6:36, aswinefy2003 wrote:

> I am transmiting a series of 5 data through uart.
> How can i Know that the completion of transmission of all the 
> data has finished .
> 

		sbis	UCSRA, UDRE		; UART buffer empty?
 		rjmp	PC-1
 			 
		sbi	UCSRA, TXC		; Prepare TXC
 		out	UDR, data  		; Send the data

		sbrs	UCSRA, TXC		; TX complete?
 		rjmp PC-1

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.