ADC Resolution Size

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys,

I was wondering if there is a way to change the resolution of a ADC on an ATMega32.

Right now I'm getting a 10bit signal however, all I really want is a 4bit signal (or an 8bit signal).

Basically, I ripped apart an old Game-Cube controller, I'm using the analog stick to detect up, down, left and, right at the 25%, 50%, 75% and 100% mark. Nothing special just learning a new AVR function.

I'm not a cartoon character but I play one in real life.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For 8 bit, use left adjusted (set the ADLAR bit) and just use ADCH. For 4 bit, do the same but shift the 8 bit result four bits right.

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Works like a charm, TYVM =)

I'm not a cartoon character but I play one in real life.