Skip to main content

Questions tagged [avr]

AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the first generations of the popular Arduino SBCs.

0 votes
4 answers
44 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-...
5 votes
1 answer
1k views

AVR: Usage of Force Output Compare bits

Currently I'm dealing with Tiny2313 for my project. Timer runs in CTC (WGM12) mode so OCR1A is used to set TOP of the timer. I want to use OCR1B to generate output signal. In documentation is ...
1 vote
2 answers
364 views

ATTiny204 accurate delay with correct fuses and F_CPU

So I worked with an ATTiny for the first time today and I was quite different from my regular Arduino / ESP8266 programming. When testing the Blink script I noticed that the delays weren't correct at ...
1 vote
3 answers
374 views

External influences with ADC

I use atmega328p. I'm trying to read data from a variable resistor using an ADC. The microcontroller also has LEDs connected. If I ignite them, the data from the ADC increases noticeably. ...
0 votes
1 answer
44 views

LCD Entry Mode Set and AVR MCU

I want to simulate **the Entry set mode ** function of and LCD based on HITACHI 44780 Controller. (Here is the datasheet.) The "Entry set mode" is given the following code of the 8 bits data ...
0 votes
1 answer
81 views

Analog switch for controlling LED

I need help/suggestions for the implementation of my schematic: In the schematic image pasted below, particularly look only at the charging IC, boost converter, analog switch, and ATTiny 1616 ...
2 votes
1 answer
155 views

Configuring the Ports of an AVR Microcontroller for SPI Use

I am trying to configure the an ATtiny84A for use with SPI, but I have some confusion with what Is being said in the datasheet for configuring the ports. The ATtiny84A has, what the datasheet calls, &...
2 votes
1 answer
295 views

Memory view is showing multiple bytes change after a single byte is assigned to a register. Why?

I am debugging an issue I have on a legacy codebase that is running on an atxmega32c4u chip. I am writing single bytes to registers in PORTC, but the memory view is showing multiple bytes change. The ...
0 votes
0 answers
24 views

AVR128Dx TCB Input Capture issue

Ive made a code for reading SENT sensor using TCB interrupt with event system. It works 90% of the time, but those 10% seems like it doesnt read correct high pulse duration, mby someone will see, what ...
2 votes
3 answers
471 views

How to reduce the effect of electric lighter noise on Micro controller?

I am using a kind of electric lighter in my circuit in order to turn the fire on. And also i have used some sensors that alert in danger by sending a signal to the MCU (ATmega 32) interrupt. The ...
0 votes
1 answer
51 views

No touch points close to the edge of the screen

Just for fun and to learn, I'm writing code to drive a 800x480 TFT with resistive touch driven by an RA8875 and an ATmega328P and avr-libc. It works fine so far but when reading touch events, I don't ...
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
0 answers
27 views

Which ATtiny TWI parameter provides more robust operation?

I'm using an ATtiny3226 as an I2C client (slave) interface in a robot, to get commands from the main controller (single master) using I2C on a shielded cable. There are brushless and servo motors ...
0 votes
1 answer
166 views

LPF and AMP for ADC with op amp not giving sufficient gain

I have a project where I need to have audio input into atmega168PA. I've decided to implement it by using an electret microphone which will feed into op amplifier for low-pass filtering and ...
2 votes
1 answer
181 views

Should I be worried about the possibility of a microcontroller failing?

I'm making a commercial product for the first time and I am worried about the stability of my circuit over time. The product is a door interlocking system. It locks and unlocks doors using solenoid ...

15 30 50 per page
1
2 3 4 5
128