EASy68K
http://easy68k.com/EASy68Kforum/

How to write a program that will read data from the switches
http://easy68k.com/EASy68Kforum/viewtopic.php?f=5&t=1347
Page 1 of 1

Author:  jons11 [ Wed Nov 05, 2014 11:03 am ]
Post subject:  How to write a program that will read data from the switches

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

Author:  profkelly [ Wed Nov 05, 2014 4:23 pm ]
Post subject:  Re: How to write a program that will read data from the swit

That sounds like a nice assignment. :happy2

Author:  jons11 [ Thu Nov 06, 2014 8:58 am ]
Post subject:  Re: How to write a program that will read data from the swit

Yes it is and i have no idea how to start it .. since this is my first time using easy68k :'(

Author:  profkelly [ Fri Nov 07, 2014 4:33 pm ]
Post subject:  Re: How to write a program that will read data from the swit

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/