Hi LotadaC,
Den ATtiny25 würde ich nun nicht grad als neu bezeichnen - der hat sowas auch...
oder der ATmega32
aber auch alles keine DIP28
das mußte ich mir erstmal ansehen ...
22. Analog to Digital Converter
22.1 Features
• 10-bit Resolution
• 0.5 LSB Integral Non-linearity
• ±2 LSB Absolute Accuracy
• 13 - 260 µs Conversion Time
• Up to 15kSPS at Maximum Resolution
• 8 Multiplexed Single Ended Input Channels
• 7 Differential Input Channels
•
2 Differential Input Channels with Optional Gain of 10x and 200x
• Optional Left adjustment for ADC Result Readout
• 0 - VCCADC Input Voltage Range
• Selectable 2.56V ADC Reference Voltage
• Free Running or Single Conversion Mode
• ADC Start Conversion by Auto Triggering on Interrupt Sources
• Interrupt on ADC Conversion Complete
• Sleep Mode Noise Canceler
22.9 Register Description
22.9.1 ADMUX – ADC Multiplexer Selection Register
...
• Bits 4:0 – MUX4:0: Analog Channel and Gain Selection Bits
The value of these bits selects which combination of analog inputs are connected to the ADC.
These bits also select the gain for the differential channels. See Table 22-4for details. If these
bits are changed during a conversion, the change will not go in effect until this conversion is
complete (ADIF in ADCSRA is set).
Table 22-4. Input Channel and Gain Selections
Stimmt. Das kommt, wenn man mal drübergesehen hat aber es noch nie selber in Verwendung hatte
Nur was soll zB die Einstellung ...
MUX4:0 = 01000
Positive Differential Input = ADC0
Negative Differential Input = ADC0
Gain = 10x
Wenn am OPAmp an + und an - der selbe Eingang dranhängt dann gibt das doch Null am Ausgang.
zB ... +2V - +2V = 0V ... sehr komisch.
Ist doch eigentlich ne schwachsinnige Einstellung oder irre ich mich da jetzt?
Aber weder Mega8 noch Mega48/88/168/328 haben diesen OPAmp drin.
Erst die 40poligen Megas haben den drin.
Bei den Tinys ist er so auf den ersten Blick in den 15, 24/44/84, 25/45/85, 26, 261/461/861 eingebaut.
Gruß
Dino