|
|||||
3.2. Basic Swicht Input Detection Port Status-Parallel Port Refer to the circuit as shown in figure bellow - Printer Port Test Circuitry. This illustrates a very simple test fixture to allow you to figure out what inversions are taking place in the hardware associated with the printer port. 3.2.1. Basic Input - 5 Bits Port Input Program exp321.pas detects wether the swicht is opened or closed, as shown in test circuit above, for opens condition port receives logic '1', by pulling up with resistor 10k to Vcc ( +5V ), for swicht close condition port will receive logic '0', by connecting to ground. Delphi Programming ( Download File exp321.zip ) a. Puts 1 Timers Components, 1 Edit Components and label on Form, as shown in picture bellow. Setting up Timer1 component for Enabled = true, and Interval = 1000 ( approximataly = 1000 ms delay time ). b.Click on start, stop button, amd timer to insert with the program as shown bellow procedure TInput.Timer1Timer(Sender: TObject);
|
Free Software Lesson 1 Lesson
4
|
||||