CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

BCD to Bin (16 bits)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
marceleza



Joined: 24 May 2006
Posts: 6
Location: S㯠Paulo - Brazil

View user's profile Send private message

BCD to Bin (16 bits)
PostPosted: Sun Jun 03, 2007 10:30 am     Reply with quote

Hi!
I am trying to make the conversion of a BCD number of 16 bits for binary. I obtained the number and to integrate them in an only variable of 16 bits. (example: 31 , 32, 33, 34 received by serial in the number 1234)
1234 in bcd is equal to 4D2 in hex
How I make the conversion?
Already I found examples in 8 bits, but in 16 still not.

Yours trully
Ttelmah
Guest







PostPosted: Sun Jun 03, 2007 2:00 pm     Reply with quote

Look for the thread:
'16 Bit Binary to to BCD C++ conversion program'.
I posted an efficient program to do this here.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group