TUTORIAL FOR HOW TO WRITE C PROGRAM USING KEIL COMPILER

Published on Aug 25 2010 // Basics, Electronics

Warning: Missing argument 2 for wpdb::prepare(), called in /home3/nithish/public_html/btechzone.com/wp-content/plugins/sharebar/sharebar.php on line 112 and defined in /home3/nithish/public_html/btechzone.com/wp-includes/wp-db.php on line 990

Warning: Missing argument 2 for wpdb::prepare(), called in /home3/nithish/public_html/btechzone.com/wp-content/plugins/sharebar/sharebar.php on line 124 and defined in /home3/nithish/public_html/btechzone.com/wp-includes/wp-db.php on line 990
  • Sharebar

Check out this tutorial for writing C program using keil C Compiler.

DOWNLOAD TUTORIAL FOR WRITING C PROGRAM USING KEIL COMPILER

It has the following example programs with circuit diagram and C code.

  1. BASIC.C - The basics of writing C code for the 8051 using the Keil development environment. In this case, a simple program will be constructed to make a binary counter on Port 0.
  2. INT.C – A demonstration of how to write interrupt-driven code for an 8051 using the Keil C compiler. The same techniques may work in other 8051 C compilers with little or no modifcation. This program will combine the functionality of both basic.c and serial.c to allow serial communications to be entirely in the background, driven by the serial interrupt. This allows the main() function to count on Port 0 without being aware of any ongoing serial communication.
  3. SERIAL.C – A demonstration of how to access the serial port on an 8051 using C code. To avoid using interrupts, this example polls the interrupt flags in the serial port to know when the serial port is ready.
  4. Implementing a 4 bit Counter using an 8051 and Interfacing it to an LCD – In this program, you will learn how to write a simple C program for 80C51 micro-controller, compile it using C51 compiler, and emulate it on an emulator using Pro51. The program will be used to control a simple 4-bit up-down counter, capable of counting from 0 to 15. At each step the count should be displayed in decimal format on the LCD.
  5. Implementing a Calculator Using Peripherals Like a Keypad and LCD – In this lab, you will build a simple calculator using the keypad as an input and the LCD as an output peripheral. After debugging and testing your program, you will have to burn the compiled program to a standalone 8051 chip at the end of this lab.
  6. Serial Communication – To establish a serial communication link between the PC and the 8051.
  7. Analog to Digital Conversion – To be able to implement analog to digital conversion using the ADC0804LCN 8-bit A/D converter. You will design a circuit and program the chip so that when an analog signal is given as input, the equivalent digital voltage is displayed on an LCD display. Thus, in effect, your circuit should function like a simple voltmeter.
  8. Controlling a Stepper Motor – The purpose of this lab is to control a stepper motor, with instructions received from the PC via a serial communication link to the 8051.

DOWNLOAD TUTORIAL FOR WRITING C PROGRAM USING KEIL COMPILER

Leave a comment