Sei sulla pagina 1di 3

Vidhatha Technologies Bangalo re

Device Driver Development To Accessing SDMMC Card Using SPI On LPC2148


BRIEF INTRODUCTION: The PS/2 interface is standard keyboard interface so we can interface the keyboard and display the contents of the keyboard content on the LCD unit. The PS/2 is general serial interface between keyboard and device and it will use the PS/2 interface. PS/2 interface is bit serial interface and it will use the it will use the data and clock signal both are bidirectional The PS/2 interface is a bit serial interface with two signals Data and Clock. Both signals are bi-directional and logic 1 is electrically represented by 5 V and logic 0 is represented by 0 V (digital ground). BLOCK DIAGRAM: 5V

Pull ups LCD display DATA Key board CLOCK

ARM7

PS/2 interface

Vidhatha Technologies, # 1363, 3rd Floor, Shravanthi Onyx, 100ft Ring Road, Jayanagar 9th Block, Bangalore - 560 069. +91 80 6450 9955

Vidhatha Technologies Bangalo re

BLOCK DIAGRAM DESCRIPTION: The block diagram as shown above consists of keyboard is interfaced with the microcontroller via PS/2 interface. LCD will display the data. The first task is to receive scan codes from keyboard and display the scan codes in hex format on the LCD. The second task is to transmit data to the keyboard when the Caps Lock key is pressed. When a specific data stream is sent the Caps Lock LED will switch on the key board. The PS/2 interface is a bit serial interface with two signals of data and clock. Both signals are bidirectional and logic 1 is electrically represented by 5V and logic 0 is represented by 0V. Whenever the Data and Clock line is not used, i.e. is idle, both the Data and Clock lines are left floating, that is the host and the device both set the outputs in high impedance. Externally, at the PCB, large (about 5 k) pull-up resistors keep the idle lines at 5V (logic 1). FEATURES: 1. It is serial communication protocol. 2. It is standard communication interface between key board and device.

SYSTEM REQUIREMENTS: OS: Windows Language: Embedded C. Software required: Keil software. Hardware required: 1. TMS2148 ARM7 controller 2. PS/2 protocol.
Vidhatha Technologies, # 1363, 3rd Floor, Shravanthi Onyx, 100ft Ring Road, Jayanagar 9th Block, Bangalore - 560 069. +91 80 6450 9955

Vidhatha Technologies Bangalo re


3. LCD display. 4. Key board 5. PS/2 interface

ADVANTAGES: 1. It is a simple communication between keyboard and device. 2. Since it is a single wire communication space is less. 3. It is easy to scan the key codes.

Vidhatha Technologies, # 1363, 3rd Floor, Shravanthi Onyx, 100ft Ring Road, Jayanagar 9th Block, Bangalore - 560 069. +91 80 6450 9955

Potrebbero piacerti anche