Posts

Creating Project in Keil Micro Vision

Image
Keil MicroVision is a free software, we use it for embedded program developing. In this software we have provided a platform to write a program using text editor, compile program to convert source code into machine language i.e. compiler will convert source code into hex file.   Here is simple guidance for  How to write programs in  Assembly language or C/C++ How to Compile and Assembling Programs How to Debug program Creating Hex and Axf file Test a program without Available real Hardware (Simulator Mode)  Here a program to write a data 55H to port 1  and complementing data after some time delay is explained. Following is the  process of  writing  program in Keil ,its  execution and Debugging : Step 1: Open Keil uV3 Step 2 : After opening Keil uV3, Go to Project tab,create New Project ,select new folder and  give name to the Project.     Step 3 : After Creating project following window will pop-up. Now Select your de...

PIC32 Tic-Tac-Toe: Demonstration of using touch-screen, TFT and the Protothreads threading library

Image
I had previously used the Adafruit TFT display using my library (ported from the Adafruit Arduino library). I decided to optimize the library to improve drawing speed. The same display I use comes with a 4-wire resistive touch-screen as well. I decided to write a simple library for the touch-screen and give Protothreads a try. To incorporate all this, I thought it would be cool if I used these to make a simple game. Tic-tac-toe came to mind as a fun little demo. I'm sure everyone's familiar with the game so I won't explain the rules there. The touch-screen is simply two resistive sheets placed on top of each other on top of the TFT screen. When it is pressed down at a given place, the two sheets make contact and a voltage divider is formed. Using the IO's and the ADC, this voltage is read in the X and Y directions to register a touch. Here is a very good pictorial depiction of the resistive touch screen (taken from the Atmel AVR341 document ): So in order to...

8051 SIMULATORS

Everyone wants to see some practical results after working hard on a project. Same is the case with 8051 microcontroller. You have probably designed something involving the 8051 and written / compiled a program code for it and you are almost ready to put it to test. I know you can't wait but there is still one essential step before jumping on to the implementation phase and it is called simulation. UPDATE: You can also click this link for an updated version of this post. READ MORE

Serial communication in 8051 microcontroller

Advantages of Serial communication over Parallel communication : Parallel transmission and Serial data transmission are mostly used data transfer techniques. Parallel transfer have been the preferred way for transfer data, but with serial data transmission we can achieve some other advantages which are given below : In parallel transmission of data  n bits are transferred simultaneously, thats why we have to process each bit separately and convert them into serial order at the receiver. Hence overhead gets increased in parallel transmission.  Number available communication media are serial in nature like satellite communication, Telephoning, some microwave application etc. hence serial communication have advantage of that. Number of inherent devices like tape work on principle of serial data transmission. Signal skewing is the another problem with parallel data transmission. In the parallel communication, n bits leave at a time, but may not be received at the receiver at...

HOW TO USE KEIL

Finally you have decided to write your own code for the 8051 microcontroller. It doesn't matter whether you have chosen Assembly or C Language for yourself but what matters now is that you need an environment specially designed for 8051. Basically you are looking out for IDE (Integrated Development Environment) that will help you build and compile programs. While there are many options out there, I prefer KEIL uVision in this regard. UPDATE: You can also click this link for an updated version of this post. READ MORE

PROGRAMMING LANGUAGE FOR THE 8051

If you are interested in programming then you are definitely familiar with some programming language and probably written few programs or compiled few codes. If you are not, then I strongly insist that you check it out first i-e read the basics of programming. Writing codes for the 8051 microcontroller is not much different. You choose some programming language for yourself and then you start writing codes in the correct environment. That's all it takes. UPDATE: You can also click this link for an updated version of this post. READ MORE

PROGRAMMING THE 8051

To use the 8051 microcontroller, you definitely need to program it first for the intended purpose. What does that mean actually? The 8051 itself is just a piece of hardware capable of doing nothing at all. It is actually the software that makes it intelligent and gives some meaning to its life. The software defines the purpose of the 8051 or solution to a particular problem. Now how to program it? It's very simple to understand. UPDATE: Visit this link for a newer and updated version of this post - with detailed instructions. READ MORE