Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 17:53 07 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : [MMBasic]BCDLib:12/18/24 Digits

Author Message
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 06:35am 17 Aug 2014
Copy link to clipboard 
Print this post

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
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024