I'm having some problems transferring my A/D conversions out through my UART. I'm using an ICE 200 to emulate an AT90S4433. I'm also using the STK200 as my target board. My A/D converter is working fine. When I run my program using AVR Studio (Version 3.10), the data is not being transferred to the UART Data Register(all zeroes). Instead, I'm getting a bunch of crazy ASCII characters that are not related to my conversions (when I open a terminal to my monitor)!!! I'm thinking that I don't have the appropriate bits enabled. Here's how my register's are set up:
UBRR = BAUD9600;
UCR |= 0x08; //Enables the UART transmitter
DDRD = 0x01; //To enable PIN D1 as the transmitter???? Is //this redundant??
DDRC = 0x00; //Sets Port C as input pins
PORTC = 0x00 //Not too sure why I have this, I was following
//some existing code that worked
If anyone could help me out, it would be greatly appreciated!!