Analog to Digital and Digital to Analog
on an Atmel Mega32
ECE 476 Cornell University

Analog to Digital

There are several ways of converting an analog level to a number using the Mega32, but this discussion will concentrate on using the built-in, 8-channel, 10-bit, successive approximation analog to digital converter (ADC). As with all the Mega32 peripherials, there are a large number of ways of using the buit-in ADC.

Digital to Analog

There is no built-in D/A on the Mega32, but there are easy ways of converting numbers to voltages. I will describe two here:

Copyright Cornell University 2007