Thursday 17 March 2011

Homework Due 22/3/11

You must write the answers to the following questions on a sheet of paper and hand it in on Tuesday 22nd March.  (I know that you were all in class to hear this!)

  1. Which part of the microprocessor stores the program?
  2. What carries data from here to the ALU?
  3. What does EEPROM stand for and what is the advantage of using this type of ROM? 
  4. Convert these numbers into binary:
    1. 24
    2. 208
    3. 7
  5. Convert these numbers into decimal:
    1. %10101111
    2. %11100110
    3. %11001
  6. Draw the flowchart box you need to use to "call" a sub-procedure from the main flowchart.
  7. Write a couple of lines of program which would test a start switch. Nothing should happen until the start switch is pressed.
  8. Write the whitespace comment for this line of programming: let dirs = %11101100
  9. Write a program which will turn a stepper motor 360 clockwise then 360 anticlockwise.
  10. What is the output voltage from the microprocessor?  What is the voltage needed for a stepper motor?  What do you need to use to ensure that the stepper motor will work properly?
  11. Write a program to slow down the speed of a DC motor to half its speed.
  12. Draw a system diagram for a warning light which comes on when it is too cold.
  13. What type of output driver do you use to control the direction of a motor?  (not just "output driver" the type of output driver required)
  14. A restaurant's kitchen is far away from the restaurant so it uses a buggy system to transport food.  The buggy is on a track.  It starts in the kitchen and if the restaurant call button is pressed the buggy travels along the track until it hits the limit switch telling it that it is at the end of the track and it will stop.  The buggy stays there until the kitchen call button is pressed, it travels back along the track until it hits the limit switch again telling it that it has reached the end of the track and the buggy will stop.  Below is a sketch of this situation and the pin connections required.
    1. Draw a flowchart which will fulfill this brief
    2. Use your flowchart to write a program in PBASIC

No comments:

Post a Comment