ADC. More...
#include "dwengoBoard.h"
Functions | |
void | initADC (void) |
Initialize ADC. | |
int | readADC (BYTE address) |
Read analog input. |
ADC.
Analog/Digital conversion on the Dwengo board for channel AN0 to channel AN4
void initADC | ( | void | ) |
Initialize ADC.
Configures ADC module so that AN0-AN4 can be used as analog inputs
int readADC | ( | BYTE | address | ) |
Read analog input.
Converts an analog input from channel address to a 10-bit number.
address | channel to read (has to be in range [0,4] where x corresponds with pin ANx) |