Post Created date
Trying to read from ADC channels with attiny85
joeymorin wrote:Show the smallest, complete, buildable program which demonstrates the problem. In relation to this, I have the following question: the tests I do are not made on...
Friday, 10 August 2018 - 14:49
Trying to read from ADC channels with attiny85
Sorry for the delay in responding. Thank you very much everyone for the help!   I was doing some tests, but first I would like to mention some considerations. In relation to...
Friday, 10 August 2018 - 00:52
Trying to read from ADC channels with attiny85
kk6gm wrote: You're working too hard (and you're still setting ADLAR to 0!).   It's enough to write ADMUX = (1<<ADLAR) | 3; //0, 2 or 3 All right! I made some...
Wednesday, 8 August 2018 - 01:43
Trying to read from ADC channels with attiny85
theusch wrote:Why don't you just rebuild ADMUX each time, with the desired reference selection and other options?  Yes, some seem to prefer manipulations with masking but why...
Wednesday, 8 August 2018 - 00:14
Trying to read from ADC channels with attiny85
kk6gm wrote: ADLAR is not a separate register, it is a bit within a register (ADMUX).  Every time you write to ADMUX you are writing all 8 bits within that register.  If...
Tuesday, 7 August 2018 - 22:10
Trying to read from ADC channels with attiny85
Simonetta wrote:Consider moving to the Tiny84, which has 14 pins instead of 8 pins.  These additional pins usually have ADC channels.  A 14-pin SOIC package is about the...
Tuesday, 7 August 2018 - 21:49
Trying to read from ADC channels with attiny85
theusch wrote:If you in fact start to answer my questions, including what "doesn't work" means, I'll continue to look at the thread and respond.  Otherwise, I'm out. I'm...
Tuesday, 7 August 2018 - 21:45
Trying to read from ADC channels with attiny85
theusch wrote:I twice told you about "losing" ADLAR, and thus you get only 2-bit results.  You have never addressed that  Sorry, I omitted commenting that I updated the...
Tuesday, 7 August 2018 - 20:44
Trying to read from ADC channels with attiny85
theusch wrote:Define "not working".  What is the refer3ence voltage?  What are the signal voltages >>right on the AVR pins<< ?  How many counts do you...
Tuesday, 7 August 2018 - 20:20
Trying to read from ADC channels with attiny85
I'll go in parts to try not to skip anything. First of all, I'm working on a code that someone else did. Many things are not optimized, but it's written so that anyone with...
Tuesday, 7 August 2018 - 18:09
Trying to read from ADC channels with attiny85
kk6gm wrote:Also, what you are trying to do would be cleaner with a 'switch' statement. You're right. Thank you very much for the suggestion, now I will incorporate it....
Tuesday, 7 August 2018 - 15:57
Trying to read from ADC channels with attiny85
js wrote: When you change channels you may need to throw away the first reading. Yes, I do that, only I did not include it in the code to simplify it. Whenever this function is...
Tuesday, 7 August 2018 - 14:51

Pages