Questions tagged [atmega16]

ATmega16 is one of Atmel's 8-bit AVR microcontrollers in the ATmega product range featuring 16KB programmable flash memory. Unless your question is specifically targeted towards ATmega16, consider using the more general [atmega] tag.

ATmega16 is one of 's 8-bit microcontrollers in the product range featuring 16KB programmable flash memory. Unless your question is specifically targeted towards ATmega16, consider using the more general tag.

96 questions
0
votes
0 answers

my LCD is not showing data with atmega16

I was recently asked for a college project with a temperature sensor. It was easy for simulating it on proteus and everything was alright. Then I tried to make it hardware but nothing is happening. The lcd works but no data actually appears on my…
0
votes
1 answer

AVR proteus delay not working

I have used an AVR ATMEGA16 block in Proteus and programmed it this way. Some other simple codes work fine. However I do not understand what is wrong with the delay function. The LED is always off. What is wrong? My Proteus connection…
bahraman
  • 11
  • 2
  • 3
0
votes
1 answer

ADC code in with atmega32

uint read_adc(uchar adc_input) { ADMUX=adc_input | (0x00 & 0xff); delay_us(10); ADCSRA|=0x40; //START THE CONVERSION while ((ADCSRA & 0x10)==0); // wait for the conversion to complete ADCSRA|=0x10; //clear the ADC flag return…
Komal
  • 85
  • 1
  • 2
  • 7
0
votes
2 answers

why is the clock of my atmega16 not working correctly, has anything to be configured?

i haven't connected any oscillator circuit in my atmega16. But doesn't it have to work on it's default clocks? Please answer me, if any other configurations are required or settings have to be done in dumper program itself? I am using code vision…
0
votes
0 answers

reading cause for start-up of atmega16

Here is my code for reading the MCUCSR register and making alarms from the 3 bits PORF, EXTRF, WDRF. I expected this to be trivial, but it does not work. Any idea? static uint8_t mcucsr __attribute__ ((section (".noinit"))); static volatile…
0
votes
1 answer

Implementing timer code for Atmega8 into Atmega16

This code snippet is written for Atmega8 taken from clapper circuit using Atmega8. Can anyone convert this code snippet for Atmega16 with a little explanation. As I am trying to implement the same for Atmega16 and having some trouble with the timer…
0
votes
2 answers

AtMega16 LED cube

The code is for LED cube and I want to add new feature. When someone click on pushbutton which is conected to PORTB0 current light effect should be changed. I try sommething but it doesn't work. The program is for ATmega16, and code is written in…
user1556831
-1
votes
0 answers

How to address last byte in program memory of an ATmega16 AVR micro controller?

Consider the following code portion in AVR assembly for the ATmega16 micro controller: LDI ZH, high(DATA << 1) LDI ZL, low(DATA << 1) LPM R16, Z .org $ffff DATA: .db 7 This should load the value stored at DATA into register R16. But here's my…
polemon
  • 4,722
  • 3
  • 37
  • 48
-1
votes
1 answer

How Arduino tone() was created?

I am trying to understand how tone function works. seems like I can use tone function in a non-PWM channel as well. can you please explain how tome() function was written? If a timer was used then how that was implemented?
Rag
  • 1
  • 2
-1
votes
1 answer

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 certain byte , and in the super loop some times the…
-1
votes
1 answer

Issue with receiving a byte from ATMEGA2560

I m trying to receive a byte from Atmega2560 at an unexpected time ( using USART ) on my pc. So how do I ensure that i don't miss the byte in my python code ( which has may functions running)
krrish
  • 353
  • 3
  • 15
-1
votes
1 answer

Driving a bi-color 8*8 led matri with Max7219 and Atmega 16 or similar microcontroller

I have a common anode bi-color led matrix with 24 pins and want to drive two of these using one microcontroller . So I decided to try Max7219 driver for that. But being a novice I'm having a hard time figuring out what to do and the online…
Shahad Ishraq
  • 341
  • 2
  • 11
-1
votes
1 answer

Is ATmega32 8-bit or 16-bit?

Is ATmega32 an 8-bit or 16-bit microcontroller? While reading Mazidi's AVR book it was stated that RAMEND in ATmega32 is at 0x085f which is a 16-bit address. Extract from the book here.
Ahmed Adel
  • 51
  • 5
-1
votes
2 answers

Communication b/w two WiFi modules using Arduino Ide

Firstly, I'll just give you a brief introduction about our project... its "Speech controlled Home Automation System" where we are controlling the Home appliances by the voice or speech commands. We're successfully done with the voice recognition…
Manje
  • 411
  • 4
  • 7
-2
votes
1 answer

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 value of the SSD, but it only makes the led blink…
Mohamed Mostafa
  • 582
  • 1
  • 3
  • 12