Post Created date
USART_DREIF_bm after reset never set. Pwr down/up works.
The problem was LOOSE NUT BEHIND THE KEYBOARD. 1) I returned an int to an unsigned char. Funny the compiler didn't flag that (no warnings) despite using function prototypes. 2) I...
Monday, 13 May 2013 - 13:42
USART_DREIF_bm after reset never set. Pwr down/up works.
Yes the txd pin is set as an output. It is Bit3: // Bit0: Input // Bit1: Output // Bit2: Input // Bit3: Output // Bit4: Output // Bit5: Input // Bit6: Output // Bit7: Output...
Friday, 10 May 2013 - 21:23
USART_DREIF_bm after reset never set. Pwr down/up works.
It doesn't hang - it just times out after so long waiting for the flag to be set and returns 0: if ( ((usart->STATUS...
Friday, 10 May 2013 - 19:10
USART_DREIF_bm after reset never set. Pwr down/up works.
@einar - Quote:Even if the manual says: "The transmit data register (DATA) can only be written when the data register empty flag (DREIF) is set, indicating that the register is...
Friday, 10 May 2013 - 14:46
USART_DREIF_bm after reset never set. Pwr down/up works.
@einar - I always wait for the DRE flag to be set before giving the USART a byte to transmit. @John - I am using XMEGA32D4. I used CodeWizard to generate the USART initialization...
Friday, 10 May 2013 - 14:41
Problems with ATXmega32D4 USART comm with 32Mhz clock
I did finally get it to work. What was right in the code I originally posted: - My USARTC0 initialization code. This code was also partially generated by codewizardAVR but I had...
Friday, 1 February 2013 - 20:44
Problems with ATXmega32D4 USART comm with 32Mhz clock
DocJC wrote:Welcome to the Forum. I don't use C, so I'll let others review your program. That said, it appears that for 32 MHz, 9600, N, 8, 1, baudctrla = 207 and baudctrlb = 0,...
Friday, 1 February 2013 - 01:39