Discussion Title | Created date |
---|---|
Half-second delay by Timer 1 in CTC mode is much shorter than expected Hello, I am writing a half-second delay function using Timer 1 CTC mode (mode4), for the Atmega32. This is my code #include <avr/io.h> void delay(void... |
Monday, 26 August 2019 - 21:20 |
ADC gives unexpected binary numbers in proteus I am writing a code to use the the ADC peripheral of the Atmega32. I use the 'ADC_init' function to give the ADC choices for Vref, number of single ended channel, and division... |
Thursday, 22 August 2019 - 14:52 |
How does the compiler know the proper function to call when a certain interrupt occurs? using function attribute to handle interrupts. I am using the function attributes to handle interrupt in the Atmega32. I write this void __vector_1(void) __attribute__((signal)); void __vector_2(void) __attribute__((signal... |
Tuesday, 20 August 2019 - 12:06 |
Mapping a switch pressed in a keypad into the character it represents I am writing a code that detects a key press in a 4 X 4 keypad, it detects the row and column of the pressed key successfully and gives them to me. The question now, how can I... |
Tuesday, 6 August 2019 - 17:03 |
A character LCD does not display - AtMega32 I am writing the character 'H' on an 16X2 character LCD in 8-bit mode, but it does not write for some reason. The connection and simulation are as follows: As... |
Saturday, 3 August 2019 - 15:14 |
The AtMega32 goes strange in an arithmetic statement. In Atmega32, I am writing a code for a function that creates a delay using tmers when the user gives it a number representing the milliseconds he wants as a time delay. Bool... |
Tuesday, 23 July 2019 - 00:05 |
A switch and a LED problem I am using AVR AtMega 32, and developed a driver for the GPIO of the microcontroller. On start up, the LED is OFF. The following code's purpose is to toggle a LED only once if a... |
Saturday, 20 July 2019 - 21:22 |