Post Created date
ATmega809 Interrupt Vectors - Datasheet Error
If it has a HW error , so it use a big ISR table, my bet is that it also have an other error which also change when the program flash is 8K+   And that is that the wrap...
Tuesday, 10 December 2019 - 18:14
How to check all bits in uint32_t ? 8 Bit microprocessor.
Sure, you can still find corner cases where finely-honed assembler beats 'C' LOL this thread show how much fiddling people are willing to do with C instead of just write it...
Monday, 2 December 2019 - 20:24
How to check all bits in uint32_t ? 8 Bit microprocessor.
That is actually a good compiler output. And it will also work up to 32 byte (256bits).   From asm point of view it use a LOT of registers (8), so in real code I fear...
Monday, 2 December 2019 - 18:12
How to check all bits in uint32_t ? 8 Bit microprocessor.
Perhaps I should stay out. I just laughs (or rather cry) about how stupid C compilers "still" are.   I could come up with 10 different ways to do this in ASM with a worst...
Sunday, 1 December 2019 - 20:45
How to check all bits in uint32_t ? 8 Bit microprocessor.
But this is not the idea with the code. It should cover a random bit, so optimise a loop for each bit don't help here! 
Sunday, 1 December 2019 - 18:47
How to check all bits in uint32_t ? 8 Bit microprocessor.
I just read #19 and it confused me, do you use PWM or just on/off ? (and don't use colour or it's set somewhere else?)  
Sunday, 1 December 2019 - 16:39
How to check all bits in uint32_t ? 8 Bit microprocessor.
The direct way :     for(uint8_t count=0; count < 32; count++){         if( data & (1UL<<count))    ...
Sunday, 1 December 2019 - 15:56
How to check all bits in uint32_t ? 8 Bit microprocessor.
The big question is why does OP want to use 32 bit in the first place (after all a AVR is 8bit).   The code in #7 take upto 61clk to check a bit (clk for a for loop and IO...
Saturday, 30 November 2019 - 21:26
Attiny85: Program to big. What can I do?
come on the job OP need should take less than 2K of flash. Is the next suggestion to start with a file system  and linux kernel, and therefor need 512K+ flash and about...
Saturday, 30 November 2019 - 21:18
Attiny85: Program to big. What can I do?
which compiler options do you use ?   try both -O2 and -Os   how big is the code (I assume it compile just with a size more than 100%).   in general don't use...
Saturday, 30 November 2019 - 15:26
How to check all bits in uint32_t ? 8 Bit microprocessor.
I had a look at the link in #7   And tried to follow the code, but I can't because lines like : 34               brpl 1b don't make...
Saturday, 30 November 2019 - 11:18
"Better" method to load UBBRL suggestions...
???  From #25 it very clear that 57600 and 76800 baud is wrong #define BAUD2400 191 #define BAUD4800 95 #define BAUD9600 47 #define BAUD1440 31 #define BAUD1920 23 #define...
Tuesday, 26 November 2019 - 18:13

Pages