Elisa3
adc.h File Reference

Adc module. More...

#include "variables.h"
#include <avr\io.h>
#include <avr\interrupt.h>
#include <string.h>
#include "utility.h"
#include "irCommunication.h"

Go to the source code of this file.

Functions

void initAdc ()
 Configure the adc registers and start the sampling.

Detailed Description

Adc module.

Author:
Stefano Morgani <stefano@gctronic.com>
Version:
1.0
Date:
01.02.12

The adc peripheral is initialized to work in free running mode, raising an interrupt at each conversion completion. Within the interrupt service routine the value is saved in its correct position and the next channel to sample is selected. This is the biggest interrupt in the project and it's used also as the base time for timed processes/funtions (resolution 104 us). All the proximity and ground sensors are updated at 80 Hz (both active and passive phase).


Function Documentation

void initAdc ( )

Configure the adc registers and start the sampling.

Returns:
none
 All Files Functions Variables Defines