Both grounds on the ATMEGA32 are connected to main ground and Accellorometer is connected to main ground as well.
Perhaps I have it set up wrong...
Right now, I have the ADC referenced to AVCC (5V). The output for the accellorometer is connected to ADC0, all other ADC outs are not connected.
As far as the code, I'm using Codevision AVR C Compiler (full version) to write my code. I have tried both using an interrupt on the ADC and just calling the ADC when I need it. The only thing I can't find any information on is when I call the ADC using read_adc() but there is supposed to be a number in the ()'s. I have been using 0 but have tried 1 and other numbers. What exactly is supposed to be in the brackets?
~Mike