Electronics > Microcontrollers
20-bit BIN2BCD (Assembly)
jpanhalt:
Just FYI
Attached is the code I have been working on for converting 20-bit binary to BCD. More discussion of that is here:
https://www.eevblog.com/forum/microcontrollers/converting-bcd(mm)-to-bcd(inch)/
It is based on a polynomial approach developed by Payson and posted on PICList many years ago. Related links:
Link and explanation to 16-bit BIN2BCD by Payson w/ explanation by Dattalo:
https://pic.hallikainen.org/techref/microchip/math/radix/b2bu-16b5d.htm
Link to 17-bit BIN2BCD:
https://pic.hallikainen.org/techref/microchip/math/radix/b2bu-17b5d.htm
DavidAlfa:
I think you'd better post your code in github, much easier to find by anyone if described with the proper tags (PIC, pic16, assembler, binary to bcd, bin2bcd ...).
Here it'll get lost in no time unless someone specifically searches for "bin2cbd".
Sacodepatatas:
--- Quote from: DavidAlfa --- ...someone specifically searches for "bin2cbd".
--- End quote ---
Somebody searching for a "binary to cannabidiol" converter will not have much luck at eevblog.... 🤣
jpanhalt:
Thank you for adding marijuana to what Google will index for that code. :-DD They deserve it.
As an aside, I was in grad school when a 1-step synthesis for THC was published. It got a huge response, and the starting material soon disappeared from every chemical catalog.
DavidAlfa:
:-DD now that's a hard conversion...
Navigation
[0] Message Index
[#] Next page
Go to full version