Daniel Rodriguez Vara

M52259DEMO:Problem using adc device and functions

Discussion created by Daniel Rodriguez Vara on Jun 22, 2009
Latest reply on Nov 6, 2009 by Daniel Rodriguez Vara


I am working with 52259 chip and its M52259DEMO board.

I am trying to expand hvac demo example with adc extra functions.

I test my Demo board with adc example. And I have check hvac example. All it is ok.

But when I try use to code of first code into second code example I have problems.

I can open ADC device "f=fopen("adc:",&adc_init);" in hvac code.

But I can not open any channel:  "f1=fopen("adc:1",&adc_channel_param1);" in hvac code.

f1 is empty, its value is NULL.

The same code works in the adc example code.


I want use adc with MQX.

I do not understand why it does not work in MQX.

Help me, please.

Thank you.