Search Engine www.edaboard.com

# Hex To Bcd

Are you looking for?:
bcd hex , hex bcd , hex bcd , bcd hex
54 Threads found on edaboard.com: Hex To Bcd

## Assembly program for AT89C52 that changes 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

## conversion hex to bcd

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 (...)

## hexkeyboard to BCD/Binary

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

## convert hex to bcd in c

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 (...)

## hex to decimal using 8051

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

## Need to convert hex to decimal (8051)

anyone got a quick routine to converte hex to decimal (8 bits only) for 8051? Thanks RAF

## msp430 adc hex to decimal routine

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 (...)

## Convert 26 bit binary to BCD Routine

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.

## how to perform hex to decimal conversion?

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

## Hex to Hex Representation of Decimal in ASM

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 (...)

## Hex value To BCD conversion.

See EDN Oct 7 2010 issue Perform hexadecimal-to-bcdconversion in firmware - 2010-10-07 10:00:00 | EDN

## hex to bcd conversion in bascom

please can anyone send me 8051 asm code for hex-bcd

## string to BCD and back again

I have a C programming task to do, and need some assistance with this part. I have a string, for example: 02e0 I need to convert this string to bcd, then back into its original format, by subtracting '0' and shifting. I run into problems when hitting the 'e', my method sees this: 101 - 48, and hence stores '5' (decimal 53). However I need

## convert hex to decimal for 8051

Hello! Preliminary: uint16 a1 = 0x1234; // a1 is an unsigned int value, not hexa uint16 a2 = 4660; // a2 is an unsigned int value, not decimal either. And a1 = a2 uint16 a3 = 0x4660; // a3 is the bcd (binary coded decimal) value of a1 or a2 char * str1 = "0x1234"; // str1 is a string, that can represent a1 or a2 in hexadecimal (...)

## to display digit from thumbwheel to LED display

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

## 32 bit hex to ASCII conversion code in Assembly

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 (...)

## A problem with Binary to BCD conversion in C

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

## How to convert binary value stored in accumulator and display it on LCD?

i want to know how to display the valve stored in the accumulator in the LCD for example if there is a value of "5C h" hexadecimal stored in the accumulator i want it to be displayed as "92" "decimal" on the LCD i want to convert the binary value stored in the accumulator int its equivalent decimal to be displayed on the LCD

## 3 byte Hex to decmial in c

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?

## RPM meter with AT89C51

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

## bcd - convert digital to decimal

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.

## Producing hex files for EPROM in Proteus

Hi: I think you can just edit a file by ultraedit in hex mode. Then use a programer like superro to burn this file to eeprom.

## Need help with BCD2HEX and HEX2BCD converting

16 bit hex to bcd @ Many codes available @ -- Amr Ali

## conversion of hexadecimal to decimal code in 8051 embedded c

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. ;-)

## How to convert deciml to hex

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

## How to quickly add and subtract in AVR

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

## Decimal to Hex Conversion C Code needed

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?

## 2 bytes arithmetic techniques of PIC16

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

## BCD to HEX IC, thmbwheel & 7segment interfacing

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?

## 7 segment display interface to 89C52

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.

## floating point numbers in 8051

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

## Help us understand a 8052 code in Assembly

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

## Accepting decimal value as hex value

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

## How to convert the 16 bit hex value into 16 bit decimal value in C?

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

## VERILOG CODE FOR BCD TO DECODER????

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 (...)

## Programming PIC using MPLAB. Help

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

## 6 digit decimal to hexadecimal conversion in assembly

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

## Programming ADC IN PIC18F65J50

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

## HiTech C BCD to ascii convert

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 (...)

## large(ish) BCD to binary

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

## How can I set up a binary country to count in bcd?

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

## Driver for Cathode LED (not 4511)

Hi, Try DM9368 or SN7448 SN7449 ! Cheers DM9368 is bcd to hex display he is asking bcd to decimal, so best is CD4543

## Printf in Hi-tech help!

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.

## Programming a matrix keypad and an LCD

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

## reception of data by PC from MCU

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).

## how can i shift left an integer?

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

## rotary encoder for proteus.needed

proteus lib ACTIVE/THUMB SWİTCH bcd ACTIVE/THUMB SWİTCH hex

## PIC OSCILLATOR DESIGN QUESTION

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

## driving 128 LEDS using fpga/cpld

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

## power electronics converter simulation in proteus

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