adcRead Function

Read the value of 10-bit analog input of microcontroller

Syntax

UINT adcRead( UBYTE channel );

Parameters

unsigned char channel - analog channel to read

Return Value

unsigned int - 16-bit analog value ( lower 10-bits hold the value )

Remarks

N/A

Requirements

adc.h

Example

N/A