Decoding variable into 4 digits of BCD, are there simple ways to this?


Results 1 to 12 of 12

Threaded View

  1. #10
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Decoding variable into 4 digits of BCD, are there simple ways to this?

    The binary code you displayed is correct, however that is 82, not 52,
    52 would put "2" on the 4th digit AND the first digit as well. (the numbers are hex, by the way - not decimal)
    Last edited by Charlie; - 7th March 2020 at 11:52.

Similar Threads

  1. Best way or ways?
    By Ramius in forum General
    Replies: 9
    Last Post: - 1st August 2013, 02:01
  2. Ways to make code easily reviewable and extendable
    By Ted's in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 23rd August 2008, 00:10
  3. Array to simple Variable converting
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2006, 16:44
  4. Showing numbers in diffrent ways?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th July 2005, 15:57
  5. PIC problem, ways to do reset
    By lab310 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th May 2005, 14:31

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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