Questions tagged [atmega]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

Will the atmega8-U2 work with Arduino IDE

I use a homemade board that hosts a PIC16F1829 and an ATmega328P on the same board. We use the ATmega328P with the Arduino IDE and the PIC with the MPLABX IDE for about 100 EE students a semester at ...
user avatar
1 vote
2 answers
23 views

Can we use more than one timer when programming an Atmega32/16?

I tried to do a simple program using the ATmega16 microcontroller, the program is to toggle two LEDs the first one by using timer0 interrupt and the other using timer2 interrupt.
user avatar
1 vote
0 answers
14 views

Error while burning bootloader onto ATMega 8A using Arduino Mega 2560: stk500_getsync() attempt 10 of 10: not in sync: resp=0x80

I'm using an Arduino Mega 2560 to burn the bootloader onto an ATMega 8A without a 16MHz crystal. When I press the 'Burn Bootloader' button, it gives me this error: Arduino: 1.8.19 (Windows 10), Board: ...
user avatar
  • 11
1 vote
1 answer
84 views

Working with two analog sensors, ATmega16

I want to work with two analog sensors connected to ATmega16. The first one is the temperature sensor (LM35), connected to PA0. The LED should be ON when the temperature goes high. The second one is ...
user avatar
  • 11
1 vote
1 answer
81 views

Can't burn fuse bits on ATMega168 with Arduino Uno as ISP

I have an ATMega168 that I am programming via my Arduino Uno as ISP. I can burn the bootloader and transfer a hex file just fine, but I can't seem to be able to change the fuse bits. I found a lot of ...
user avatar
1 vote
0 answers
159 views

I2C / TWI: set up atmega328p as slave

I try to run an atmega328p as a i2c slave. even with the bare minimum the slave acts as its not wired at all: NACK is transmitted after request (see logic analyzer). The master should read a constant ...
user avatar
  • 21
0 votes
2 answers
281 views

Where is the Arduino IDE boards.txt file for Nano Every located?

My Arduino Nano Every runs at 16Mhz (but the 4809 can support internal 20Mhz). I know it may be possible to alter the boards.txt file and set it to build for 20Mhz. However, I can't find the boards....
user avatar
  • 384
2 votes
1 answer
418 views

ATMega4809 via Nano Every marked as 20Mhz, but does this confirm it is actually at 16Mhz?

If you go to the official Arduino Nano Every page and click the Tech Specs tab, you'll see that it lists it as running at 20Mhz. Turn On Verbose Compile However, if you go into the Arduino IDE and go ...
user avatar
  • 384
0 votes
1 answer
41 views

Is it possible to use the same power source for the arduino and a high current

I've need to control some leds which draw 300mA with an arduino (actually an atmega) and after some searching I think the following is the circuit I need, but I'm not really sure if the power source ...
user avatar
1 vote
1 answer
266 views

Arduino Nano Every I2C PORTMUX

Arduino Nano Every schematic informs us that we can use ATMega4809's pins PF03 and PF02 to communicate via I2C. ATMega4809 manual says in page 19 that in order to use those pins as I2C we need to use ...
user avatar
  • 201
2 votes
0 answers
84 views

TFT Screen & ATMEGA168

I have a Arduinio nano and a ATMEGA168. I'm using the ST7789 library. The sample code which comes with the library runs perfectly and runs the display when using the Nano, but the same code does ...
user avatar
1 vote
1 answer
248 views

WS2812B Reset time

i am trying to implement the ws2812b with an atmega8,but i didn't understand a thing very well. if i pull low for >50 us, it says it resets, but what does that mean? it resets the current LED all ...
user avatar
  • 13
1 vote
1 answer
753 views

Nano Every clone with ATMega4808 not recognized

I've bought an Arduino Nano Every clone/compatible (not a standard Nano V3) that uses an ATMega4808 instead of the ATMega4809 the official Nano Every uses. This rather insignificant change of chip is ...
user avatar
1 vote
1 answer
37 views

About maximum length of matrix can be use for matrix invertsion on atmega32

what is the maximum length for matrix can be used for matrix inversion on atmega32,for example,can we implement matrix inversion for 15x15 matrix on atmega32? And if it can be done on atmega32..does ...
user avatar
0 votes
1 answer
133 views

Atmega32A fuses

I have Atmega32A and 16 MHz quartz, with 22pF capacitors. Tell me, please, how to set the fuses correctly so that the MK works from external quartz. Will MK work when setting 0xFF LOW and 0xD8 HIGH? ...
user avatar
1 vote
1 answer
230 views

Connect multiple pins to same VCC using breadboard

Ok so I am pretty green as far as AVR programming is concerned so bear with me. I am doing a project with an ATmega32 MCU on a dev board which has 4 VCC pins. The project includes a GPS, SD card and ...
user avatar
  • 13
1 vote
0 answers
292 views

Radio receiver: deep sleep when no byte arrives, and wake up when a byte arrives?

This code works to listen for bytes via radio (with a 433 Mhz receiver module) with the Manchester library and Manchester code, and do an action when certain bytes are received: #include "Manchester....
user avatar
  • 364
3 votes
1 answer
570 views

Cannot set MOSI pin low even after ending SPI

I'm building a battery operated device and must shutoff MOSI pin during sleep because it leaks current through the SD card if I don't (about 400 µA). Problem is, it won't stay off. I've looked at ...
user avatar
  • 151