EmbeddedMarket.com

Design. Manufacturing. Import. Export.
 
Connect & Contact -

Offers -

Buy Arduino - Freeduino-DU Board in Group / For Workshops @ Rs.666 Valid for minimum 25 quantity. Contact Sales.
Real Time Order Ticker -

Your Purchase Cart -

Store Currency:    Rs.   US$

Products: 0   Total : Rs.  0.00

Place Order | Login & Tracking

Date Posted: Thursday, February 02, 2012

Microcontroller tutorial for interface and interfacing


Article By Pratik Deshpande
Founder and Chief Mentor at EmbeddedMarket.com
© Copyright Article





Each microcontroller is different in its architecture but the interfaces it connects with remain same. For example simple LEDs are used to indicate status of some gadget like set top box, satellite receiver, energy meter, UPS, etc. These gadgets are built using some microcontrollers but all uses variety of microcontrollers. You may also find some beep generated from almost every gadget, and a buzzer is used inside to do this. Thus a buzzer is interfaced with some microcontroller. This tutorial will walk through various interfaces, which are used commonly now.

 

Before we get into details of the interfaces, let’s understand some basic questions like:

  1. What is an interface?
  2. What is interfacing?

 

An interface is either Input device, or output device, or a storage device, or processing device.

 

Input devices are used to provide some data to the microcontroller.

e.g. Switch, 4x4 Keypad Matrix, Infrared sensor, Temperature sensor, Light Sensor etc. These devices provide some input to the microcontroller, and this input is called as data.

 

Output devices are used to present the processed data to user or other equipment.

e.g. LED, LCD, Buzzer, Relay driver, DC Motor Driver, Stepper Motor driver, 7-Segment Display etc. These devices convert the processed data to such a format, which is understandable by human or other equipment.

 

Storage Devices are used to store the data, normally it is expected to store the data even if the power is switched off. Some of the storage devices are SD/MMC card, EEPROM, DataFlash, Real Time Clock, etc. These interfaces are used retain the data and this data can be used as and when required by the microcontroller for further processing

 

Processing Devices are those interfaces most important as they reduce product development time and provides out of box solution. E.g. Ethernet Controller interface, USB to TTL interface, SPI to SD/MMC interface, Digital to analog module, etc. These interface circuits are flexible to connect with any microcontroller which can “talk” in their language (sequence of commands).

 

This Microcontroller tutorial for interfacing techniques will now explain you the meaning of interfacing:

 

Interfacing is a method to establish communication between Microcontroller and the Interface. Various interfaces are listed above. These interfaces are generic and can communicate with any microcontroller. Interfacing is a combination of hardware (i.e. the Interface) and Software (i.e. the source code to communicate, also called as the Driver).  In simple words, to use LED as output device, LED should be connected to a port pin of the microcontroller and there has to be a program running inside the microcontroller to make it On or Off or blink or dim. This program is called as the driver and can be developed using any programming language like Assembly, C, Basic etc.

 

If you are totally new / beginner to the microcontrollers and are interested in learning this exciting technology then, Kit + Distance Learning is suggested for you. This includes hardware + software + Tutorials + technical help via email.

 

If you have someone to teach or you know the technology and have very low budget then these low cost boards will be suitable for you. Remember that these boards are not recommended for beginners, as they do not have any tutorial and technical support.

 

By now you know that Interfacing is a process to write a firmware (i.e. source code program) for the microcontroller. These are the steps one should follow for interfacing:

 

  1. Read the datasheet of Interface.
  2. Understand the expected data format of communication
  3. Understand the voltage requirements
  4. Understand the electrical specifications and design guidelines

 

A simple LED normally requires 0 or 5V to on / off. This is called as digital signal.

 

A buzzer beep similar to LED but can be beeped even with intermediate voltage levels between 0 to 5V. This variable voltage input is called as analog signal.

 

A temperature sensor LM35 generates analog voltage in proportion to the temperature. This analog voltage needs to be connected to Analog Port pin of a microcontroller for processing temperature data.

 

Ethernet controller module requires SPI data format to interface with any microcontroller. SPI is a complex digital communication format.

 

Thus every interface is unique in its interfacing standards, but they are same at par with all microcontrollers.

Product Category Map
Low Cost Microcontroller Board Development Board AVR Microcontroller ARM7 Development Board Microcontroller Programmer
Arduino Kit PIC Microcontroller Breakout Modules SMD To DIP Adapter Spares
Communication Boards Modules Enclosures Antistatic Products Soldering Desoldering Equipments Industrial Embedded
Hobby Robotics 8051 Microcontroller Components
Approvals & Partners
ATMEL Certified Board Manufacturer Official ARM Partner Verified by PayPal Payment options for Indian customers

www.ATMEL.com

www.ARM.com

