On Nov 26, 8:13 pm, Gowan <
peterstew...@telus.net> wrote:
> So I added the line setting UX20 to 0 explicitly, and the terminal
> worked at the expected 19200.
> I don't believe any of the fuses can set it to 2x, so I think that the
> bootloader that came installed with the board must do it.
> Thanks
That's a good observation, it is possible that the bootloader
configures registers in a certain way and the "second program" that
runs (i.e., yours) cannot assume that registers have the same values
that they have after reset.
I'm glad your program works as expected now.