Post Created date
Filtering receive data on UART echo
You almost certainly need to actually identify the messages, because otherwise, the three bytes you're looking for could occur elsewhere in messages. (For instance, it's possible...
Friday, 15 November 2019 - 23:13
delete post
Most communities don't generally let people delete posts -- posts on technical topics are of interest to other participants, they aren't only for your benefit. But if they do,...
Monday, 28 October 2019 - 15:59
Copy the code from an Atmega8a to another one.
It's not obvious that anything here that the user wants to copy is protected IP. If the friend made their own dongles, rather than copying the vendor's, they're not copied...
Wednesday, 2 October 2019 - 15:06
How to convert and store uint16_t value into 4 Hex chars?
Hang on.   +4?   Shouldn't the 4th element be [3], or *(AT_Send + 3)?   0, 1, 2, 3. [4] of a 4-character string is outside the string.   This is why it's...
Monday, 23 September 2019 - 01:38
How to convert and store uint16_t value into 4 Hex chars?
int is fine for that. but you could also write this as "AT_Send[4]" or "AT_Send[k]". If it's not working, probably something else is up.
Sunday, 22 September 2019 - 21:01
How to convert and store uint16_t value into 4 Hex chars?
So, one of the problems here: String literals are, in principle, not modifiable storage. It's undefined behavior to write into a pointer to a string literal.   You don't need...
Sunday, 22 September 2019 - 17:26
Custom ATmega32u4 board does not get recognized
that looks like really good soldering, but i do want to point out, the bottom-left side, the bottom-most pin, of the 32u4, looks almost like the pin's hovering above the pad, in...
Sunday, 15 September 2019 - 17:39
Try to understand compiler logic about static vars/funcs
Very good catch there! The TWI stop might take a couple of cycles, and so might a function return...
Friday, 30 August 2019 - 02:30
Lock bits info
I feel like that's sort of awful advice. Humans are, quite consistently, incapable of being 100% flawless. There will be a bug. Eventually. Designing for what to do when that...
Tuesday, 21 May 2019 - 13:32
longjmp() at the end of an ISR ? Or Goto+flag ?
No.   Stop.   You don't know where your code was when your interrupt fired. If you leave the ISR via longjmp, you are not going back where you were before it was called...
Monday, 13 May 2019 - 11:33
display a bitmatrix
Flash is not writeable during runtime. You need to have enough sram for the data you want to be updating live, plus a fair bit of extra space for overhead.   There's...
Friday, 19 April 2019 - 17:09
I2C Stopping Project Functionality - ATmega328P
You can read it, but I don't think you can interpret it meaningfully without actually doing the calculation.   That said, I think the data sheet's indeed saying that you can...
Friday, 12 April 2019 - 03:42