Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Calculator / 7-segment LED
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
boscostudents




PostPosted: Thu Jun 04, 2009 5:57 pm   Post subject: Calculator / 7-segment LED

Hey guys,
Me and my friend need ot write this program for my tech class.
We need to make a graphical calculator and when the user does a calculation it should display the result in 2 7 segments LED lights.
We are able to make the calculator, and we set up a 7- segment LED light with an 74LS47 chip in the bread box. Is there a way to somehow attach 2 7 segemtns LED chips to 1 74LS47? Because right now our answer can only be 1 number.
So far we tried taking the result and spillting the 2 numbers, which we managed to do, and then we wanted to send each number through a different 74SL47 chip, but we do not know how to set up the program so that for example parallel inputs 2-5 send signals to one 74SL47 chip attached to a 7 segment LED, and then 6-9 into the other.
Please help us, this is very furstrating and it is due very soon!!!!!!!!! If we do not do this we might fail BooHoo ...
(ps: we use turing 4.0)
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Jun 04, 2009 6:05 pm   Post subject: RE:Calculator / 7-segment LED

you just do what you would do for 2~5 and shift the bits to the left

http://compsci.ca/v3/viewtopic.php?t=9893
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
boscostudents




PostPosted: Thu Jun 04, 2009 7:05 pm   Post subject: RE:Calculator / 7-segment LED

the onyl comand we know for it is parallelput (number), and wouldnt that just use all of the 8 inputs? is there a way to say, if this variable is 1 or 0 then the first parallel input should be high or off, and so forth for the next ones.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: