- Thu Mar 02, 2006 9:43 pm
#10626
Hi all! I'm trying to interface my cp2103 breakout board to my Atmega128 on USART1. I found some nice C code that claims to handle serial comms over generic USART (for megas with only one USART, like ATmega8) here: http://zebra.tky.hut.fi/~jap/Electronics/AVR/Usart/, but how can I make this function over USART1?
a) Is there some sort of primer I can read up on to better understand how to use the USART? (the datasheet looks like a lot of gibberish to me).
b) Why USART1? Because I'm using the STK500-emulating bootloader (here: http://hubbard.engr.scu.edu/embedded/av ... index.html) and the only one available for my clock speed uses USART1.
c) Do the USARTs use the same clock as the uC (the oscillator on XTAL)?
thanks!
a) Is there some sort of primer I can read up on to better understand how to use the USART? (the datasheet looks like a lot of gibberish to me).
b) Why USART1? Because I'm using the STK500-emulating bootloader (here: http://hubbard.engr.scu.edu/embedded/av ... index.html) and the only one available for my clock speed uses USART1.
c) Do the USARTs use the same clock as the uC (the oscillator on XTAL)?
thanks!