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
2 answers

Software PWM on AVR using delay

I am trying to accomplish a simple PWM generation using delays on an AVR ATMega16 What i am trying to do is simply fade a led from 100% to 0% duty cycle, and later i will expand it to control two colors of a bicolor led to have a nice effect. I have…
Dany Khalife
  • 1,850
  • 3
  • 20
  • 47
0
votes
2 answers

Simple avr program behaving weirdly "sometimes"

I am new to AVR, but i have programmed PICs before, only this time i am doing everything in linux too so you'll guess that i am using avrdude... My goal for this project is to change a bicolor LED's color depending on a certain state. By default,…
Dany Khalife
  • 1,850
  • 3
  • 20
  • 47
0
votes
2 answers

How to convert binary decimal into binary hex?

I have my first Assembly program running on an ATmega16 and now I want to convert a decimal number which is saved in a register called speed into a binary form of a hexadecimal number which can be displayed on a 7-seg display. For example speed has…
Treton
  • 1
  • 1
0
votes
0 answers

Implementing Admin menu in Codevision project with RFID-RC522 reader and ATMEGA164a, trouble in enrollment of key tags

I'm trying to make a project in Codevison, with ATMEGA164a, to be more specific, a contactless card reader with RFID-RC522. This project requires two interfaces, User-'U' and Admin-'A'. I started to implement the Admin menu, which allows to…
0
votes
0 answers

LCD displays garbage before restarting the power

this is a code that prints the word SMROO in the 4 lines , after uploading the project , this happens but when I turn off the power then turn it on again it works well , it also works well on Proteus , void main(void) { _delay_ms(2000); …
0
votes
1 answer

Rust: build for atmega16

I would like to write a simple program and compile it for atmega16. How do I add atmega16 as a compilation target? There are little to no docs about this... Thanks
kamkow1
  • 467
  • 2
  • 8
0
votes
0 answers

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 program. There is no problem when I program the…
0
votes
1 answer

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); \\ set clock source TIMSDK1 |= _BV(TOIE1); \\ Enable overflow…
Tony Gweesip
  • 194
  • 1
  • 9
0
votes
1 answer

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 were a stored password user will be ask to log-in,…
mrMatrix
  • 37
  • 5
0
votes
1 answer

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

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 then msb bits. This works well and I send my…
Aashkanpasha
  • 39
  • 1
  • 7
0
votes
1 answer

How do I implement a timer which turn a signal on and off (PWG) every few seconds on an Atmega324a microcontroller?

I'm programming an Atmega324a Microcontroller and I'm trying to implement a timer (in this case Timer1) which supposed to make a second led connected to my board blink. I also need to know how to identify the pin the led is attached to I've found…
0
votes
1 answer

How to receive strings from HC05 Bluetooth module using ATmega16 microcontroller

I am having problem in receiving string from HC05 to ATmega16. I am able receive characters but not able to receive strings. I want to control DC motor wirelessly using ATmega16 and Bluetooth module (HC05). I am sending the timer OCR1A values from…
0
votes
2 answers

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 continuously and the code won't get past the pin reading…
0
votes
1 answer

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 have 7 LEDs (PORTB.0..6) that should turn on…
0
votes
2 answers

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
  • 3
  • 1