Post Created date
making a UART generic library adapt MCU differences
ali_aw1995 wrote: ... it's the address of the first register in the uart registers group   No, older AVR's do not have an ordering you can rely on to do it this way. ...
Thursday, 30 May 2019 - 19:15
making a UART generic library adapt MCU differences
ali_aw1995 wrote: the problem here is that there are some uart features that will be included in a specific mcu (UDRIE in AVR interrupt for example) that doesn't exist in...
Thursday, 30 May 2019 - 18:18
Solved: UART Error After Few Successful Attempts
You are only putting 20 bytes into the msg array.   --Mike  
Wednesday, 29 May 2019 - 03:58
General Timer Question about prescale.
theusch wrote: a decade or more ago, Atmel catered to your needs and released the Xmega.   I may have to look into this Xmega thing.   --Mike  
Tuesday, 28 May 2019 - 22:44
Atmega324P FFT LED Spectrum Analyzer
andreilica wrote:I will try the ADC mode with autotrigger at TIMER1 OVF and see what happens   I don't think you want to use overflow since I'd guess you want to set up CTC...
Tuesday, 28 May 2019 - 18:14
WSD2811 led time code in C, optimize further
clawson wrote: static inline __attribute__((always_inline))   Can this be added to a C++ member function?   The inline keyword originally was a hint to a C++ compiler...
Monday, 27 May 2019 - 23:06
How to "trim" a 32- bit INT?
MattRW wrote: $ avr-gcc -c -S -Os zz.c -o zz.s   That's the name of most of my programs!!!  ;-)   --Mike  
Monday, 27 May 2019 - 18:58
WSD2811 led time code in C, optimize further
I would at least remove all of the redundant code like this: void set_led_pin (bool on) { if (on) { LED_PIN_HIGH(); } else { LED_PIN_LOW...
Monday, 27 May 2019 - 18:54
Fine tuning a crystal in code
Is the "slide rule" usable on either of those watches? --Mike  
Monday, 27 May 2019 - 18:42
How to "trim" a 32- bit INT?
It looks like Matt's code will give 15-bit numbers for both positive and negative inputs, so change the divisor to 0x8000.   There's also an edge case for when the input is...
Monday, 27 May 2019 - 07:27
Atmega324P FFT LED Spectrum Analyzer
You can also trigger the ADC automatically by setting an Auto Trigger Source (ADTS bits) and turning the auto trigger on (ADATE bit).  The ATmega324P can use Timer0 OVF or...
Monday, 27 May 2019 - 04:28
voltage dividing digital signal into LMV331 comparator input
Interesting idea to use an LED as a sort-of-Zener, and you can also see when data is being received!   --Mike  
Monday, 27 May 2019 - 04:17

Pages