About Me (TS Pradeep Kumar)

Working at VIT University and having great interest towards embedded wireless systems and e-learning. This site caters to most of the Indian Engineering/technology students to know about embedded systems, network simulator, e learning tools/techniques, etc. If you are a student or a learner, you can always request a title or post..

Subscribe by Email

Enter your email address:

Delivered by FeedBurner

8051 Program to handle the Ports

 

Tool used: Keil Compiler for 8051

Microcontroller used: Intel 8051AH (with 32 I/O Pins, Two timers/counters, 5 interrupts with 2 priority levels)

//Program to handle ports of 8051

#include <reg51.h>

void main()

{

P0=0×50;

P1=0×10;

P0=P1+P0;

}

The Port0 holds the data of 50H and Port1 holds 10H, both added together and result is in Port0 as 0×60;

  • Share/Bookmark

Related posts:

  1. Serial Communication using UART
  2. Embedded Systems Laboratory (RIDE)
  3. Program Modelling Concepts
  4. Sine Wave Generation
  5. Introduction to Embedded Systems

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>