Post Created date
Issues with memcpy on SAML21
Did you mean to use memset rather than memcpy? Otherwise you're copying data from address 0, which is probably not what you want.
Tuesday, 12 June 2018 - 23:28
will using eeprom_update_block be more efficient?
clawson wrote: Well two things:   1) If you are going to perist over versions do it like this: typedef struct { int width; int height; uint8_t rate; uint8_t...
Wednesday, 23 May 2018 - 17:09
SAMD21G18 - Bug in MUL instruction? Extensive testing indicates hardware.
Maybe I'm missing something, but if you want to multiply two 32-bit signed values to get a 64-bit signed value, shouldn't $FFFFFFFF multiplied by $FFFFFFFF give you $...
Friday, 6 April 2018 - 23:34
Confusing behaviour of pointers
I'm going to question the purpose of declaring __hp1 and __hp2 as pointers in the first place. Why not simply make them instances of struct __heaplist like this? struct...
Thursday, 11 January 2018 - 15:52
Preemptive vs. Cooperative Multitasking
That appears to use the same technique as Protothreads, which was first released in 2005.
Friday, 22 December 2017 - 15:32
Linked Lists & ISRs
aarcane wrote: It won't perform an out of bounds read on the actual internal array named Buffer, but it will allow you to read past the end of the circular buffer data type to the...
Wednesday, 6 December 2017 - 23:41
Linked Lists & ISRs
aarcane wrote:That code is beautiful, but it leaves some interesting loopholes, such as double reading from the buffer, I don't see any double reading from the buffer. Which...
Wednesday, 6 December 2017 - 23:07
RET after doing BRCC
The "DEC" instruction doesn't affect the "C" flag. You have an infinite loop if carry is clear before the loop starts.
Monday, 4 December 2017 - 17:36
Write Arduino conditional branches in AVR ASM
sparrow2 wrote: One of the benefits with ASM is that you can evaluate in the order you want and that way speed the code up. in your example it could be that j very often is above...
Monday, 4 December 2017 - 15:54
Weird Debouncing Mistake ATmega328p
You can condense each test to something like this: press_down = (PINC & (1 << PINC3)) == 0; 
Friday, 17 November 2017 - 16:34
$1 MCU review — looking for AVR part suggestions
Wow! That's a very impressive write-up.   There seems to be an inconsistency between the chart and your writing.   You wrote:   Unfortunately, the STC8 simply does...
Wednesday, 15 November 2017 - 00:12
This is a goodian, tcp lost packets
I find The TCP/IP Guide to be a very useful and detailed guide to TCP/IP.   See the chapter TCP Segment Retransmission Timers and the Retransmission Queue...
Saturday, 4 November 2017 - 00:09

Pages