interfacing introduction l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Interfacing Introduction PowerPoint Presentation
Download Presentation
Interfacing Introduction

Loading in 2 Seconds...

play fullscreen
1 / 11

Interfacing Introduction - PowerPoint PPT Presentation


  • 115 Views
  • Uploaded on

Interfacing Introduction. Interfacing Overview. Computer. Peripheral. Interface. Wires ICs Resistors Capacitors Transistors Connectors. LEDs Motors Lights Robots Joystick Music Box. Parallel Port Pinout. Graphic from http://www.doc.ic.ac.uk/~ih/doc/par/. Output Table.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Interfacing Introduction' - adin


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
interfacing overview
Interfacing Overview

Computer

Peripheral

Interface

  • Wires
  • ICs
  • Resistors
  • Capacitors
  • Transistors
  • Connectors
  • LEDs
  • Motors
  • Lights
  • Robots
  • Joystick
  • Music Box
parallel port pinout
Parallel Port Pinout

Graphic from http://www.doc.ic.ac.uk/~ih/doc/par/

turing preparing for interfacing
Turing: Preparing for Interfacing
  • Turing is already prepared for interfacing with the parallel port
  • No preparation necessary!
turing turning on the led
Turing: Turning On the LED
  • Parallelput(value)
  • Parallelput(1) turns on the 1 bit (D0)
  • Parallelput(255) turns on all bits (D0-D7)
turing flashing the led
Turing: Flashing the LED

loop

parallelput (1)

delay (250)

parallelput (0)

delay (250)

end loop

turing led walking
Turing: LED Walking

loop

% loops up

for i : 0 .. 7

parallelput (2 ** i)

delay (500)

end for

% loops down

for decreasing i : 6 .. 1

parallelput (2 ** i)

delay (500)

end for

end loop