Interface I
Interface I
Aim:
Develop a 'C' code to demonstrate the functions of input and output ports of a
Personal Computer through a Parallel port interface kit by performing the following
experiments:
o LED interface
o Reading the input from the switches
o Incremental count in Seven segment display
o Turn on/off the Bulb with relay output
Apparatus required:
Turbo C software
Procedure:
o Develop an appropriate 'C' code with 'inportb( )' and 'outportb( )' functions and
perform the following functions:
LED interface
1. Connect the PC with parallel port cable.
2. Connect 'D0 - D7' data lines of interface kit to the 'A0 - A7' LED output lines.
3. Execute the 'C' code
4. Choose the 'LED interface' menu and give the input value in Decimal format
5. Watch the LED in the interface kit, the given Decimal number is converted as binary
format and the appropriate LED's will be glow.
Result:
The functionalities of input and output ports of a Personal Computer were examined
by writing and executing a 'C' code through a Parallel port interface kit .