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 Binary

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



Joined: 01 Jun 2005
Posts: 45
Location: UK

View user's profile Send private message

BCD to Binary
PostPosted: Wed Jun 01, 2005 4:20 pm     Reply with quote

Hi guys and [spam] i am very new to C programming, come to think of it any programming.

i need a bit of code that takes BCD from the RS232 port and converts it in to BINARY and displays it on PORT B with 8 leds.

This needs to be simple for a newbe like me.

is there any one that could help with this

many thanks

Pete
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Wed Jun 01, 2005 6:37 pm     Reply with quote

Ask this in the General Discussion forum. This one is for completed and tested code.

Google is your friend for algorithms. Also go look at the stuff on piclist.com. Try searching there for BCD. You will be looking mostly at assembly listings but they aren't that hard to understand.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
nooknikz



Joined: 08 Sep 2003
Posts: 4
Location: Thailand

View user's profile Send private message Visit poster's website

PostPosted: Thu Jun 09, 2005 10:31 pm     Reply with quote

It's can help you : http://www.cs.uiowa.edu/~jones/bcd/bcd.html
_________________
www.micro4you.com
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