Presentation is loading. Please wait.

Presentation is loading. Please wait.

Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring.

Similar presentations


Presentation on theme: "Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring."— Presentation transcript:

1 Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring up the breadboard to connect it to the 8 port0 digital lines. Test this interface with a VI that lets you enter a number on the front panel and then displays the number on the seven- segment LED. The VI should turn the LED’s off when it quits. Input: Use the same portm in input mode, to read a binary pattern created by setting the switches on a dual in-line package (DIP) switch module, and mount the device on the breadboard and connect it to the same 8 digital lines.. Test this interface with another (or part of the previous) VI. Physics 4341

2 2 Notes on Module 2 Two VI’s, due next week. –(Note that you can combine them into one, using a listbox or ring ) –TTL output logic levels: 4.35 V on. –Input: open means off, closed (connected to 5 V) on. Use 8 300  current-limiting resistors. Note that same 8 lines are output (part I) and input (part II). –You can set up your breadboard to do both You have to deal with binary numbers (table II is a worksheet) –Note the Format & Precision menu item for a numeric constant, which can be used to set binary (or octal or hexadecimal). Note the requirement: your VI should turn the LED’s off when it stops. (think about how to do it.)

3 Physics 4343 Seven segment wiring (common cathode) A14 B13 C8 D7 E6 F1 G2 dp9 Cath4,12 DIPs (Dual-Inline-Packages) have an orientation notch in one end. If the chip is held so that the long axis is horizontal and the notch is at the left end, pin #1 is the leftmost pin in the bottom row. Pins are numbered counter-clockwise from there, i.e. left to right across the bottom row, then right to left across the top row. This allows automated chip-insertion machinery to ensure correct orientation of the chip by mechanical sensing. The picture is for a 8-pin DIP. In this case the “notch” is the top.

4 Wiring of the CAT5 pairs and 7-seg. Physics 4344 DataColorDAQhea der 7-seg pin 7-seg name P0.0brown65114A P0.1“/white66213B P0.2orange6738C P0.3“/white6847D P0.4green6956E P0.5“/white7061F P0.6blue7172G P0.7“/white7289dec.pt Gnd4 or 12Cath.

5 Physics 4345 Notes on mapping How do you convert the numbers 1-9 to a different sequence? In most languages, two choices: –case or if-elseif (adds code, complexity) –Table lookup (adds to memory) How does this map into G? See the Demo VI.Demo VI


Download ppt "Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring."

Similar presentations


Ads by Google