Leonard DelVecchio

Processor Expert ADC

Discussion created by Leonard DelVecchio on Oct 23, 2007
Latest reply on Oct 25, 2007 by Leonard DelVecchio

I am rather inexperienced and need some help with Processor Expert's ADC bean. I am simply trying to read a 0 to 5 Volt signal. The lines of code I have used are as follows:

/*************************************/

word MyReading;

MYBEANNAME_Measure(TRUE);

MYBEANNAME_GetValue16(&MyReading);

/******************************************/

With 0 to 2.5 Volts at the appropriate pin, MyReading contains 0 to 32768 cnts as expected, but above 2.5 Volts the variable becomes either 0 or indeterminate.

The bean is set to 10 bit resolution.

My processor is MC68HC908QBMDW

I cannot find any "Result Mode" choice on the Bean Inspector.

Thank you in advance,

Len

Outcomes