Microcontroller Programming in Assembly Language PART 3

November 16, 2008 by · 5 Comments
Filed under: Pic Programing 

Microcontroller Programming in Assembly Language PART 3

In the previous two articles we discuss about how to create a MPLAB project and understood some basic features and instruction available in a PIC16F84A microcontroller. In this article I basically focus on how to write ‘if-then’ logic in assembly.  Below a sample program code is provided which uses simple ‘if-then’ logic. This will give you some idea about how to use it in microcontroller Programming.

Read more

Microcontroller Programming

November 15, 2008 by · 3 Comments
Filed under: Pic Programing 

Microcontroller Programming

There are lot of things have to be considered when devices are made using microcontrollers. In here such several issues will be discussed on Microcontroller Programming.

Steps of Microcontroller Programming

  • Get an idea about what is going to be done using Microcontroller
  • Dividing the problem in to smaller parts for the ease of solving
  • Programming using assembly
  • Converting the program in to a hex code which can be understood by the Microcontroller
  • Programming Microcontroller using hardware

Read more

Microcontroller Programming in Assembly language PART 2

November 8, 2008 by · 8 Comments
Filed under: Pic Programing 

Microcontroller Programming in Assembly language PART 2

In the previous article, ‘Microcontroller Programming in assembly language PART 1‘, I showed you the way to create a project using MPLAB. In this article I will show you the way to understand basic instructions used in writing assembly language for a PIC16F84A microcontroller using a sample program written in assembly. Though it is not a complicated program by any means, it will help you to understand the basics. Here is the sample program.

Read more

Microcontroller Programming in Assembly language PART 1

November 2, 2008 by · 9 Comments
Filed under: Pic Programing 

Microcontroller Programming in Assembly language PART 1

In this ‘Microcontroller Programming in Assembly language’ series of articles, I would like to show you the way to write an assembly program for a PIC, known as microcontroller commonly, using mpasm assembly in MPLAB. I used PIC16F84A for this purpose. By referring this series of articles one can get an idea on how to begin programming in assembly language for PICs. To give an idea about ‘Microcontroller Programming in Assembly language’ I will take small assembly programs and describe their functionality one by one.

Read more

Beginner guide to Microcontroller Programming

October 18, 2008 by · 14 Comments
Filed under: Pic Programing 

1. Beginner guide to Microcontroller Programing

The following link is a tutorial series on the 14-bit core PIC family made by Microchip. It covers common PICs like 16F84, 16F628, 16F87x etc…It tells you nearly everything about its architectures like program code bus and data bus and many other aspects like Reset, Oscillators etc. It is much easier to learn while someone is talking to you via diagram and animated drawings. At this moment, the following areas are covered: Architecture, Instruction Set, Development Tools Overview, Device Configuration, Resets and Oscillator Read more