SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
User avatar
By roach
#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!
User avatar
By roach
#10637
UPDATE: I figured out how to modify that code to work on the mega128's dual usarts. I think clock questions are moot at this point, but stay tuned for more stupidity!