Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Test ADC -- error read

Go down  Message [Page 1 of 1]

1Test ADC -- error read Empty Test ADC -- error read Thu May 05, 2022 9:47 am

jesusmieres



Hello,

I have the problem that it does not return the value of the conversion, the ADCH record. I leave you the test program in case you see something strange. The simulavr program is wonderful. Thank you!!!

Test ADC -- error read Imagen10
Attachments
Test ADC -- error read Attachmentcircuito.zip
You don't have permission to download attachments.
(18 Kb) Downloaded 2 times

2Test ADC -- error read Empty FIXED!!! Thu May 05, 2022 12:47 pm

jesusmieres



The error:

in adc.h

case ADC_chanelSelection___ADC7:
ADMUX &= ~_BV( MUX3) & _BV( MUX2) & _BV( MUX1) & _BV( MUX0);

Solution:

ase ADC_chanelSelection___ADC7:
ADMUX &= ~_BV( MUX3) & ~_BV( MUX2) & ~_BV( MUX1) & ~_BV( MUX0);

Thks!!!

arcachofo likes this post

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum