Post Created date
Versatile AVR Code for Dividing 32-Bit Number by 24-Bit Constant
avrcandies wrote: Keep in mind the ornaments serve a purpose & prevent some mistakes.   And, even by using ornaments always, I couldn't avoid making silly mistakes...
Saturday, 26 February 2022 - 04:39
Versatile AVR Code for Dividing 32-Bit Number by 24-Bit Constant
grohote wrote: You should test my examples and then write a comment. You are wasting /our/ time because you NEVER tested this adiw-sbci solution/   Do test this: ...
Friday, 25 February 2022 - 21:58
Versatile AVR Code for Dividing 32-Bit Number by 24-Bit Constant
grohote wrote: KerimF wrote: I am afraid that [ sbci   r30, -1 ] is compiled as [ sbci   r30, low(-1) ] not as [ sbci   r30...
Friday, 25 February 2022 - 09:29
Versatile AVR Code for Dividing 32-Bit Number by 24-Bit Constant
grohote wrote: Perhaps just '-1' can be enough, without 'byte': sbci   r30, -1   I am afraid that [ sbci   r30, -1 ] is compiled as [ ...
Thursday, 24 February 2022 - 23:37
Versatile AVR Code for Dividing 32-Bit Number by 24-Bit Constant
grohote wrote: Not necessary to mystify those two, just use 255 instead.     SBCI  r30, byte3(-1)          SBCI  r31,...
Thursday, 24 February 2022 - 21:34
Versatile AVR Code for Dividing 32-Bit Number by 24-Bit Constant
grohote wrote: Not good     MUL r18,r22             ;2abcd     MOV r28,r0  ...
Thursday, 24 February 2022 - 14:12
Versatile AVR Code for Dividing 32-Bit Number by 24-Bit Constant
grohote wrote: Welcome back, with new goodies! My question is related to this line:        LDI r23, byte3(reg_Kd) ; byte4 ?   also, some movw saves...
Thursday, 24 February 2022 - 10:52
Fast AVR Code for Dividing 16-Bit Number by 8-Bit Number
avrcandies wrote:Optimizing is fun; it can be addictive drug, making us zombies roaming the land of AVR.    By the way, don't you know that the same algorithm could be...
Sunday, 20 February 2022 - 13:32
Fast AVR Code for Dividing 16-Bit Number by 8-Bit Number
avrcandies wrote: the final  MOV r13, r22 ;1bcdWhy not just forget the mov and use r22....since r22 is never used anywhere after this point (unless you are...
Sunday, 20 February 2022 - 10:32
Fast AVR Code for Dividing 16-Bit Number by 8-Bit Number
avrcandies wrote: Very nice!!   SUBI r20, low(-1) ;1d SBCI r21, high(-1) ;1d, +13d=[52d]why not adiw r21:r20, 1 ??  (that may not be a savings...
Sunday, 20 February 2022 - 10:19
ATmega8 – Delta Modulation – Audio Sinewave Generator
Brian Fairchild wrote: KerimF wrote: Naturally, after I found out how to write a code that outputs continuously successive bits (not necessarily a multiple of 8), read from...
Sunday, 30 January 2022 - 08:33
ATmega8 – Delta Modulation – Audio Sinewave Generator
Who-me wrote: There is also this, in ATmega8 data  : Bit 0  SPI2X: Double SPI Speed Bit, allows a /2 setting   You are right. I didn't use it because I...
Sunday, 30 January 2022 - 07:39

Pages