Discussion Title | Created date |
---|---|
Understanding Timer timings Alright I must have some misunderstanding of timers: Say you were simply going to toggle a pin every timer2 overflow on a atmega328p, so you'd have something along the lines of... |
Monday, 16 May 2022 - 02:32 |
Avrdude not retreiving fuse bytes For some reason, all of a sudden avrdude has stopped retrieving fuse bytes. Furthermore, it doesn't seem to be recognizing the microcontroller? When I just run the command... |
Monday, 16 May 2022 - 01:48 |
Weird waveform appearing at pin. This question is sort of a follow up to a post I made here recently. Referencing some of the ideas and code examples provided in that thread, I'm working through the suggestion of... |
Sunday, 15 May 2022 - 07:41 |
Program getting stuck after a function is called. Not sure why. So what's happening is after the `display_digits()` function gets called (from the PCINT0 ISR), the MCU (I'm using an ATmega328P) hangs, and doesn't go back to sleep. Furthermore... |
Sunday, 8 May 2022 - 22:54 |
[SOLVED] How to reduce current consumption in power save mode with an ATmega328P? I am trying to reduce the power consumption of my MCU, and I currently have done the following to try and reduce power: PRR |= (1 << PRADC); // Disables the ADC... |
Sunday, 8 May 2022 - 06:49 |
Dealing with an -Wincompatible-pointer-types warning I have the following code which is causing the -Wincompatible-pointer-types warning: union SensorData { uint64_t raw_sensor_data; struct { uint16_t... |
Saturday, 7 May 2022 - 20:37 |
Are the 8-bit AVR's Little or Big Endian? For example, uint64_t num = 0x28C015FEE; uint8_t *num_ptr = # int main(void) { for (char i = 0; i < 8; i++) { printf("%d\n", num_ptr[i]); } }if... |
Saturday, 7 May 2022 - 07:00 |
[SOLVED] Help with trying to interface with a DHT22/AM2302 using a ATmega328P I'm trying to read the temperature from a DHT22/AM2302 sensor using an ATmega328P and display it on a seven segment, but I am running into some issues. I'm thinking its my... |
Wednesday, 4 May 2022 - 00:10 |
Can an interrupt pull a local variable of a function off of the stack? Say you have some function that creates a variable bar (so bar would get pushed to the stack) unsigned char foo(void) { unsigned char bar; // ... code ... return bar... |
Tuesday, 3 May 2022 - 19:05 |
Where do I find the documentation outlining the use of interrupts for the ATmega328P? In the datasheet for the ATmega328P, it only lists a table that shows the sources for vectors, as shown below: However, what the datasheet seems to omit is how to... |
Tuesday, 3 May 2022 - 00:12 |
Why was the external interrupt vector name chosen same as the interrupt for 3 of the pins? As seen in the table below, the interrupt vectors that cover PCINT[7:0], PCINT[15:8], and PCINT[23:16] are PCINT0, PCINT1, and PCINT2 respectively. This is somewhat... |
Tuesday, 3 May 2022 - 00:04 |
Unusually long programming times when programming ATmega328P I'm programming an ATmega328p using avrdude, and to program it with a program size of 3074 bytes, I am waiting 13 seconds. That seems pretty dang long to me. I have tried using... |
Saturday, 5 June 2021 - 08:35 |