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
1
vote
1 answer

ATmega32 analog comparator code with interrupts not working

I wrote a code for my ATmega32 to light an LED using the analog comparator's interrupts but the ISR won't execute. I'm testing on Proteus. #define F_CPU 8000000UL #include #include #define LED_DDR DDRA …
1
vote
1 answer

Sending negative values via pyserial problem

I need to send mouse coordinates from python to arduino. As you know there is X and Y axis and there is some negative values like -15 or -10 etc. on those axis. Arduino's serial only accepts Bytes so bytes are limited with 0 to 256. My problem is…
1
vote
1 answer

ATMEGA32U4 PWM issue

I am developing a simple program to run a buzzer in AVR on a Teensy 2.0 (ATMEGA32u4) and I am having great difficulty getting the PWM output to work. The PWM output is on PB6 and I can test it digitally so I am not worried about the hardware setup…
1
vote
1 answer

how to show the solution explorer in Atmel studio

I want to add a library to my project but I can't find the solution explorer in the Atmel studio 7 where I can add the library how can I show solution explorer window in Atmel studio??
Mohammad Azzam
  • 83
  • 2
  • 10
0
votes
0 answers

Generating a PWM with different frequencies on Arduino Pro Micro using registers

I generate a PWM on Arduino and use the code: int buttonState10 = 0; void pwm6configure() { if (buttonState10 == 1){ TCCR4B = 15; } else TCCR4B = 11; TCCR4C = 0; TCCR4D = 0; PLLFRQ = _BV(PLLUSB) | _BV(PLLTM1) | _BV(PDIV3) |…
Ping-247
  • 21
  • 3
0
votes
0 answers

atmega328p traps after toggling several pins from input to output

I am trying use an OLED display with an atmega328p. The OLED uses an 8 pin data interface. Therefore I need to switch several pins between input and output and vice versa. If I switch one pin everything is fine but if I switch 2 or more than the…
0
votes
0 answers

Variable changes unintentionally after character Lcd is moved to display other variables

There is a project of mine which utilizes coordinates to be entered by the user and then processing them for sunrise and sunset time calculations. Although everything seems to work fine but there is something which I noticed recently and that is…
0
votes
0 answers

Is there another solution to the problem? I am required to change the status of leds by clicking on the button

.. //_____________Exo #define F_CPU 1000000L #include #include #include /****************************** Pin and Setting Definitions * ******************************/ #define ledPort PORTD #define…
tw in
  • 1
0
votes
0 answers

ds18b20 temperature sensor and atmega32

Hello i have microcontroler atmega32, 7 segment display and ds18b20 temperature sensor, i make sensor to read temperature and give me temperature, i need to know how to convert temperature in integer for represent in 7 sengment display this is the…
0
votes
0 answers

SPI Communication between ATMEGA 324PB and Arduino Nano

Here I'm trying to Send the SPI command from the master (Arduino Nano) to the slave(ATMEGA324PB). First Master receives a command from the serial monitor. When the serial message receives completely, the Master passes the message to the Slave.…
sgsi
  • 1
0
votes
1 answer

EICRA - External interrupt control register "A"?

while learning about the external interrupts, I have gone through the document of atmega328p. came across EICRA, why is that it is necessary to explicitly mention as A, when there isn't anything called EICRB(using ctrl+f, I have searched for EICRB…
0
votes
0 answers

how to calculate the value to be assigned to TCNT0 (timer0) in atmega32 when used to make a delay without using float variables?

so my problem is related to Timers in atmega32 in general, my problem is that I am using timer0 in my atmega32 as a delay timer with interrupts every unit time specified by the callee function, so for example, if the application user specified that…
abdo Salm
  • 1,678
  • 4
  • 12
  • 22
0
votes
1 answer

send string to atmega32 through bluetooth hc-05 module

If I want to send a string like " Hello World" from a mobile phone to a Bluetooth HC-05 module, then how to handle this string and make my logic accordingly ...? Is there any function to convert string to char? I am using an ATmega32 microcontroller…
0
votes
2 answers

error: expected ';', ',' or ')' before numeric constant in Serial communication ATmega32

I am trying to connect a Bluetooth module through serial communication. But the error which is " error: expected ';', ',' or ')' before numeric constant" occurred on the line where I defined the baud rate. can not find where the error is. Help would…
0
votes
0 answers

Memory overflow in atmega32

Currently, I am implementing a stop watch using atmega32 and six 7-segment. #include #include #include unsigned char sec1,sec2,min1,min2,hours1,hours2; unsigned char finished_flag = 0; int main(){ …