![]() |
Forum Index : Microcontroller and PC projects : [MMBasic]BCDLib:12/18/24 Digits
Author | Message | ||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
Hi Here are the optimised/tuned 12/18/24 digit BCD integer arithmetic libraries. Each library comes with a test suite which I have used to test the library functions, and which also help demonstrate how to use the library functions in your own programs. When you include the library in your own programs, you should cut and remove the test suite code. These libraries are best downloaded to a uMite from MMEdit Ver 3.4.15 or later with Auto-Crunch and Delete Blank Lines turned on. The 18 digit library is particularly useful to anyone playing with DDS chips from Analogue Devices. 18 digits are sufficient to calculate the 32 bit tuning word without loss of accuracy up to around 60 MHz for the lower end chips such as the AD9850/51. Compared to the arbitrary precision (12~252 digits) library I uploaded earlier today, these optimised libraries are much faster, sometimes as much as 70% quicker than the generic library. I hope these libraries are interesting and useful to people Any questions/bugs/suggestions please get back to me. 73 Peter - GM8JCF 2014-08-17_163239_BCDLib12DigitsV1.zip 2014-08-17_163257_BCDLib18DigitsV1.zip 2014-08-17_163315_BCDLib24DigitsV3.zip The only Konstant is Change |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |