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.

Converting binary held in two 8 bit registers to bcd 3 digit (0 to 999)

Status
Not open for further replies.

rolg

Newbie level 2
Joined
Dec 9, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
a newby needs help--using 16f874a , assembly . i am having trouble converting binary held in two 8 bit registers to bcd 3digit (0 to 999). help !
thanks more than i can say
 

Re: 8 bit to bcd 3 dig

THANKS SO MUCH FOR HELP.. i looked but found no routine that handled 0 to 999. just 0 to 256 -which needs only one register.
 

Re: 8 bit to bcd 3 dig

If it was PIC Basic then its easy you put your binary number in a word variable and use the DIG command to read one digit of the 16 bit number up to 5 digits 65535 Basic is so easy the compiler do all the hard work for you and if you still want to do assembler you can incorporate your ASM code in PIC Basic
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top