Post Created date
Simple formula for binary to BCD conversion
s'AVR wrote: I would be interesting to know how fast this formula is executed when using FPGAs.   Given a half-decent FPGA, it could process every bit in parallel, thus one...
Friday, 5 February 2021 - 11:06
Exponential Function
Incidentally, I believe some spreadsheet programs (hello, MS Excel) will try to make you an equation that follows a list of plotted points.  How well they do I do not know....
Wednesday, 3 February 2021 - 02:57
Exponential Function
Easy way:  Plot points and interpolate.  Just pick the points, draw straight lines between them, and you've successfully approximated the curve you want.  How close...
Wednesday, 3 February 2021 - 02:45
Exponential Function
'tis worth noting that rather a lot of complicated calculus can (and in some cases should!) be done in analogue circuits.  We can do exponentiation, differentials,...
Wednesday, 3 February 2021 - 01:16
Exponential Function
RC network.  Charge your capacitor to 0.4V and discharge it through a constant value resistor.    S.   (Actually, better would be charge it to 4V, and divide...
Wednesday, 3 February 2021 - 01:02
Fast conversion of Integer to BCD; assembly atmega328p.
Catalin Ioan Stanciu wrote:  "it's Hexa".   For some of my very early AVR designs, I didn't even bother to convert output ASCII into hex.  I just added 0x30 and...
Tuesday, 2 February 2021 - 23:15
Fast conversion of Integer to BCD; assembly atmega328p.
avrcandies wrote: get out your quine-mcluskey or other methods   I have programs that do that for me.     But a preliminary think says it should be doable....
Tuesday, 2 February 2021 - 23:10
Fast conversion of Integer to BCD; assembly atmega328p.
Of course, if you really wanted to convert hex to decimal fast, get external hardware.  Given that the point of converting to decimal is for display, and going straight...
Tuesday, 2 February 2021 - 22:49
Having Some non specific Issues
And sometimes the implementation screws it up, and you're better off writing the machine code to start with.   S.
Wednesday, 27 January 2021 - 21:42
Having Some non specific Issues
Docara wrote: I swear it's harder learning 'compiler' than it is C    You could, if you wanted to, write it in assembler from scratch!  S.
Wednesday, 27 January 2021 - 19:15
Having Some non specific Issues
I'm not going to give you the equation - you can Google it just fine, but I will give you a litl' rule o' thumb.   Imagine if you wanted 100uS per bit.  Then 0.2%...
Tuesday, 26 January 2021 - 19:38
Having Some non specific Issues
Ahh.  You may have slightly misunderstood the data sheet.  When the 2560 tells you that at 16MHz it has 0.2% error at 9600 baud (presuming you've set your UART registers...
Tuesday, 26 January 2021 - 19:21

Pages