Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

ATmega16A SMD Package Stop Working after afew hours

نتایج ترجمه Hello I wrote a program for ATmega16A microcontroller, 6 of the pins are defined as input and 6 of the pins are defined as output. UART communication and a timer are also defined in the ...
M Torkashvand's user avatar
0 votes
1 answer
967 views

AVR-GCC Overwrites Interrupt Vector Table with Main

I have a simple C program written for an ATmega168: #include "avr/io.h" #include "avr/interrupt.h" volatile uint8_t intrs; int main(void){ TCCR1B |= _BV(CS12) | _BV(CS10); \\ ...
Tony Gweesip's user avatar
1 vote
0 answers
119 views

Why doesn't my LED turn on when a certain distance is measured? Atmega328p and ultrasonic HC-SR04 sensor

I am using an Atmega16 to control a LED with an ultrasonic sensor. Basically the LED turns on if the distance is smaller than 100cm and otherwise it turns off. #include <avr/io.h> #include <...
Khenan's user avatar
  • 11
-1 votes
1 answer
864 views

what is the best way to synchronize the serial communication between two microcontrollers using UART?

Suppose we have two microcontrollers , UART module was initialized to work as a Transmitter and Receiver ( full doublex communication ) for both of them. Before the super loope one of them send a ...
mrMatrix's user avatar
0 votes
1 answer
106 views

Is that the right way to check if an existing password is stored?

I'm creating an application with 2 ATMega16 micro controller. The second micro should check if a password is stored in the external EEPROM then send this information to the first one. So, if there ...
mrMatrix's user avatar
0 votes
1 answer
893 views

Avr Problem: in spi, spdr register is 8 bit but my number is 16 bit [closed]

I work with atmega16, in both side master and slave. I want to send a number between 100-999 that entered by keypad to the slave. Numbers are 16 bit, but spdr register is 8 bit, so I send first lsb ...
Aashkanpasha's user avatar
0 votes
2 answers
258 views

My guitar tuner code in CodeVisionAVR using an ATmega164 can't handle more than 4 samples

I'm designing a guitar tuner through CodeVisionAVR and using an ATmega164 microchip for my university project. If i set the number of samples any higher than 4, the chip LEDs will just flash ...
Comaroni Andrei's user avatar
0 votes
1 answer
161 views

I'm designing a guitar tuner through ATmega16p and CodeVisionAVR and i just can't get my code to run

I'm designing a guitar tuner through an atmel mega16 processor and CodeVisionAVR for my university's second project. I have connected a mono jack to the processor's PINA.7 (ADC converter) and GND. I ...
Comaroni Andrei's user avatar
0 votes
2 answers
286 views

How to declare a matrix that is stored in PROGMEM

I am trying to write a header file that will drive a LED Matrix but I'm stuck with a syntax error which I cannot resolve I've already added " ; " everywhere I thought it was necessary and checked ...
Spam97's user avatar
  • 3
1 vote
0 answers
296 views

WDR seems to disable watchdog timer

I'm testing some assembly code with atmega16 in Proteus 8 with AVRASM compiler and it seems that the WDR instruction isn't work correctly. From the datasheet, WDR must just reset the watchdog counter....
Wolf's user avatar
  • 11
0 votes
0 answers
129 views

USART connection between ATMega16 and SM5100B-D gsm/gprs module

I have been struggling with usart interface between these two devices. After the code has been ran, i can see TX and RX flashing, but no message actually passes through, which is my ultimate goal. Any ...
Mile's user avatar
  • 1
-3 votes
3 answers
125 views

how can merge one array values in one integer c++

How can i merge one array values in one integer and upside down? example: a[]=0b1011,0b1111 to 10111111 and 10010101 to b[]=0b1001,0b0101
Fardin Noruzi's user avatar
0 votes
2 answers
3k views

Interfacing 16*2 keypad and LCD with atmega32

I have a disappointing problem with a keypad module that when pressing on any of its keys, it normally shows up the key pressed on an LCD module. The problem is whenever I press the key, the rows stop ...
Muhammad Fouad Alharoon's user avatar
-2 votes
1 answer
156 views

Atmega16's PORTs don't work

I was trying to interface a seven-segment-display with Atmega16 chip with its decoder (74ls47), and increase the value it displays using ISR. The ISR should turn a led on and off then increase the ...
Mohamed Mostafa's user avatar
0 votes
1 answer
898 views

How to connect multiple devices on avr(atmega16/32) using UART?

atmega 32 has only one (TX/RX) .In case of connecting many devices working with UART what should I do?....Arduino has something called software serial Is it available in atmega 32 or how to ...
Hussien Mostafa Elkholy's user avatar

15 30 50 per page