Questions tagged [atmega]

ATmega is a product line within Atmel's AVR micro-controller family.

The official website can be found here.

819 questions
-3
votes
1 answer

Implement a sharp right turn using atmega8 for line follower

I am new to AVR programming, and I am trying to implement a sharp right turn using atmega8. I was able to implement the straight line path but cannot implement a sharp right turn. Here is my code: `#include #include int…
-4
votes
1 answer

atmega embedded C programming

I am trying to learn embedded C programming for atmega. I am stuck with this error called avr-gcc.exe(0,0): CreateProcess: No such file or directory I have written a simple C code of about 10 lines. /* * RAJESH_AVRC_PROG.c * * Created:…
-4
votes
2 answers

how the usb spi flashing device write program to atmega?

the atmega microcontrollers have the internal programmable memory.So the usb flash device write data to internal memory of atmega through spi or it store the program and works as slave?i also want to know can the atmega get program,file in the…
Lan...
  • 105
  • 1
  • 6
-4
votes
1 answer

How to Calculate Total Time using Microcontroller

Suppose, I have a motor. I want to count the amount of time the motor runs daily and at the end of the month count the total time the motor ran. How can I do this using an ATmega 32?
-5
votes
2 answers

Execute things after a certain time on Arduino

I have an Arduino Nano with an ATmega328P. I'm using Atmel Studio to program it in C and I need to have the following program: I have 5 inputs (PC3-PC7), each should have their separate timer and each drive 2 (one red, one green) LEDs. Each…
Geatrix
  • 113
  • 1
  • 1
  • 7
-5
votes
3 answers

How often/when does C execute content within if/else statements?

I'm working on an embedded (avr) project, and basically I want to print out a few different things based on how long a pin has been pressed down. I can't figure out what happens as the value passes through and satisfies if statements along the way…
MS9T1
  • 11
  • 2
-6
votes
1 answer

Code not excuting correctly the delay is not working at all any help is appreciated

Delay is not working after burning the code on at mega i tried most of stuff i found online but nothing worked any help is highly appreciated thanks in advance. while (1) { PORTC.0 == 1 ; delay_ms(2000); PORTC.0 == 0 ; …
-8
votes
1 answer

Finding errors while deciding

#include #include // Ceramic Resonator #ifndef F_CPU #define F_CPU 3686400 // 4MHz #endif // UART #define UART_BAUD_RATE 9600 #define UART_BAUD_CALC(UART_BAUD_RATE,F_OSC) ((F_CPU)/((UART_BAUD_RATE)*16L)-1) int main(void) { …
Abay
  • 11
  • 1
1 2 3
54
55