Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
28 views

Keypad changing ports for usage of Timers

I want to use timers of ATmega 32 ( PD4 and PD5 ) for pwm mean while i'm using Port D for keypad the available ports for me is PA7 and PC7 i want to know how can i change my code of keypad init. ...
-1
votes
0answers
24 views

Don't able to program ATmega2560

I have developed custom PCB based on ATmega2560 microcontroller. I'm not able to upload code to ATmega2560. I'm using USBasp programmer and ProgISP to upload hex file. Programmer and ProgISP are ...
0
votes
1answer
49 views

Visualise a bit pattern

My objective is to send a bit pattern of 1000 bits from one microcontroller (PIC or Atmel) to another one using the SPI method. How can I visualize the bit pattern so I can find the errors of ...
0
votes
0answers
33 views

ATMEGA328p-AU BootLoader

I have ATMEGA328P-AU chip, to burn the bootloader I used ARDUINO Uno Board as "ARDUINO as ISP" with setup Board: Nanno. I'm getting the following error. While looking for the solution I got ...
2
votes
0answers
79 views

PWM to synth control voltage improvements

Just built this little circuit to control my Moog Werkstatt. The plan is to make a MIDI-to-CV converter and add more CV outputs and of course a GATE output later. But before going further, I thought I'...
1
vote
1answer
96 views

Voltage detected across Micro USB cable shielding

I designed a Keyboard PCB using an ATmega32U4 with the data lines wired up to a Micro-USB B Receptacle. Brand: Molex; part number: 1050170001. The USB ground is directly connected to the Micro-USB B ...
0
votes
2answers
105 views

Using Arduino Mega as Atmega2560 AVR development board with Atmel Studio 7

(updates at end) Qualifier: I am posting this here and not on the Arduino Stack Exchange because my question is about firmware development and not Arduino development. Project: I am designing a PCB ...
0
votes
3answers
85 views

Disable RC oscillator in ATmega328 for FCC compliance

With respect to the topic below, I was trying to find where in the AVR documentation does it say the 8 MHz RC internal oscillator is "disabled" when CKSEL is selected to a different source? I am ...
1
vote
1answer
61 views

Regulate an RGB LED via PWM, both in brightness and in hue

I am looking to regulate programmatically an RGB LED both in terms of brightness and in terms of hue. So far I have learned that I can use PWM to do this, but I am unsure as to what the details are. I ...
0
votes
0answers
58 views

Microcontroller resets with motor driver (L293D)

