Binary to bcd

Hi guys,
Trying to design a circuit for a project and it requires binary to bcd conversion. I am aware that the chip that does this is no longer available, but I know it can be done using shift registers and adders, just have no idea how to implement it.
It needs to be created using logic (not programmable ROMs etc), and needs to update so the double dabble method appears the best way to do it. If anyone can tell me or atleast help me with how to implement this, it would be much appreciated.
Dane

If it's not to late and you want a solution, that only uses 7400 logic:
I've made a circuit two years ago that is easy to make and to upgrade.
I made it and it displayed 0-15 on two display.
The picture is how to connect all the chips together.
No matter how clever and complete your research is, there is always someone who knows more.
Attachments:
7400.png ‏271 KB

Similar Messages

  • Where can I find a 74185 IC?

    Hi all.
    I'm working with the trial version of Multisim Pro 10 to design a circuit for a class (we have the licensed version of 8, but it's not available for my computer).  My circuit requires a 74185 IC, a binary-to-BCD converter.  We have it in our lab, but Multisim doesn't.  Does anybody know where I can find this chip for Multisim?  Does anybody have a substitute?  I tried building it with shift registers, but I couldn't get it to work.  Thanks!

    I looked in the database for something to substitute and found nothing. I even went back to my MS 2001 version and looked there and still came up empty. I searched for a spice model and found none. The only thing I did find was the Datasheet and that wasn't very helpful.
    Basically, there is nothing available for this IC. This is probably why it wasn't included in MS. You find that sometimes and there is nothing you can really do.
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day

  • Create and read byte data

    How to create a byte data, I dont know how to call it, i will clear it below,
    Header | Message |
    Username | 01101001 |
    How to create like this, sorry if my question is not clear, i will clarify the doubt if you have.

    >
    Actually i am working in a sensor project, the sensor reads the heart beat and body temperature and then it sends through Bluetooth, so first i have to read it and later i have to convert it into string. Hope it clears now.
    >
    No - it isn't clear now.
    You need to explain how the sensor hardware is providing the data. Is it as a stream of bytes? What is the interface between the pc and the sensor? How does the Java app know that there is sensor data available? How does it query the sensor to determine the status.
    If the sensor provides a pulse value of '60' how does the sensor encode that value? Does it use binary? BCD? floating point?
    A binary value of '60' would be hexadecimal 0x3c and in binary would be 00111100. Why would you want to display 00111100? No one would understand what that value means. Shouldn't you display '60'?
    Provide sample sensor data, the format the sensor uses and what you are really trying to do with the data.

  • NI 9870 and binary coded decimal (BCD)

    I have a scale that outputs the weight in 4 digit ASCII form which I would like to input into a CompactRio 9072 with a NI 9870 card and convert to a binary integer. The weight appears as the 7th to 10th character on lines that are terminated by a CR. I am thinking I will need a loop that once the 10th character is read, the 4 least significant bits of the 4 characters are converted from BCD to binary and the character counter resets to 0 when a CR is read. I need a good method for converting BCD to an integer value in either labview or vhdl. The rest of the logic for this project is in vhdl, so I would not mind adding the conversion logic there, except that all the algorithms I have found require decimal division or comparison in several clock cycles.
    Solved!
    Go to Solution.

    Hello imr
    Thank you very much for getting in touch with us!
    I believe the following community example will resolve part of your issue.
    Binary String to Number
    https://decibel.ni.com/content/docs/DOC-11704
    I have also provided some further information for those unaware of what Binary Coded Decimal represents.
    What is Binary Coded Decimal (BCD)?
    http://digital.ni.com/public.nsf/allkb/59C2A05C123​008F286256CA90069A6F8
    Thank you for choosing National Instruments!
    Sincerely,
    Greg S.

  • Is there a way to convert decimal or hexadecimal string to bcd on labview 8.0 or 7.1??

    i am trying to convert user input data to bcd data. is there a way to do this besides converting each individual data bit to binary?

    How do you want the data represented in memory? Because the BCD code only takes 4 bits there are several options:
    One byte per digit with the unused bits set to zero
    One byte per digit with the unused bits set to ones (hardly anybody does this anymore)
    Two digits stored in each byte
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Writing binary data in same format as with FORTRAN code

    Hello,
    I would like to write out data in a binary format that is used by FORTRAN unformatted direct access files. I have some code in FORTAN that produces the correct format; however, I have been unable to reproduce the output with a Java method.
    The FORTAN code to write an array Z is:
    REAL Z(72,46,16)
    OPEN(8,FILE='grads.dat',FORM='UNFORMATTED',
    & ACCESS='DIRECT',RECL=72*46)
    IREC=1
    DO 10 I=1,16
    WRITE (8,REC=IREC) ((Z(J,K,I),J=1,72),K=1,46)
    IREC=IREC+1
    10 CONTINUE
    The Java code I was able to come up with to write out an array arrTS produces binary data differently:
              FileOutputStream fosOut = new FileOutputStream(filename,false);
              for(int x=0; x<this.xmax; x++) {
                   for(int y=0; y<this.ymax; y++) {
                        ByteArrayOutputStream bosOut = new ByteArrayOutputStream(2);
                        DataOutputStream dos = new DataOutputStream(bosOut);
                        dos.writeFloat((float)this.arrTS[x][y]);
                        byte[] arrByte = bosOut.toByteArray();
                        fosOut.write(arrByte);
              fosOut.close();
    Any help is greatly appreciated.
    Best regards,
    Stefan

    I am using a software to read in the data that I am calculating in Java. I cannot easily change the format that software is reading; therefore, ASCII is not an option.
    The software that reads the data states something about "Little-endian". Do you which Java classes to use for that?
    Best regards,
    Stefan
    First, you need to find out the format of yourFORTRAN
    output. Is it ASCII? EBCDIC? BCD? IEEE?
    Big-endian? Little-endian?
    Until you know that you won't know which Javaclasses
    to use.Also I wouldn't be too sure different FORTRAN
    compilers use the same data format.
    In my view the best system interchange format still is
    the ASCII text file. Why don't you let the Fortran
    program use it to write its data to file. It should be
    no problem reading it from Java.

  • BCD to decimal and viceversa

    Hi,
    Am working on conversion of decimal to BCD (Binary coded decimal) and viceversa. I require BCD for calling Cobol from Java using JNI.
    Can anybody help me out in giving a pointer or an algorithm for doing the same.
    I Googled on the web for any info on BCD conversion, but all in vain. Even Java Forums here in Sun also donot have any info on the same.
    Please help me out.
    TIA,
    Prashanth Babu.

    You'll have to adjust this to do put the output where you want. Surely not the only (and maybe not elegant):
       /** Write specified string into stream as two Binary-Coded Decimal (BCD)
        *     digits.
       private static void writeTwoBCDDigits(DataOutputStream stream,
                                             String           twoDigits)
              throws IOException
          // Convert two digits to Binary-Coded Decimal (BCD).
          // The "write(int)" function writes a numeric value in binary to the
          //    stream.
          // If the twoDigits string is parsed as a hexadecimal integer, then
          //    writing the equivalent decimal integer using "write(int)" will
          //    generate the correct BCD numbers.
          // For example, if twoDigits is "54", parsing this as the hexadecimal
          //    integer 54 results in twoBCDDigits as the decimal integer 84.
          //    Then, "write(84)" will write the correct bits to the stream:
          //    "0101 0100" (space not included).
          //    "0101" = BCD '5' and "0100" = BCD '4'.
          int twoBCDDigits = Integer.parseInt(twoDigits, 16);
          // Write out the numeric value of twoBCDDigits in one byte.
          stream.write(twoBCDDigits);
       }

  • Logic Analyzer output of 7445N BCD-to-Dec​imal

    Hello All,
    I am testing the output of a 7445N BCD-to-Decimal decoder with the use of Multisim 10 word generator and the logic analyzer.  I have the inputs of the 7445N connected to the word generator counting up from 0 to 9 binary.  The first four inputs of the logic analyzer are connected to the inputs of the 7445N as well.  I can see the correct pattern of binary number being generated by the word generator at the logic analyzer. However, the logic analyzer connections to the output of the 7445N shows flat lines.  I don't see the binary numbers generated.  I connected logic probes to the output of the 7445N, and a binary pattern is shown.  If I connect a single line from the logic analyzer to the output of the 7445N, then I can see the logic low and high for that particular pin.  But again, if I connect more than one line from the logic analyzer to the 7445N, it goes back to a flat line.  Has anyone seen this before?  Is there a specific method to test this particular IC output with the logic analyzer?   Any help would be greatly appreciated!
    Thanks,
    Arnie

    I will do you even better. I will post the complete MS10 file for you to look at. All the settings of the simulator are defaulted. I thought I would let you know that so you wouldn't think I fiddled with the settings to make it work.
    Here it is and I hope this helps:
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day
    Attachments:
    7445N Test Circuit.ms10 ‏197 KB

  • Controlling a bcd 7 segment lcd with labview

    I am pretty new to the Labview environment and am having a problem which involves converting a decimal value into its equivalent 4 digit binary number which then needs to trigger the appropriate boolean value to control a bcd 7 segment LCD.
    For example, decimal 9 gets converted into 1001, and you have four boolean variables D,C,B,A, the converted binary nine needs to trigger D and A while leaving C and B off. Is this possible in Labview and if so any advice
    Regards Shaun Oxley
    [email protected]

    To convert a decimal number to boolean I like to use the "Format to String" function with %b for a format specifier. A number goes in and a boolean "0101110..." string comes out. Once you've got the string, you can break it down by characters or turn it into an array of U8 to do lot of fun array stuff to it. I've attached a quick example that demonstrates a few tricks with strings and arrays. It will take a number and output the four LSBs in booleans for you. Fit for wiring to some DIO functions maybe!
    Dan Press
    www.primetest.com
    Attachments:
    number_to_binary_booleans.vi ‏23 KB

  • Integrate Memtest 86+ into BCD

    Is it possible? SO I won't have to always launch memtest from a USB drive in order to test RAM.

    A late answer but posted for anyone if useful.
    Yes it is, and it's easy. I just added it to Windows 8.1 boot menu via bcd, the same setup will work for any Windows from 7 onward, perhaps Vista if that uses BCD too. (XP works but needs different commands as it uses NTLDR not BCD, look up running Grub4DOS
    from XP NTLDR boot for that if you need it.)
    Here's how.
    Look online, find "grub4DOS" and download (small zip file of binaries, I used version 0.4.4). You need the files "grldr" and "grldr.mbr".
    Look online again for Memtest86+ downloads. Grab the zipped binary download. You need to unzip it and get the file "memtest.bin" (you can rename it).
    Copy and paste the text shown below, into a text file called "menu.lst" (it's the commands for grub4DOS, you can edit them). You will need to change the text (hd0,1) to reflect the drive and partition number that *nix will recognise. At worst,
    experiment, or do what I did and add 4 entries one after the other, and see which one works :) If you choose the wrong partition you (probably) won't hurt it, you can go back and correct things.  You can also edit this file in many other ways.
    Put these 4 files in the root of any partition. It must be formatted so *nix can read it, ie not NTFS. FAT or FAT32 are safe bets. I created a small FAT32 partition. Use Diskmgmt.msc or DISKPART to give it a drive letter (I'll use X:)
    Now open a CMD prompt as administrator, and use bcdedit to add the entries shown below. They will cause the system to boot onto partition X: + boot path "grldr.mbr". Grub4DOS will run, and based on menu.lst it will immediately open memtest
    as the default option.
    Finally when it's tested, reboot to your normal OS and remove the drive letter from X: using diskmgmt.msc or DISKPART again.
    That's all there is to it. Tested and works. If your current version of WIndows doesn;t use these exact commands, look up Grub4DOS and find what you need to do to run Grub4DOS from a Windows based system - there are versions for NTLDR (Windows XP) as well.
    TEXT FILE CONTENTS FOR menu.lst (create a text file with these in it, and edit as needed. You *WILL* need to change the (hd0,1) part most of the time to point at whatever partition your files are on):
    timeout 1
    default 0
    title MemTest86+
    kernel (hd0,1)/memtest.bin
    lock
    title Reboot
    reboot
    title Shut down
    halt
    BCDEDIT commands (enter in an administrator CMD prompt):
    bcdedit.exe /create /d "Memtest86+" /application bootsector
    (this displays a new {GUID}, use that GUID in the following commands)
    bcdedit.exe /set {GUID} device partition X:
    (or use "device boot" instead if not a partition)
    bcdedit.exe /set {GUID} path \grldr.mbr
    bcdedit.exe /displayorder {GUID} /addlast
    You can use bcdedit /store F:\Boot\BCD ..... to work on a BCD store that isn't your current boot disk if needed.

  • Assigning a hex value to a variable and getting binary value of a variable.

    I try to develop java programs and I need to do a conversion unicode to EBCDIC and vice versa.
    How can I assign hex values to variables to build UTF-EBCDIC and EBCDIC-UTF table and get hex or binary value of data to compare it to value of in the table?
    I did a conversion like this with PL/1 before. I do not know how can I do it with Java. Because I am new to Java.
    Thank you in advance.

    I will run java code in mainframe and java uses
    unicode for data in default and mainframe environment
    is EBCDIC. So I have to translate the data from
    unicode to ebcdic.I said I think String supports EBCDIC encoding...
    String ebcdic = new String(ebcdicBytes, "Cp500");
    http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html

  • Issue in trasfering records to file using Transfer (in Binary mode)

    Hi all,
    I am using a trasfer statement to write the contents of internal table onto a file in Apllication server.
    My  code is
       LOOP AT i_file.
           TRANSFER  i_file-rec_data TO i_pf_names-v_name.
       ENDLOOP
    I am opening the file in binary mode.Its not writing the second record totally. Each of my record is 432 characters in length. Irrespective of  no. of records in my internal table its writing only 1 rec completely and half of second record.
    I am aware that opening a file in binary mode ignores the line breaks.
    So, opening in binary mode should write 1000 characters. Its writing 511 characters and stopping. Its not writing further records though my internal table is having records.
    Can you please help.

    Hi,
    If you are viewing the application server file in AL11, you wont be able to view the total length of the file even though it is written. To confirm this use the transaction CG3Y and download the application server to presentation server and check if the whole of the record is written
    Regards,
    Vikranth

  • Include filename in the Content/Binary

    Hi,
    I'm using import files from Folder. When opening Content/Binary I get the records from all the files in the folder. I would like to add the filename to every record. Is that possible?

    Yes, definitely. Have a look at these sources:
    http://blogs.adatis.co.uk/blogs/dan/archive/2014/09/25/importing-multiple-files-into-power-query.aspx
    http://datapigtechnologies.com/blog/index.php/using-power-query-to-combine-data-from-multiple-excel-files-into-one-table/
    Imke

  • Logical operations on binary columns

    We need to store approx 200 bitfields so we thought we'd use a binary datatype.
    We can set the bit fields easily using
        set bitfield = bitfield  | 1
        set bitfield = bitfield  | 2
        set bitfield = bitfield  | 4
    However we don't want to hard-code these values we like to use a table like this
        update tableA
        set bitfield = bitfield | table.value 
        where ..... table.mask = "MASK1"
    However, it seems there is a limitation where you can only OR/AND a binary datatype with an integer.
    So the column table.value can only go up to 64 bits.
    Why can't we use AND/OR betweem two binary columns ?
    Is there some sort of work around ?
    (Any chance of any changes in ASE ?)
    Incidently MS-SQL suffers the same problem.

    > I think you mixed up bit and binary datatype.
    > Binary datatype is normally used for images, text, storing a pdf in your db, etc
    I'm aware that's what they're usually used for (although I have thought varbinary would have been better)
    but I need to store lots of bit fields and  was hoping I could use a binary datatype, rather than have status1, status2, status3, etc
    > If you want 1 column to store multiple values using bitmasks, than you can use an integer to do that.
    > e.g. see examples in system tables like sysdatabases..status (small int) and sysdatabases..status4 (int)
    That's what we're using at the moment - if fact we're now using unisgned bigint - that gives 64 bits.
    The fact that sys* tables have multiple status fields shows it would be useful here.
    > Sybooks: The bitwise operators are a Transact-SQL extension for use with integer type data.
    > So it looks like you've got to use multiple columns to achieve wat you want.
    Yep - that's exactly what we've found.
    It seems unfortunate to not allow bitwise operations on binary datatypes. Its not a common use of them I know
    but I've worked at couple of places which would have benefited from this.
    We've spent some time writing our own functions that implement bitwise operations on binary fields, but would have been better if these were build in.
    > Why would you want to store 200 bitfields in 1 column?
    For a similar reason as the sys* tables have multiple status columns - If binary columns allowed bitwise operations - they'd only need 1 status field.

  • "Invalid Binary" error on app. Apple's reason is "Missing 64-bit support" due to changes from Feb 1st 2015

    Hello
    Can anyone help me with an "Invalid Binary" error on my app.
    Apple's response is:
    Dear developer,
    We have discovered one or more issues with your recent submission for "DPS Notes". To process your submission, the following issues must be corrected:
    Missing 64-bit support - Beginning on February 1, 2015 new iOS apps submitted to the App Store must include 64-bit support and be built with the iOS 8 SDK. Beginning June 1, 2015 app updates will also need to follow the same requirements. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.
    Once these issues have been corrected, use Xcode or Application Loader to upload a new binary to iTunes Connect. Choose the new binary on the app’s Details page in My Apps on iTunes Connect, and click Submit for Review.
    Regards,
    The App Store team
    Can someone from the Adobe DPS team let me know how I can recreate the .ipa file so that it will meet Apple's requirements.
    They seem to have moved the goalposts since I created the original .ipa file in December. I thought I'd submitted it, just went back through iTunes Connect to check info as I hadn't heard anything from them, then hit this brick wall. Any help offered would be much appreciated.
    Thanks
    Rebecca

    Hi
    I've Updated App Builder, gone back to the DPS App Builder portal, regenerated new zip and ipa files and downloaded them.
    I clicked the Application Loader 3.0 link, downloaded the latest Appication Version, clicked on the "Deliver your App" button, and submitted the newly built App that was built using 32.4.2 version. (All the app icons were listed as "stored on server" so I presume they are all ok). The .zip file appeared to 'deliver' to Apple successfully. I've tried to resubmit it but get ta "Redundant Binary Upload. There already exists a binary upload with build version..." error message, so presume the orginal binary upload was successful. I have no idea how I can get this app from the "prepare for submission", to "in review". The last time I thought I'd submitted this app I got as far as the "waiting for review" status, and no further.
    At the moment I don't have a"+" button in the Build section - as mentioned on page 66 of Adobe's Step_by_step_guide_to_dps_se.pdf.
    So I can't add the new .zip file to the iTunes Connect > My Apps portal in the Build section of the Versions tab.
    I have put a support email into Apple, but don't expect a reply any day soon.
    The problem with starting all the way back through the App wizard is that I really want to use all the same App Name, Bundle ID, and details etc.
    Do you mean, going back to the Folio Producer Panel, and building a whole new App?
    This process certainly isn't for the faint-hearted!
    HELP!

Maybe you are looking for

  • Print from applet running in IE5.5

    Application is standalone and can be used as applet as well. If it works as standalone application everything works fine. When I put it on a Web server and try to run it as applet from within IE5.5 it hangs. The problem is in the part of code that in

  • ICal Alarm is off screen--  An old, unfixed problem

    Can anyone tell me why discussions have been closed on this bug? http://discussions.apple.com/thread.jspa?threadID=671199 The problem was reported five months ago and never resolved by Apple. Is it common for Apple to ignore a problem like this?

  • Max no.of zip attachments & recipents thru FM:SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi, I want to know what is the number of attachments we can send thru FM:"SO_NEW_DOCUMENT_ATT_SEND_API1". I have 6 files, so i want to zip them all and send them all to atleast 20 mail recipients. I know way to check my doc size using: DOC_CHNG-DOC_S

  • Catalog group membership not updating

    Hi, I am experiencing a problem with my catalog groups. I have just created a new catalog group and added a user account as a member and also removed that user account from another group by logging in as administrator in answers and using settings -

  • Installing Windows 7 with only one DVD-RW??

    I have one DVD-RW, no USB sticks or anything (I do have an iPhone and a 4gb memory card if that helps.) Can I burn Windows and the Bootcamp utilities to the same disk in some way?? Or use the iPhone as and USB disk in  some way.