EASy68K  
It is currently Tue Aug 22, 2017 5:00 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Nov 05, 2014 11:03 am 
Offline

Joined: Wed Nov 05, 2014 10:59 am
Posts: 2
i need to write a program that will read data from the switches 0 to 3 and display the respective data onto the LEDs 0 to 3 and onto the 7segments display displaying the data in hexadecimal


Top
 Profile  
 
PostPosted: Wed Nov 05, 2014 4:23 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1044
That sounds like a nice assignment. :happy2

_________________
Prof. Kelly


Top
 Profile  
 
PostPosted: Thu Nov 06, 2014 8:58 am 
Offline

Joined: Wed Nov 05, 2014 10:59 am
Posts: 2
Yes it is and i have no idea how to start it .. since this is my first time using easy68k :'(


Top
 Profile  
 
PostPosted: Fri Nov 07, 2014 4:33 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1044
Reading the switch positions is easy. Just read the byte of data from the switch locations. Write that byte to the address of the LEDs and it will display the switch positions. To display the number on a 7-segment display requires a bit more work. Check out this post: viewtopic.php?f=6&t=1341#p4279
It contains the mappings for which segment to turn on/off to display the hex digits 0-F.

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group