I am making a simple robot with 2 BO motors driven by L293D on ATmega328P (took out from Arduino Uno). The robot when tested on Uno works fine. But when I put it on the board that I have designed (as ...
0
votes
1answer
23 views

How to combine 5V-powered ATmega16A and MAX44009? [duplicate]

I'm programming my ATmega16A through LPT port using uisp -dprog=bsd. Although ATmega16A supports \$V_{CC}=2.7\,\mathrm V\,..\,5.5\,\mathrm V\$, to make logical ...
3
votes
4answers
526 views

UART sometimes missing first few characters on ATmega328P

I wrote some code for the ATmega328P, (Packaged in a module that clones the Arduino Nano). Normally when I send UART data from my computer to these micros, it is received just fine. However I have ...
0
votes
2answers
76 views

when DC supply is given to ATmega16 micro-controller, I want it to continue functioning from the same state, from where it was stopped

I am writing my code in BASCOM-AVR. It has 2 if loops and 1 for loop inside the 1st if loop. I will give DC supply to ATmega16 controller. Now, what I want is, if the power is cut off when code is in ...
0
votes
0answers
84 views

Simulating a 7-segment 4 digit display in Proteus using Atmega16

I have an issue about simulating a 7 segment display in Proteus. So basically, I am using an ATmega16 microcontroller along with a ULN2803 transistor array. I connect the 7 segments + decimal point ...
0
votes
0answers
31 views

IC enable pin control with Atmega 328p

I want to control the FP6293 ICs enable pin with the Atmega 328p pin PD5 (configured as digital out). The EN pin (active high) on the IC is rated at max 6V with a minimum HIGH voltage of 0.96V. As the ...
0
votes
1answer
68 views

I can't get WDT (watchdog timer) working on ATmega2560

I have a running application on the ATmega2560 and it is working OK. Now, I wanted to implement Watchdog feature in order to reset the chip when the application takes longer to operate for some reason....
3
votes
3answers
212 views

Choosing the right microcontroller [closed]

How do you choose a micro-controller for your project? My hardware requirements are : I2c SPI ADC channels SMD package 3.3V operating voltage A few GPIOs. There are so many microcontrollers ...
0
votes
2answers
65 views

Atmega328 doesn't respond after power loss while uploading program

While uploading program to atmega328 I accidentally disconnected it from power. After that I get "target doesn't answer" message while trying to upload. I am using USBasp programmer, connections are ...
1
vote
0answers
39 views

Not All I/O Pins Work for Nixie Driver on Arduino MEGA and ATMEGA1284PU

I am tearing my hair out, and help would be immensely appreciated. I am developing a nixie RPN calculator. I am using nixies being driven by K155ID1 nixie drivers, connected to an ATMEGA1284PU. I ...
0
votes
2answers
116 views

Software needed for ATMEL ATMEGA8A-PU microcontroller in Ubuntu 18.04? [duplicate]

A few days ago I discovered a ATMEL ATMEGA8A-PU microcontroller and I wanted to write code on it . But I don't know what software to use in Ubuntu 18.04 for the microcontroller. Can I use the Arduino ...
0
votes
0answers
102 views

Update Mega328 Transistor Tester with Arduino Uno micro controller

I'm trying to update Mega328 Transistor Tester with Arduino Uno micro controller. Here is my Uno and Mega328 connection and Avrdude setting, including particular error: avrdude.exe: verification ...
5
votes
2answers
434 views

Trying a PWM audio application. I can't figure out why I'm getting a loud beep overlapping my sound

I want to play some short audio clips (they range from 50ms to 100ms) from my atmega168 microcontroller and output it to a cheap speaker. I was following this tutorial but because I'm using a ...
1
vote
2answers
79 views

How to correctly send the data I received via I2C over UART?

I am using an atmega328p and writing firmware to display the data I receive via i2c in putty. I read the data I receive as follows: ...
0
votes
1answer
29 views

How To Program Atmega256rfr2 using ISP?

I have a new custom built PCB circuit incorporating an atmega256rfr2 chip. I really can't program the chip using AVRISP MK11 based programmer (Olimex brand). But it can program the Atmega328p DIP chip ...
9
votes
1answer
171 views

Do the new “PB” variants of ATmega have a bug in the brown-out detector?

We've been using ATmega48/88/168/328 microcontrollers successfully for many years in many of our products. We have now considered to switch from the A and PA variants to the new PB variant (because we ...
0
votes
1answer
51 views

.dw directive in AVR assembler

the piece of code below is mentioned in 8-bit AVR's instruction set as an example to explain the LPM instruction. ...
1
vote
1answer
66 views

ATmega328p PIN reading

...
0
votes
1answer
152 views

AVR Can Write I2C, but Fails to Read (Fails to Write Register Address)

I'm using an ATMega328 DIP Package with a TLE493D(A0) (and manual) 3-axis hall effect sensor. I've done successful reads/writes to other I2C devices (AT42QT2120), but I'm having issues with the TLE493....
0
votes
2answers
60 views

Frequencies in atmega (uC)

I want to use an atmega328p with nrf24l01 + wireless module and communicate it with an arduino nano with nrf24l01 +. My question is this, if I use different frequencies in the microcontrollers, will ...
1
vote
0answers
69 views

Can't manipulate array with atmega8

I am quite new to AVR programming and I am currently having some troubles with arrays. I am trying to write an Arduino code that will be run on a Atmega32u4. The goal is to communicate with a AX12-A ...
0
votes
1answer
81 views

Resistor between GND and + 5V in Arduino

I design a board based on ATMEGA328P (as in Arduino UNO). Now I am busy creating a power line. My controller will be installed on the electrical panel, so I need to provide a reliable, noise-resistant ...
0
votes
1answer
86 views

Bit rate of uart communication

I have a setup which communicates between PC(windows) and Atmega2560 using UART. On PC side I am using Pyserial. From the PC I am sending a paragraph of text byte-by-byte to Atmega2560. The UART ...
1
vote
1answer
65 views

Creating chained digital current loop

I need to send some digital data and power for long distance (around 60 meters) using only 3 wires. Data speed is low, something like 100bps is enough, 1000bps would be perfect (12.5Bps and 125Bps). ...
3
votes
1answer
297 views

Using Atmel Studio 7 to program Arduino Uno

I will like to use AS7 IDE to program the Arduino board, for start Im using Arduino UNO with ATMEGA328P-PU chip. Im using Windows 10 professional First I used the Arduino IDE in order to run/...
0
votes
1answer
44 views

Different I/O pins of same PORT of ATMEGA8 not providing exact output [closed]

I have written code to switch ON/OFF some LED light connected different I/O pins of same PORT (i.e PORTD) of atmega8 microcontroller. This process is performed using android app by sending different ...
1
vote
2answers
52 views

SPI between ATmega32 and ATmega328 is not working

I have been trying to accomplish connecting ATmega32 and ATmega328 using SPI Hardware connections: ...
0
votes
1answer
58 views

Have I bricked my ATMEGA3328p by setting

I was playing around with setting the "system clock prescalar" (CLKPR). I'm now in a situation where I can see that the clock is 244.9KHz, using my logic analyser and the "Clock output on PORTB0" ...
0
votes
1answer
67 views

Using UDRIE0 interrupt in ATmega168

I only have some limited knowledge in interrupts. This is what I understand about following ISR functions ISR(USART_RX_vect) will get called when a new data ...
1
vote
2answers
124 views

What is the application of capacitor between Vcc and GND [duplicate]

This is a schematic mo ATmega328P used circuit. It has paralleled two 100nF capacitors between Vcc and GND. (C8 and C9) What is the function of this two capacitors and why they are paralleled?
1
vote
1answer
240 views

AVR ATMEGA328p Blinking Example

I wanted to test a simple blinking script on my ATMEGA328p. The breadboard setup (tested and works fine). But the LED does not blink. I probed the voltages across the board and they are showing up ...
3
votes
2answers
191 views

SPI Flash Memory with ATMega1284

I have connected a SST26VF064B 8Mb flash memory IC to an ATMeag1284 as shown in the following diagram. My plan is to talk to it using SPI. Note that all capacitors in the schema are 100nF. When ...
1
vote
1answer
75 views

AVR - strange communication between ATmega8A and bluetooth module

I'm using ATmega8A-PU AVR microcontroller, and HC-05 bluetooth module on a breadboard. What I'm doing here, is to connect to BT module from my mobile phone and toggle the LED state by sending ...
0
votes
1answer
57 views

LCD module not initializing

I've got a project where I need to use an LCD module, so I started pondering around with one (1602A). So far I've wired it up with my microcontroller which is an Atmega168PA and written an ...
3
votes
2answers
254 views

How to test a CPU watchdog on board?

The watchdog of an ATMEL ATXMega128 should have been enabled with fuses. It triggers a reset, if the timer was not reset within the configured time span. I want to be sure, that it is enabled and ...
0
votes
0answers
164 views

ATMega168 UART weird characters

I'm learning AVR programming using this book I was able to run and get output using the code provided along with the book. I use Proteus to simulate the output, since I don't have controller in hand. ...
0
votes
3answers
170 views

GPIO state of MCU (AVR) with no supply voltage

In general: what state do the GPIOs of a MCU (an AVR in my case) have when there is no supply voltage and the MCU is "off". Am I right that the pins are floating as there isn't any "reference" for the ...
0
votes
2answers
72 views

Atmega88p with shift register 74hc595

I need to use a shift register to control multiple leds, but I need to control each one individually. The idea would be to send a buffer with the data, however I need to have several active leds and ...
0
votes
1answer
59 views

DMX receiver 40V signal

I am creating a DMX receiver circuit. The dmx that is received from a controller (USB DMX dongle) is converted via a transceiver (SN75176BP) to a signal which can be understood by an ATMEGA328P. I ...
0
votes
2answers
106 views

ATmega 32 Clock Frequency Issue

I'm currently using ATmega32 device with external clock speed of 16 MHz . the problem when i use a delay of for example 16,000 ms in the software, it actually delays only a 1000 ms in actual world. I ...
0
votes
2answers
95 views

Atmega 8 on Arduino Uno

For a uni project I am tasked with programming embedded C onto an ATMEGA 8 uC, and there aren't enough development boards for everyone to use at uni, so I have an ingenious solution. I have several ...