www.PayPal.com
Payment gateway logo online payment options
Also Accept NEFT, Cash & Cheque, SBI Bank Deposit
EmbeddedMarket.com has delivered products to various cities in India including , Agartala, Agra, Ahmedabad, Ahmedabad-380058, Ahmednagar, Aligarh, Allahabad, Alwar, Ambala, Ambernath, Amravati, Amritsar, Anantapur, Angamaly, Angul, Ankleshwar, Aruppukottai, Auranagabad, Aurangabad, Aurangabad. , Bagalkot, Balngalore, Banaglore, Bandel, Bangalore, Baroda, Barshi, Belgaum, Bellary, Bengaluru, Benguluru, Bhadravati, Bhandara, Bharatpur, Bharuch, Bhilai, Bhilai, distt - durg, Bhimavaram, Bhopal, Bhubaneswar, Bhubaneswer, Bhuj, Bolpur, Bombay, Bongaon, Borsad, Burdwan, Calicut, Carson city, Chanchal, Chandigarh, Chas, Chennai, Chidambaram, Chinchwad, Chittoor, Cochin, Coimbatore, Coimbatore ,, Coos bay, Coppet, Cuddalore district, Cuttack, Dabhoi, Dakpathar, Deharadun, Dehradun, Delhi, Dhanbad, Dharwad, Dhoraji, Dindigul, Dombivili, Dombivli, Durg, Durgapur, Ernakulam , Erode, Faizabad, Faridabad, Faridkot, Gandhinagar, Gandhinagar - , Gangtok, Gazibad, Ghaziabad, Goa, Gorakhpur, Greater noida, Guntur, Gurgaon, Guwahati, Gwalior, Haridwar, Haripura, Hassan, Ho chi minh, Hodal, Hubli, Hukkeri, Hydarabad, Hyderabad, Ichalkaranji, India, Indore, Jabalpur, Jaipur, Jalandhar, Jalgaon, Jammu, Jamnagar, Jaysingpur, Jhunjhunu, Jodhpur, Junagadh, Kadampanad, Kahangad, Kakinada, Kalambaste, Kalpakkam, Kalyan, Kancheepuram, Kannur, Kanpur, Karad, Karnal, Khammam, Kharagpur, Kochi, Kochi,, Kolahpur, Kolhapur, Kolkata, Kollam, Komarapalayam, Kopargaon, Kotkapura, Kottayam, Kozhikode, Kumarganj, dakshin dinajpur, Kurukshetra, Lalitpur, Latur, Lausanne, Lucknow, Ludhiana, Machilipatnam, Madhyamgram, Madurai, Madurai-2, Malviya nagar, Mandi, Mangalore, Manipal, Margao, Margaon, Mathura, Meerut, Mehsana, Mhow, Mhow, district - indore, Miraroad, thane, Modinagar (ghaziabad), Mohali, Morjim, Moti nagar, Mumbai, Murud, Mysore, Nagpur, Nalgonda, Nalla sopara, Nandyal, kurnool-district, Nashik, Navi mumbai, Navi-mumbai, Nazira, Nellore dt, New delhi, New mumbai, Neyveli-3, Noida, Ongole, Osmanabad, Pachmarhi, Palakkad, Panaji, Panchkula, Panjim, Pantnagar, Panvel, Patan, Patan(north gujarat), Patiala, Patna, Pilani, Pimple nilakha, pune, Ponda, Pondicherry, Powai, Pune, Pune / maharashtra, Pune 37, Raipur, Rajahmundry, Rajapalayam, Rajkot, Ramgarh cantt., Ramnthapuram, Ranchi, Ratnagiri, Ribandar, Rohtak, Roorkee, Rourkela, Salem, Sangli, Sangola, Satara, Sector 82, noida, Secunderabad, Secunderbad, Shahdara, Shevgaon, Siliguri, Silvassa, Singapore, Sivasagar, Solan, Solapur, Sonepat, Surat, Suratkal, Surendranagar, Talod, Tamluk, Tanuku, Thane, Thane (w), Thane [ west ] 400607, Thane west, Thanjavur, Thiruvalla, Thiruvallore, Thiruvananthapuram, Thiruvannamalai district, Thookkupalam , Thrissur, Tiruchirappalli, Tirupati, Tirupur, Trichur, Trichy, Trivandrum, Udaipur, Udupi, Ujjain, Ulhasnagar, Up, Vadodara, Vallabh vidyanagar, Valsad, Vasai road, Vasai road (west), Vasco-da-gama, Vellore, Vidisha, Vijapur, Vijayawada, Virudhunagar, Visakhapatnam, Vithalwadi(w), Warangal, Yamunanagar, Zuari nagar, Zuarinagar

WARNING - Do not visit OFFICE address without online order. Read this notification for details