Search Engine

Hex To Bcd

Add Question

Are you looking for?:
bcd hex , hex bcd , hex bcd , bcd hex
54 Threads found on Hex To Bcd
Purpose: Convert a single byte into two bcd digits Input: A = Byte to convert (0x00-0xFF) Output: A = High nibble (ASCII 0x30-0x39,0x41-0x46) R0 = Low nibble (ASCII 0x30-0x39, Value In Acc From hex To bcd. Entry Requirements: Acc Has V
Salam, hex2bcd Converter using 8051 ; ;**************************************************************************** ; ; Description: ; Convert Value In Acc From hex To bcd. ; ; Entry Requirements: ; Acc Has Value In Binary To Convert To bcd ; ; On Exit: ; Acc Has Entry Value Converted (...)
The secret to searching the net is using a couple of words and trying to think of unique ones. E.g. in this case - hex bcd keypad. Note that "keypad" is a better word than "keyboard" in this case. Also try to exclude words that you know will trigger false hits. I use to search and it performs well for me. It's a Swedish si
Salam, You didn't mention what is the length of the hex 8 bit, 16 bits ...etc Ok here is a simple method to convert hex (8bit) to bcd One restriction that method is vaild fot numbers 0 - 99 only. for example if you want to convert 99 to bcd 1- divide 99 by 10 2- put the result in the high nibble of the (...)
can any one suggest how to write an assembly language program for 8051 to convert hex to decimal ? 8-bit hex to bcd convertor Handling of hexadecimal numbers for 8051 Assembly
anyone got a quick routine to converte hex to decimal (8 bits only) for 8051? Thanks RAF
What do you mean by "decimal number"? Is this bcd number? In example, if you have 0x12 hexadecimally you want to change it to bcd number: 0x18? 0x18 is decimal representation of 0x12 hexadecimal number. C routine for that conversion (hexadecimal must be less than 0x64): unsigned char (...)
A DEC number is expressed as Dn*10^n+...D2*10^2+D1*10^1+D0*10^0 divide the hex number with 10, the remainder is D0, then use 10 to divide the quotient again, the new remainder is D1, repeat this process, until you get all the digit. It's quite easy to implement this in C, you can write a C function, then research the assembly result.
in my project i require bcd at port 0 and 3 of microcontroller 89s52 since there are three 7447 connected (i.e p0.0-p0.3 to 7447(1) lsb, p0.4-p0.7 to7447(1), p3.0-p3.3 to7447(3)msb) which drive three 7 segment displays now suppose i want to display (240)d then in the accumulator there is its hex equivalent i.e (F0)h which is proper but now w
Hi there. I haven't the foggiest on the best way to do this in ASM. What I need is to convert a hex number to the hex representation of the decimal number. For example: Start with: 2Eh (It iss equal to 46d) End with: 46h I need to end up with the byte in hex because of how I send the byte to the screen by converting each nibble (...)
See EDN Oct 7 2010 issue Perform hexadecimal-to-bcdconversion in firmware - 2010-10-07 10:00:00 | EDN
please can anyone send me 8051 asm code for hex-bcd
the +-48 trick is used with numbers because it can convert a value 0-9 to a char representation 0-9 and vice versa, you are obviously trying to convert a hex value of 0-15 (0-f) to the char 0-9 and a-f and vice versa. You can use a condition that checks if the number is <=57 (which is char 9) and if true subtract the value 48 , if false then you
Hii.. I have a problem to convert hex to decimal (8 bits only) for 8051. Anyone help me?? Thx
hi the best solution for this kind of task is 4543 from cmos line up if you give me one day and aslo be more specific what you need is just want to interface thumb wheel switch,or you have some other task as well, which kind of thumb wheel you going to use hex or bcd
area bss(RAM) longValue: blk 4 area text(ROM,REL) hexStr: DS "0123456789AbcdEF" PutLong: mov X, 3 repeat: mov A, call PuthexByte dec X jnc repeat ret PuthexByte: push A asr A asr A (...)
Hi, I need help with this module . It's to convert a binary value to its bcd equivalent assigning each digit to an element of an array. For example the binary value (11111111=ff hex) is equivalent to( 255 ) decimal so the 5 digit is assigned to the first element of the array......second 5 is assigned to the next element and 2 is assigned to the th
Goto: and find hex/Dec Converter /LCD .. by Jacek Bogusz .. or 24-bit binary to decimal(bcd) .. by Manoj R. Thakur .. Regards, IanP
Please explain more clearly what you mean by "hex" and "decimal". Do you want to convert an ASCII string such as "12FC3B" into another ASCII string "1244219"? Or something else?
I want to make an RPM meter in assambly lang. i did it as follows 1: i made 1 sec timer with T1 which does "2" step after every second. And i used T2 as event counter which is the input (P3.4) of the meter. it counts the pulses from sensor. 2:this routine saves the value of TL0 in ram then mulitplies it with 60 (3CH)to make it RPMs from RPS which
Hi, Think this site will help you do your conversions - Not sure what you are actually converting from / to - but generally it is binary / hex to a lcd decimal display - so the Ascii converters are the ones to use.
Hello everybody. I wanted to use a 27c256 EPROM as a binary to bcd converter. Basically the 16 bit binar number is the address while a 8 bit bcd in the output. Simple enough. But I don't know how to produce a bin or hex file which would load the wanted data in the EPROM. Please note that this is a part of a designing project and we are (...)
16 bit hex to bcd @ Many codes available @ -- Amr Ali
I have posted a thread about converting hex value to bcd(decimal value). Just check that thread. The code is included in it.... Regards, Jerin. ;-)
I found this solution from for you posted by jaden404 "Always give credit to the one who desirve it". I hope it will help. ========================================================================================================= hex has 16 values, 0 - 15, a - f = 10 through 15. Let's take a number, say 'ab'. a, being the
in 8051 series there is very easy to add 2 digits in bcd. "DA" instruction is used for this. now in AVR i want to add 10 digits with 5 digits. how that is possible in very low time, just like using DA in 8051. but unluckily there is not any instruction in AVR instruction set. please help me. i know 1 method. by using "ADC", do all in "hex" then
Hello! I need to convert decimal values 0 to 255 to hex. Can somebody please give me the c code for decimal to hex conversion?
hi i need following topics for PIC16 in assembly language. 1. 16 bit (2 bytes) Addition, Subtraction, multiplication, division 2. conversion of numbers from hex to bcd. 3. equivalent function of DAW (in pic 18) thanks in advance
Q1)which IC can be used as a bcd to hex converter? Q2)circuit diagram or methodology for interfacing 4 thumwheel switches & 4 digit 7 segment display?
2 ways to do this imo. Use common anode like sugested or use a bcd 7 segment display. The bcd saves portpins and gives you the A-F hex codes for free :-). If you have enough ports you can connect the displays to separate ports.
you dont need floating point! you just need fixed point. it is easy, convert hex value to bcd and according you circuit specification assume one or 2 digit decimal point. for example: reading 212 but print 2.12 Volt
Proff gave us the code and we need to modify it ... but we never learnt asembly so I don't understand the code in each step AT ALL..we have only 1 week..anyone has any idea? here is the codes ; period.asm: measures the period at pin p2.0 ; by Jesus Calvino-Fraga, 2007 ; ; Uses the serial port of the microcontroller to display the ; measured pe
hi friends, can someone please help me out in designing a small function in c programming to accept decimal value as hex value, i mean lets say if user inputs a decimal value say 49, the processor should read(and futher processes) it as 0x49(hex value). Thanks . With regards
Hai, I would like to convert the 16 bit hex value into 16 bit decimal value , can anyone tell me how i can do it in the C coding(keil). reply please... thanks by dayal
I think you mean a bcd-to-7-segment decoder. Here is the 'case' statement from a digital clock project that I wrote some time ago. Maybe it will help you. 'nibble' is the 4-bit input code (similar to your bcd value), and 'segment' is an 8-bit register connected to the 7-segment display (and its unused decimal point). It displays hex (...)
Hi guys, i need your help,how do i convert a hex to decimal using MPLAB assembly language? Added after 2 minutes: oh,forgot to mention. How do you convert FE to 254 with each digit in a different register?because i want to display it LCD
Hi friends I want to convert a 6 digit decimal no into binary or hex format in assembly language. Please tell me how it could be done I did for 5 digit conversion now i want for 6digit pl help me Thank you
Hi Programming a PIC microcontroller is very new thing to me but stilll i made a sincere effort of coding... I would really appreciate if anybody could tell me whether my codes are rite or wrong...I am using 18f65j50 for remote monitoring and controlling of smps......Thnx in advance.. and one of doubts is how to convert hex into bcd...The codes
Packed or Unpacked bcd? The algorithm is fairly simple: The hex equivalent of ASCII '0' is 30H, Therefore to convert a packed bcd to ASCII you must first unpack it and then add 30H to the unpacked bcd Packed bcd 73H 0111 0011 Unpacked bcd 07H 03H 0000 (...)
This is the opposite prob from what most folks want. I need to convert a bcd number -- 6 digit -- into its binary/ hex equivalent. The bcd can be packed/ not packed. I prefer not-packed for now. Can someone provide pointers to an 8-bit assembly implementation for an efficient algorithm ? Its for an AVR project, using Atmega48 as of now
I am trying to set up a a 4-bit binary counter to rest at count ten. Since I didn't have LS390' I had to create a condition rest clock made from an AND gate chip. First I used one gate to get triggered when Qc and Qa where active. However when I do this it only
Hi, Try DM9368 or SN7448 SN7449 ! Cheers DM9368 is bcd to hex display he is asking bcd to decimal, so best is CD4543
putchar is letting out a hex value of a said string or ascii. If you want to print a number, you must use the printf command with the corresponding instructions.
1)For every key pressed once, do i have to store the decode logic in a register?like i mean if i wan't to get a numeric value "90" from the user, the two keys will be pressed once and each time i'll have to store them individually in a register. Then how do i go about decoding those two register values to get "90" as a number finally? [/qu
Jdhar is talking about HyperTerminal from Windows OS. If you send from MCU to PC 00110000 and receive this bit stream in HyperTerminal you'll see on the screen 0 (as converted to ASCII). But if you use a program made by you, can display as convenient (hex, bcd, binary, ASCII).
I don't think it's possible to shift an integer number in this way.... should be in hex format... for example,,, if you have this number 23 = 00010111 .... there is no way that you can shift this number to get just the 2, or 3 and leave the other. You should work in hex or any bit vector format, to see clearly which bits you want to shift. In you
How do you want to control this circuit? The above design uses 16 values (0-15) on 4 pins for frequency control. Basically, you could use 4 switches to get the 16 different values. That seems a bit clumsy to me, though. There are bcd and hex rotary switches that encode on 4 output pins (+gnd) that would work. Pull the outputs high. H
I think that the best solution was given by another posts and is the multiplexing. It turns the circuit more simplest and use less lines. You can group the led and the activate by an transistor for example if the mux frequancy is high you will not notest the blink. using the cpld to drive your led is an problem becouse with 5 led or 10 led is po
hi here is new models 3 digit cc and ca dispaly multiplexed 3 didgit voltmeter chip TC7107(ICL7107) Thumb switch with commom pin bcd and hex regards Fragrance