Questions tagged [atmega32]

ATMega32 is an 8-bit AVR microcontroller with 32 kiB of flash.

A relatively high-end microcontroller, thus 8-bit RISC. Still in production as of 2021, but the newer ATMega32A is also available.

Tag [avr], and don't tag [atmega32] unless your question is about specific features or performance of this microcontroller. (You can still mention in the question body what hardware you're using, even if it's probably a general AVR question)


Specs

https://www.microchip.com/en-us/product/ATmega32 links a summary datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/2503S.pdf and various more detailed stuff.

  • 32 KB ISP flash memory with read-while-write capabilities
  • 1 KB EEPROM
  • 2 KB SRAM
  • 54/69 general purpose I/O lines
  • timers, USART, 8-channel 10-bit A/D converter
  • 0 to 16 MHz (or 0-8 for the ATmega32L model)
  • Supports AVR's multiply instruction with 2-cycle performance

See also https://www.elprocus.com/types-of-avr-microcontroller-atmega32-and-atmega8/ and other search results.

81 questions
0
votes
1 answer

monitor the values of registers in bits

I wrote a simple code : start: ldi r16,12 ldi r17,-56 rjmp start I want to see the values of r16 and r17 in bits in ATMELStudio7 how is it possible? thanks
0
votes
1 answer

Output Compare match doesn't happen - AVR Atmega32

I'm trying to count my clicks on a push button (Coun and simulates it on 4 leds it must count till 9 , then TCNT0 equals OCR0 , so Interrupt is fired and TCNT0 becomes zero again and so on . but it continues after 9 till 255 . output compare…
Ali K.
  • 7
  • 4
0
votes
1 answer

This is the error I got in Proteus (PC=0x00E8. [AVR AD CONVERTER] Reference value = 0. [U1])

Got this error when I uploaded my elf file of the line following robot(virtual bot in proteus) What does the error mean?
Koti
  • 1
0
votes
1 answer

SPI implementation stuck on “while(!spi_is_tx_empty(WINC1500_SPI));”

I'm currently implementing a driver for the WINC1500 to be used with an ATMEGA32 MCU and it's getting stuck on this line of "while(!spi_is_tx_empty(WINC1500_SPI));". The code builds and runs but it won't clear what's inside in this function to…
Sahil Bora
  • 173
  • 1
  • 12
0
votes
1 answer

Sending data from atmega324p to arduino by USART

I'm using Atmega 324p to send each second the character '0' to Arduino but instead it receives this: Serial Monitor output: Char :⸮ Char :⸮ Char :⸮ Char :⸮ Char :⸮ Char :⸮ Char :⸮ Char :⸮ Char :⸮ Char :⸮ Char :⸮ Char :⸮ Char :⸮ Sofware used: Atmel…
0
votes
1 answer

ISR_INT0_PD2 won't work but main function is infinitely working ATMEGA32

The below is a code to enable interrupt INT0_vect when PD2 is pressed. The code doesn't ever execute the ISR, but always executes the counter loop from 0 to 9 on the 7 segment in PORT C in the main Function. Also tried the sei(); instead of enabling…
Binnudeya
  • 1
  • 2
0
votes
0 answers

How to input two time in ATmega32 by keypad

I want to input 2 numbers into ATmega32 by keypad. By my professor code. This project is quite hard for me, I don't fully understand the code. The question is: Input two hexadecimal numbers by buttons and save to R20, then display the number of 1s…
-1
votes
0 answers

TFT ILI9163C trouble

I am trying to use a 1.44' TFT display in my project, but i'm programming in c++ and i'm using an arduino library, with the arduino frameword. if I start the code with void Setup() the code runs perfectly, but if i change it to int main() it just…
-1
votes
1 answer

Check number range in Preprocessor macro

To set the clock prescaler on the Atmega32u4, you have to set TCCR0B according to this table: If you want the prescaler to be 64, you would write this: TCCR0B |= BV(CS01) | BV(CS00); btw, here is BV(): #define BV(x) (1<
-1
votes
1 answer

Result of adding numbers in AVR MCU is not corrext

I program the BMP280 sensor (pressure and temperature sensor) with the AtMega32. One of the elements of measuring with a sensor is the conversion of the "raw" value into a "human readable" value, I have to read the calibration values from the…
Mavimix
  • 119
  • 1
  • 8
-1
votes
4 answers

I want to run two functions simultaneously on AVR microcontroller. Is there any method to do so?

int main(void) { DDRC = DDRC | (1<<2); DDRC = DDRC | (1<<3); while (1) { //openSolenoidValves(100,60); //startStepperMotor(); } void openSolenoidValves(double air, double oxygen) { …
Yesitha
  • 75
  • 1
  • 5
-1
votes
1 answer

Read data from DHT11 using ATmega32

The problem is this: I want to display on the LCD, the data transmitted by DHT11, but I fail to do so. Simulation on Proteus This is the main code: https://pastecode.io/s/nuw0hxkc LCD library: https://pastecode.io/s/xh93auwq DHT11 library:…
-1
votes
1 answer

Convert Decimal to binary for AVR assembly Atmega32a

I want to convert my C program to a AVR Assembly program thats converts the decimal number into a binary number. This program is specified for the Atmega32a. Can someone help me ? Thankyou. This is the program that i need to convert to Asssembly: …
Nar
  • 1
-1
votes
1 answer

AVRDUDE slow upload on atmega32

I'm using eclipse software and when I want to upload my code to the MCU(atmega32) with a clock of 16MHZ the avrdude takes longer than it should, however the program runs as it should but the only problem is the avrdude uploading time. the following…
-1
votes
1 answer

interrupt based LEDs up counter on an atmega32

l am designing an interrupt based number counter which shows the values as they increment on 8 LEDs using an atmega32. My problem is my ISR(interrupt service routine)is not able to light up the LEDs as l increment from INT0below is the code l made,…