Home

Functions

dwengoADC.h File Reference

ADC. More...

#include "dwengoBoard.h"

Functions

void initADC (void)
 Initialize ADC.
int readADC (BYTE address)
 Read analog input.

Detailed Description

ADC.

Analog/Digital conversion on the Dwengo board for channel AN0 to channel AN4


Function Documentation

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.

Parameters:
addresschannel to read (has to be in range [0,4] where x corresponds with pin ANx)
 All Data Structures Files Functions Variables Defines

Generated on Wed Dec 25 2013 23:03:08 for Dwengo library by doxygen 1.7.3