Unpacked BCD Maths


+ Reply to Thread
Results 1 to 10 of 10

Thread: Unpacked BCD Maths521 days old

  1. #1
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    688
    Thumbs Up
    Received: 91
    Given: 2
    Total Downloaded
    4.62 GB

    0 Not allowed!

    Default Unpacked BCD Maths

    Hi all,
    I have written & finished to check some maths for unpacked BCD arrays for very very large numbers that I will publish soon in the wiki.
    The division that I made with reiterations of subtractions costs a lot of machine time.
    for example: 46 084 500 000 / 45 000
    This division takes 65 seconds on the Amicus18 board with the FOSC at 80Mhz.
    Would not there be another solution to make division to reduce the execution time?
    Thanks for your comments.
    Alberto
    73's de Alberto ea3agv

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Senior Member GAMBOA's Avatar
    Join Date
    Nov 2004
    Posts
    424
    Thumbs Up
    Received: 19
    Given: 0
    Total Downloaded
    203.73 MB

    0 Not allowed!

    Default Re: Unpacked BCD Maths

    Hi Alberto,

    A PIC24 could do it faster.

    Regards,

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,689
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default Re: Unpacked BCD Maths

    Excuse my ignorance I have a question or 2

    Is the number 46084500000 the large end of the numbers you will need to process as thats still smaller than a Dword

    Did you convert the BCD to binary?

    I tested the maths example 46084500000 / 45000 and as an integer took 46us If you did some scaling you could get 1 or 2 decimal places for not much more work.
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Senior Member GAMBOA's Avatar
    Join Date
    Nov 2004
    Posts
    424
    Thumbs Up
    Received: 19
    Given: 0
    Total Downloaded
    203.73 MB

    0 Not allowed!

    Default Re: Unpacked BCD Maths

    Tim,

    The number 46 084 500 000 is 36 bits. A DWORD is 32 bits.

    Regards,


  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,689
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default Re: Unpacked BCD Maths

    Oops my bin calculator stripped some of the numbers off.
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    688
    Thumbs Up
    Received: 91
    Given: 2
    Total Downloaded
    4.62 GB

    0 Not allowed!

    Default Re: Unpacked BCD Maths

    Well, I have managed, after a lot of work, to write a new code that allows a division of 20 Bytes / 1 Byte or 64 Bits / 8 Bits in 6.5 mS with the FOSC of 64Mhz. I think it's very acceptable.
    BCD counters are easy to print or send by serial communication.
    To be continue...
    Alberto
    73's de Alberto ea3agv

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #7
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,280
    Thumbs Up
    Received: 78
    Given: 182
    Total Downloaded
    5.30 GB

    0 Not allowed!

    Default Re: Unpacked BCD Maths

    Am I misremembering, or was there an n-bit math package?
    George.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #8
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    688
    Thumbs Up
    Received: 91
    Given: 2
    Total Downloaded
    4.62 GB

    0 Not allowed!

    Default Re: Unpacked BCD Maths

    Hi George,
    Yes, you have remembered it well. The n-bit Mats has been written by Darrel Taylor. This code used binary arrays and was written in assembler.
    For the n-bit BCD Maths, I have used BCD arrays. And the calculations have been written from the beginning because the assembler instructions could not be used. Then everything is original, very different and I wrote it in basic PDS.
    Regards
    Alberto
    73's de Alberto ea3agv

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #9
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,280
    Thumbs Up
    Received: 78
    Given: 182
    Total Downloaded
    5.30 GB

    0 Not allowed!

    Default Re: Unpacked BCD Maths

    Fair enough Alberto
    George.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #10
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    688
    Thumbs Up
    Received: 91
    Given: 2
    Total Downloaded
    4.62 GB

    1 Not allowed!

    Default Re: Unpacked BCD Maths

    The N-Bits BCD Maths has been published HERE.
    73's de Alberto ea3agv

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. BCD Calculations please
      By fanie in forum The Lounge
      Replies: 12
      Last Post: 14th March 2010, 14:56
    2. BCD to BIN and BIN to BCD, a new look ?
      By Kapitan in forum Proton Plus Compiler v3
      Replies: 16
      Last Post: 9th August 2009, 00:27
    3. BCD and BIN
      By eleckits in forum Proton Plus Compiler v3
      Replies: 3
      Last Post: 17th September 2007, 10:33
    4. Word value to BCD
      By Peter D in forum Proton Plus Compiler v3
      Replies: 10
      Last Post: 4th May 2007, 05:23
    5. [SOLVED !] bcd to decimal
      By ADLIN SYSTEMS in forum Proton Plus Compiler v3
      Replies: 3
      Last Post: 31st March 2007, 14:24

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts