Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Assembly program for AT89C52 that changes hex to bcd

Status
Not open for further replies.

emmos

Member level 2
Joined
Dec 30, 2003
Messages
47
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Activity points
472
HI everybody

I want am assembly program for AT89C52 that changes hexdecimal no. to BCD no.

help plz
emmos
 

Re: hex to bcd

have you see at Atmel site?
maybe that exist an application note to convert hex to BCD
 

Re: hex to bcd

hi again
i didn't find any application in atmel about that execpt some conversions

can anyone help
 

hex to bcd

i have seen some examples in site of CCS compiler. it may give you some ideas. search examples by writing "hex2bcd"
 

Re: 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, 0x41-0x46)

h**p://www.8052.com/codelib/bcd_byte.zip

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 To BCD

h**p://www.8052.com/codelib/utils01.zip
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top