Tuesday, 30 June 2015

Interfacing Push button switch with AT89S52 Microcontroller.

      This tutorial is for beginners in the field of micro-controller.The purpose of this tutorial is use of push button switch with the micro-controller. It will be useful whenever a decision is to be made according to the press of a switch.

         Input/output devices are very critical components of an embedded system. The first input device we will study is the switch. It allows the human to input binary information into the microcontroller. Typically we define the Two state, logic true, when the switch is pressed. logic false, when the switch in not pressed. A single pole single throw (SPST) switch has two connections. The switches are shown as open circuit in Figure 1.which is a normally open switch (NO), the resistance between the connections is infinite (over 1000 MΩ) if the switch is not pressed and zero (under 0.1 Ω) if the switch is pressed. 


Switch interface circuit 


Sunday, 14 June 2015

How to install USBasp Driver in Window 7

           In This tutorial you'll learn how to install USBasp programmer driver on your laptop/desktop.Here i'll explain you step by step to install driver. If you have any trouble in installing driver than post your problem in comment below box.  

In order to complete the installation, you need to follow several steps:

           The first step is to connect the USB ISP programmer to the USB port of your PC through USB-A to B cable. The USB ISP programmer will work on a wide variety of operating systems, this procedure will only focus on Window 7.


Required items:
  1. USBasp programmer.
  2. USB cable.
  3. USBasp drivers can be downloaded from here.



Tutorial 3: How to burn HEX file into Microcontroller using ProgISP

In this tutorial, you will learn how to use the USB ISP Programmer for burning HEX file in your microcontroller by using ProgISP Flashing tool.

Step1
Connect the USB ISP Programmer to your Desktop PC or Laptop USB Port. Make sure you  connect it to that USB Port in you installed it during its installation. Wait for a “Ding” sound from PC. Now the programmer is installed correctly. The GREEN LED will glow to show programmer is ready.
  1. Note:

  • If windows says “USB Device not recognized” make sure the USB cables are not broken.        
  • If windows says “New hardware found” you have connected the programmer to a different port than which you have installed. Or you have not yet installed the USB ISP Programmer driver.

Step2
Launch ProgISP.exe and check in Program state function PRG ISP function should be enable if it is showing if disable than check USB ISP Programmer device is connected with Desktop PC or Laptop and its driver are properly installed.

  
The software is very easy to use
·        From Select Chip Menu Select the MCU  ,say AT89S52
·        Select  File -> Load Flash
·        Select the HEX file

 From Select Chip Menu, Select the MCU here i select AT89S52 which is 8051 Based Micorocontroller


Now Select Load Flash from File menu 


Now select HEX file that you want to burn into microcontroller.
 Select the HEX file



For final flashing target device after selecting chip & uploading hex file Click on Auto.
Note: Please ensure Lock Chip before programming
If you want to lock chip than checked the Lock Chip option.

Now your chip is programmed successfully. When programmer is busy RED LED will on.



8051 & AVR USB ISP Programmer Support AT89S51,AT89S52,AT89SXXXX