Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: avr-gcc ATMega8 USART trouble, was: Compile problem

2009-12-07 by Marc R.J. Brevoort

On Sun, 6 Dec 2009, Don Kinzer wrote:

> Reading the special sub-section of the mega8 datasheet
> USART section entitled "Accessing UBRRH/UCSRC Registers"
> reveals what you need to do:
>
> UCSRC = (1<<URSEL) | flags;
>
> Without the URSEL bit, you'd actually be writing to
> the UBBRH register rather than the UCSRC register as desired.

Thanks Don, I'll give that a try.

Best,
Marc

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.