A program that will read data from the switches

Discussion in 'Homework Help' started by zacboy11, Nov 9, 2014.

  1. zacboy11

    Thread Starter New Member

    May 15, 2014
    1
    0
    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 by using easy68k
     
  2. crutschow

    Expert

    Mar 14, 2008
    13,003
    3,232
    Good for you. So what parts do you have available to do this?
     
  3. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,802
    832
    • What switches? What type of switch are they? How are they connected to the processor?
    • What do you mean by corresponding data?
    • What LEDs? What is their Vf and current requirements? How are they connected to the processor?
    • What LCD? How is it connected to the processor?
    • Does your simulator also simulate attached hardware?
    Don't worry if you can't answer all of the questions. "I don't know" is a valid answer. I'm just trying to get a better definition of the problem and a sense of your understanding of it.
     
    Last edited: Nov 9, 2014
  4. WBahn

    Moderator

    Mar 31, 2012
    17,737
    4,789
    There are four switches (switches 0 to 3).
     
  5. WBahn

    Moderator

    Mar 31, 2012
    17,737
    4,789
    What is easy68k?

    Don't you think it's a bit unreasonable to expect strangers in an online forum to know every tool and environment that you might be using? Or to expect them to spend their time going out and looking up stuff just to figure out the very basics of what you are being asked to do?
     
  6. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,802
    832
    D'oh. Miscounted! Corrected my post.
     
  7. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,388
    497
    Start with block diagram.
     
  8. panic mode

    Senior Member

    Oct 10, 2011
    1,320
    304
    easy68k seem to be an assembler (and IDE):
    http://www.easy68k.com/

    @zakboy11

    68k is a processor, not a micro-controller, so it needs external hardware (something with io ports) to control your I/O. you have not mentioned architecture or addressing scheme of your platform, weather or not common of inputs is tied to 0Vdc or Vcc (normally it is 0Vdc), if the 7seg output is for common anode or common cathode etc.
     
  9. WBahn

    Moderator

    Mar 31, 2012
    17,737
    4,789
    The easy68k is not only an assembler and IDE, but an emulator of an entire development system including a set of peripherals.
     
Loading...