Questions tagged [atmega]

ATMega is a family in the AVR series of Atmel microcontrollers. This is the main microcontroller of the Arduino prototyping platform. Please Specify the specific part number in your question.

Filter by
Sorted by
Tagged with
1
vote
0answers
30 views

Arduino Bootloader for ATmega168PA

I have burned an arduino bootloader to an ATmega168PA. I want to use the internal 8MHz oscillator for the ATmega, and I used an arduino Uno as an ISP. For that, I did the following: Created the ...
0
votes
1answer
41 views

ATMEGA328 USBasp schematic

I have some problems about programming my ATMEGA328 with USBasp programmer. I have found different schematics for the connections and I do not know which I have to use (and I'm afraid to break ...
1
vote
1answer
25 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,...
0
votes
1answer
27 views

in AVR, if i use .ORG 0 with the main program , where is the interrupt vector table and .INCLUDE file data go?

I am studying AVR from the book "the AVR microcontroller and Embedded system by Mohamed mazidi" and "atmega32A data sheet" in the book, it puts samples of cade which start like this ...
0
votes
2answers
42 views

Using Atmega 328P barebone with non-standard crystal oscillator

The standard barebone setup would be with a 16Mhz crystal oscillator and 2 caps: https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard However unfortunately I only have the following crystals ...
0
votes
0answers
31 views

ATmega168 versions for low power applications

I am interested in using an ATmega168 for a simple application, which has however very strict power limitations. As a result, the important thing for me is to find the version with the least power ...
0
votes
1answer
29 views

Porting from iccavr project to Atmel studio problems with Atmega2561 8 bit MCU

I'm currently in the process of having to port a large project from ICCAVR known as the imagecraft IDE to Atmel Studio 7.0 and have had great difficulty trying to get the Atmel build of the project ...
1
vote
2answers
96 views

Programming my ATmega8 board using Arduino IDE

I made a board with an ATmega8A (SMD-TQFP package). I installed the minicore library in the Arduino IDE. Now I'm able to flash the hex file using Atmel Studio 7 and able to read serial well. But my ...
0
votes
1answer
85 views

Problems with UART in ATmega

I've been programming my atmega 328p to automate my coffe machine. The timer is set using the bluetooth module HC-06, or by a set of configuration buttons that I'm gonna develop yet (the full code is ...
0
votes
1answer
45 views

Mismatch of memory location

I am getting this error when I burn with eXtreme Burner. The LED turns on but does not blink. I am using ATmega8 AVR board.
0
votes
0answers
30 views

SPI implementation stuck on “while(!spi_is_tx_empty(WINC1500_SPI));”

I'm currently implementing a driver for the WINC1500 to be used with an ATMEGA32 MCU and it's getting stuck on this line of "while(!spi_is_tx_empty(WINC1500_SPI));". The code builds and runs but it ...
0
votes
0answers
58 views

What is XCLR and EOC

As the title says, looking at IC9 (BMP085), could someone explain why XLCR and EOC are connected to P-XCLR/P-EOP and why there is no other match in the schematic? Are these connected at all? If not, ...
0
votes
1answer
64 views

received data through UART showing on 7 segment display using ATmega16

I am writing code for Atmega16 for receiving data from another PCB through UART. I want to display the data on a 7-segment 4-digit display, but when code for UART and 7-segment is enabled the data is ...
5
votes
2answers
543 views

Does the counter of an Atmega328 still count inside interrupt handler?

When you enter the interrupt service routine of an Atmega328 that is triggered from a compare event of the TCNT and the value that is set, will the counter TCNT start counting again or rather, keep ...
0
votes
0answers
83 views

AtMega328p and TCA9548 problem

I have a custom made PCB that has an AtMega328p MCU and 4 MLX90614 IR Sensors that are being interfaced by a TCA9548 I2C Multiplexer. When I first got my hands on the board I had 10k pull-up ...
0
votes
0answers
50 views

Pin TX0 -> 1 and RX0 <- 0 on ATMega2560 for USB serial communication

I am currently working on a project where I have to make my pc communicate with my ATMega2560 through the USB serial port. The ATMega2560 is the receiver. I have been told that the pins ...
0
votes
0answers
17 views

HC05 + Atmega32

I'm working on a project that receives one byte from Android phone through Bluetooth. And i'm using HC05 module for transmission. But the problem is i'm receiving and sending wrong chars. For now i'm ...
1
vote
5answers
144 views

How to establish communication between microcontroller on a bread board and laptop using usb cable?

I want to learn about microcontrollers and use them in some projects. But I do not want to buy an Arduino, although that is what would be easy for doing projects. This creates a problem in programming ...
0
votes
2answers
33 views

TXC 9C-11.2896MAAJ-T XTAL Type

For the purposes of configuring an ATmega324A for use with an XTAL, is the TXC 9C-11.2896MAAJ-T considered to be a low power crystal oscillator or a full swing crystal oscillator? Please see page 39 ...
0
votes
0answers
17 views

WatchDog control (MAX6369KA+T) with a Microcontroller (Atmega328P)

There is a hardware watchdog MAX6369KA+T, which has the functions of setting the standby time and enable / disable via contacts (SET0 / SET1 / SET2). At the moment, I control them using external ...
0
votes
2answers
98 views

Power on Atmega

I want to design an alarm circuit using Atmega328 microcontroller. How much voltage supply to the IC will be better? In Arduino I see that 5v power supply used. For Atmega328 which will be better? 5V ...
0
votes
2answers
35 views

Does an ISP clock interfere with the on-board clock when programming via ISP?

I am planning to use ISP programmer to program my new AVR board. I use an 8 MHz crystal on my PCB to clock the micro (atmega328p-au). Now, as I understand the ISP programmer will provide its own clock ...
0
votes
2answers
21 views

What is IDC connector pitch on a USBAsp?

I am planning to use a USBASP programmer to program one of my boards, and I want to use a fitting receptacle on my board. I fail to find the exact pitch that the USBAsp's IDC connector has (as I ...
0
votes
0answers
39 views

How to connect an SPI angular sensor (AVAGO AEAT-9000-1GSH0) with RS485 transceivers to an AVR microprocessor?

I need to connect an AVAGO AEAT-9000-1GSH0 angular sensor to an ATMEGA32U4 processor. I designed two versions: one using IC-s, one using resistors. I do not now witch of my two designs is better (or ...
0
votes
2answers
114 views

Interfacing Atmega 2560 with 74ls240 inverting buffer

I am trying to light up the 7 segment display using inputs to the Port B pins, causing output on the Port k pins, which are inverted using the 74LS240 chip. The Arduino is correctly outputting the ...
1
vote
1answer
105 views

Analog input of Atmega328PB keeps dying

We have a quite complicated device which runs on Atmega328PB MCU which is incorporated on the analog of Arduino Nano board. User deflects joystick, and MCU controls stepper motor drivers accordingly, ...
1
vote
1answer
40 views

Weird bit stretching on ATmega2560 uart

When I transmit serial data on an ATmega2560 I sometimes get bit stretching, corrupting the characters: I send character 0x55 twice at a baud rate of 115200; this is the yellow trace in the image. ...
0
votes
0answers
31 views

ATmega328p: Does SPI conflict with timers TC1, TC2 or interrupts PCINT2, PCINT0?

My code - based on my library MultiTrans - uses timers TC1 and TC2 as well as interrupts ...
1
vote
1answer
72 views

Using FTDI with AtMega328P@3v3,8MHz and RFM69

I am running an AtMega328P-PU at 3v3, 8MHz with external crystal successfully. I am able to burn the bootloader using ISP and flash the chip using FTDI and the clock seems right. The mega is ...
6
votes
7answers
2k views

Compress .hex file for micro-controller [closed]

I am currently writing a program in AVR Studio, here is the build *Memory Usage : * ...
0
votes
0answers
47 views

Programming an ATmega644 with 32.768 kHz external clock and USBTinyISP

I accidentally changed the fuse bits on my ATmega644PA chip so that it is expecting a 32.768 kHz signal in the XTAL1/XTAL2 inputs. I am using the a USBTiny programmer (the Sparkfun AVR Pocket ...
0
votes
0answers
31 views

Help With ATMega32 Fuses

I decided I wanted to learn Atmel Studio to be able to work with all their microcontrollers problem being i'm trying to use a brand new ATMega32 with default fuse settings and an external crystal ...
0
votes
1answer
72 views

Atmega328p connected to an NRF24L01+ not working

I've been working on a project for some time right now, I'm trying to make a modular sensor system with atmega's and nrf24 nodes. I've made a custom pcb but it isn't working. I've tried a lot of ...
0
votes
1answer
61 views

Abnormal microcontroller circuit behavior when I connect SMPS

I designed a device that calculates current and power using a CT and an ATMega328P-AU microcontroller. The board I designed was simple and I didn't account for noise cancellation on the ADC lines and ...
0
votes
0answers
32 views

atmega 328 tqfp sketch upload

After soldering my atmega328 tqfp smd chip on my PCB, i can see that my chip is working with a standard blink sketch uploaded earlier The problem is that i cannot upload a new sketch using FTDI ...
0
votes
1answer
75 views

1602a LCD - Voltage drops to zero when both VSS and VDD are connected

I'm currently trying to connect a 1602a LCD screen to an ATMega328P MCU: As you can see, I use an Arduino Uno for power supply and as ISP. However, when I connect both the first (VSS) and second (VDD)...
0
votes
1answer
243 views

How to make 1uA consumption on Attiny13a?

I'm measuring my standalone Attinty13a (internal 128kHz) current consumption with li-ion accumulator (3.7v, 220mAh). Here is my schema and code: ...
0
votes
1answer
116 views

What is the effect of brown out detection on frequency? [closed]

I want to use ATMega16 microcontroller to strobe a flash for an industrial camera. So timing is important. I enable BOD (brown out detection). Does BOD affect frequency or timing? If yes, is ...
0
votes
0answers
118 views

ATMega328P - DS18B20 temperature sensor returns incorrect temperature values

I'm using a Dallas DS18B20 sensor to measure temperature in conjunction with an AVR ATMega328P microcontroller (using this AVR C library to implement the code). Unfortunately, the value always returns ...
0
votes
1answer
67 views

Counting the number of button presses in ATMEGA16A

I am looking forward to counting the number of presses of a button in a 2 seconds interval in ATMEGA16A. I have prepared some code below. Is there another way around? My first solution was to perform ...
0
votes
1answer
83 views

Placement of the microcontroller on the back of the board with LEDs

I am designing a board with 9 SK6812 LEDs. On the back of the board I want to place the Atmega328P microcontroller. I have doubts whether the heating of the LED can affect the operation of the ...
3
votes
1answer
85 views

AVR diagram of functions calling, ISR and main loop share the same resource

I made a simple diagram of functions calls to illustrate the potential problem which bothering me a little. As you can see, my task_list (which is simple linked ...
0
votes
1answer
63 views

Atmega328p ADC - value keeps returning zero when connected

I'm currently try to connect a DS18S20 temperature sensor to the atmega328p. I have wired AVCC and AGRD to the same power rail on my breadboard as normal VCC/GRD and AREF is not connected. When I try ...
2
votes
1answer
106 views

Why does my Atmega328 clock seem to be off by a factor of 2?

I have an Atmega328 chip I am trying to debug. I have a sketch that blinks an LED and echoes back things received over the RX/TX pins. I am using the "Import Arduino Sketch" feature in Atmel Studio 7. ...
1
vote
2answers
51 views

AVR ATMEGA644 print Local time

From this tutorial, I can print local time when I code using codeblock. https://www.tutorialspoint.com/c_standard_library/c_function_localtime.htm I am measuring capacitance by atmega644. I read the ...
2
votes
3answers
193 views

What does “DC Current VCC and GND Pins” in ATmega8 datasheet mean?

I'm using for some DIY project ATmega8-16PU, during the reading of the datasheet (Datasheet Revision 2486AA–AVR–02/2013 ) I've encountered in section "Electrical Characteristics – TA = -40°C to 85°...
-2
votes
5answers
147 views

Bitwise operations in embedded C if button pressed on AVR circuit

I am using ATmega32 AVR microcontroller. I am confused about bitwise operation in embedded C. I understand (AND, OR, XOR, NOT) logic gates very well, but there is something that I don't understand: I ...
0
votes
1answer
40 views

ATMEGA 328 TQFP32-08 Vs atmega 48 TQFP [closed]

what is the difference between ATMEGA328 TQFP32-08 and Atmega48 TQFP ? does he share the same pins ? I'm a bit confused, : https://eu.mouser.com/datasheet/2/268/Atmel-8271-8-bit-AVR-Microcontroller-...
0
votes
1answer
106 views

Programming ESP8266 in circuit

I've designed a simple WS2812B LED Controller utilizing the ATMega328p and an ESP8266 to connect to WiFi. The two are supposed to be communicating over UART. I've made a mistake of not testing the ...
0
votes
0answers
73 views

Atmega328p datasheet mistake “OCRA”

I was reading the atmega328p datasheet, and suddenly, i saw that a register is mentioned called "OCRA", on page 108 and page 160, which normally, should be register "OCR0A", which is widely mentioned ...

1
2 3 4 5
22