Print Page | Close Window

How to program micro controllers



Printed From: ProjectsQA
Category: Projects Forum
Forum Name: Electrical, Electronics & Communication Projects
Forum Discription: Projects on Microprocessor, Microcontroller, Embedded, Robotics, VLSI, VHDL, Mini Projects and many more
URL: http://projectsqa.com/forum_posts.asp?TID=2291
Printed Date: 30-May-2017 at 4:35am


Topic: How to program micro controllers
Posted By: navj
Subject: How to program micro controllers
Date Posted: 14-Mar-2016 at 4:01pm
Hello Sir/Madam

Please suggest me the all possible ways of writing code for a micro controller of PIC16F84A
I mean the programmers used and the coding languages used with that programmers


Thank you



Replies:
Posted By: ElectronicsTeam
Date Posted: 13-Jan-2017 at 11:02am
We have to start from basic to program micro controllers here are the some basic steps which will useful for you

The PIC microcontrollers is programmed by the embedded C language or assembly language by using appropriate dedicated software. Before going to build a PIC microcontroller project, we must become aware of developing a basic microcontroller (like 8051) based project
Thee are the some Basic softwares used in pic controller to program
Software Components

MPLAB Compiler
Proteus software
Embedded C language

The code loading process of microcontroller is called dumping. The microcontrollers understand only the machine level language, which contains ‘0 or 1s’. So we need to load the hex code into the microcontroller. There are many softwares available in the market for loading the code to the microcontroller. we have used ‘PICFLSH’ programmer software to dump the code to the PIC microcontroller. The programmer kit comes with the hardware kit along with the software.

This software needs to be installed into the computer. The microcontroller placed in the hardware kit, which comes with the socket. Here are the steps to load the code onto the microcontroller.
Interface the hardware (programmer kit) to the computer through a serial cable
Place the microcontroller in the socket of the hardware kit. Press the lock button to ensure the microcontroller is connected to the board.
Open the software installed in the computer. This shows the menu bar with file, functions, open, save and setting options.
Select the ‘open’ option from the drop-down menu and select the ‘load file’ .
Click on the ‘load’ button so that the hex file is loaded into the microcontroller.
Next step is simulating
The simulation is a decision analysis and support tool, which is used to know the performance of the circuit. The hardware is the cost-effective equipment, so the proposed action cannot be directly observed by the hardware. The simulation software allows you to know the circuit performance and find & rectify the errors of the program. There are different types of simulating softwares available in the market for checking the circuit performance. Here Proteous software is used to check the circuit performance.

Open the project in the Proteus software.
Click on the ‘Debug’ menu.
Select the ‘start debugging’ option. The LED starts blinking, which indicates the circuit is running.
After some time, select the ‘stop debugging’ option. The LED will now stop blinking.
These are the necessary steps for PIC microcontroller programming to develop simple project. Hope that you might have got a basic idea on this topic. Any further assistance to build the PIC based projects or any microcontroller based projects you can contact us by commenting below.



Print Page | Close Window