Personal tools
You are here: Home Downloads M16C / M32C ADC & DAC

ADC & DAC

ADC and DAC info on the M16C.

File ADC does pressure sensing.
This project uses the ADC to read pressure from an external pressure sensor.
File ADC measures battery.
This low power project uses the ADC to sample battery voltage and determine battery life.
File ADC reads CdS cells.
This project uses the ADC to read an array of CdS and report the size of a shipping package based on their input.
File ADC reads pots as encoders.
Project contains code to read full turn pots as rotary encoders.
File ADC works with dual axis accelerometers.
This very unique design uses the ADC to read 5, dual axis accelerometers. Very useful code and info on setting up the ADC channels.
File DAC used for current loop
This project uses the DAC to derrive a 4..20mA digital control loop. (HART industrial control buss.)
File DTMF tone decode and generation.
This project uses the ADC, DAC, and DMA peripherals to both generate and decode DTMF tones. Timer are setup to control ADC sample rates. Also include is some FFT code to aide in the process.
File Engine Computer with Sensors using ADC
Code for analog sensors connected to ADC.
File Signal generator using DAC
This project uses the onchip DAC to provide signal generation. Good info on using the M16C's DAC.
File Temp and moisture sensing.
This project uses the ADC to read temperature and sense moisture levels.
File Using the ADC.
This project is a good example of various sensors connected to the ADC. It also contains code to test the ADC seperate from the entire project.