Post Created date
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
Another debounce routine
They're static, they're automatically initialized. ... that said, stylistically I agree, explicit initializers are nice.
Wednesday, 10 April 2019 - 14:53
Code Fingerprint scanner in C.
probably not without a clearer statement of what you need help with.
Saturday, 16 March 2019 - 20:01
Atmega328p looping in initialization code, ignoring main while loop
With one exception, string literals in C include a terminating NUL byte, which has value 0, and the loop should terminate.   (The exception is if you use a string literal as...
Tuesday, 5 March 2019 - 05:24
Atmega328p looping in initialization code, ignoring main while loop
how quickly does it print? is it printing as quickly as you'd expect after a reset, or is it faster than that, or slower?   have you tried running your code on a simulator?
Monday, 4 March 2019 - 00:56
atmega328P: stack problem ?
What's the actual power supply like?
Wednesday, 27 February 2019 - 15:56

Pages