[an error occurred while processing this directive]
|
И еще, по стилю. Вместо
adc_datal = ADCL; /* сохранение данных */
adc_datah = ADCH;
return ((adc_datal)|((adc_datah)<<8)); /* Возвращаем значение (10 бит) */
Лучше
adc_data = ADC;
return adc_data;
Где adc_data - переменная unsigned int.
E-mail: info@telesys.ru