All Questions
79
questions
0
votes
4
answers
45
views
What does it mean the MCU has 1 ADC and 10 ADC channels?
I got this AVR Microchip MCU ATtiny 204 chip. Now what I can't get, what do they mean in the datasheet it has 1 ADC and 10 channels ADC?
The datasheet:https://datasheet.octopart.com/ATTINY204-SSF-...
1
vote
2
answers
179
views
Dual Slope integrator voltmeter improvement in Design
So, I'm attempting to design a dual-slope integrator voltmeter. I have the following block diagram so far.
Now an AVR microcontroller will have an ADC pin in the range of 0-5 Volts . So negative ...
0
votes
0
answers
52
views
Switching reference voltage with capacitor on AREF
I do two conversions (ratiometric measurement) with AREF = AVCC = VCC = 3 x AAA battery. AVCC is connected to VCC via an LC network as recommended in the data sheet of the ATmega328P. I would like ...
0
votes
1
answer
52
views
How to make a circuit which can give divided voltage to ADC and can send a trigger pulse to INT0 when I press a button?
I connected 4 buttons to the ADC module of AVR-ATMega328p with different resistor values,
To know which button is pressed this ...
0
votes
0
answers
98
views
AVR adc multichannel isn't reading properly
this is a code I made to get reading of 3 ADC channels , I am using the ADC interrupt auto trigger , the first channel works well but after that the readings are weird , I am using potentiometer , so ...
1
vote
2
answers
183
views
ADC reading on ATtiny13, without dedicated clock?
I am in a design phase of a small circuit which is intended to measure an external voltage, with an ATtiny13.
This AVR has a dedicated ADC hardware, which is suitable for my needs (need to detect ...
0
votes
1
answer
160
views
Help with AVR ADC and Serial port programming and integrating with python
I am a 2nd year electrical engineering student. I was stuck at this: Why do both seven segment displays show only 8 even when simulation is not running?
Basically I am trying to take temperature data ...
0
votes
2
answers
243
views
Can battery levels ever be reliably read while it is powering an embedded system
I have an AVR microcontroller (atmega168pa) powered through two AA battery cells. When I read the battery voltage while it is not hooked up to the bread board, the voltage might read as 3.14 on a DMM. ...
0
votes
1
answer
497
views
Confused about MAX6675 thermocouple sensor SPI protocol
I'm using an AVR microcontroller to take readings from a MAX6675 (SPI K-type thermocouple ADC chip).
I am having difficulty understanding what is required by this chip's SPI interface. The datasheet (...
0
votes
2
answers
193
views
Measure ATmega168PA internal temperature while using other ADC channels at 5V reference
I have a device that continuously measures the value of 3 sensors connected to 3 ADC pins and working at 5V reference, so I have two options for voltage reference selection:
Connecting AREF pin to 5V ...
0
votes
1
answer
72
views
Problem or misunderstand of ADATE bit on ATTiny45
I have 2 buttons connected to pulled-down ADC input.
I want to trigger ISR(SIG_ADC) when ADC finishes conversion - this is working.
If I start ADC using ...
0
votes
1
answer
285
views
ATXMega ADC - What is bandgap reference and temperature?
On my ATXMega128A1U, I am using ADCA to measure an input voltage (roughly ~1.70V) and I plan to use a VREF of 2.5V. I was reading the XMEGA manual, specifically for the REFCTRL register where I would ...
0
votes
0
answers
317
views
How to implement `analogRead` (Arduino) on AVR?
I'm trying to implement Pin class in C++ with digitalRead, digitalWrite, ...
0
votes
2
answers
525
views
ADIF is set first or ADSC is cleared first?
I am using an ATmega8A for ADC conversion. I start ADC conversion by setting ADSC bit and wait till it clears by hardware to detect the end of conversion. I saw some people checking the ADIF bit to ...
1
vote
1
answer
121
views
Question about ADC prescaler register in ATMEGA32A
As you see in datasheet of Atmega32A, it says that the bits ADPS of register ADCSRA are controlling the Prescaler of the ADC clock by dividing the frequency of external crystal on some division factor,...