EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / how to make complete project?burn program?which tool have to use?

how to make complete project?burn program?which tool have to use?

|

Microcontroller › 8051 › how to make complete project?burn program?which tool have to use?

  • This topic has 3 replies, 4 voices, and was last updated 13 years, 3 months ago by Ashish Chakole.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 31, 2011 at 7:22 am #959
    RajBuranpuri
    Participant

     

    i am new to implement 8051 programs on 8051 controller ,but i dont know in which compiler i should compile code and how can burn the program permanantly in 8051 chip,if any programmer tool available in market?
    in any simulator like visual basic programmer vpb 2.0 .exe can support your digital sevensegment alarm using
    8051?
     
    please provide me all steps one by one to make project working in commercial base type.
    June 1, 2011 at 5:03 am #6314
    dagakshay
    Participant

    see this link i hope it will help you out

    http://www.engineersgarage.com/forums/8051/how-create-new-project-keil

    February 20, 2012 at 6:46 am #7187
    nikhiljain
    Participant

    for making your own programmer, go through the 89S51/52 Programmer tutorials at http://www.engineersgarage.com/tutorials.

    You should start with http://www.engineersgarage.com/tutorials/89s51-89s52-programmer-basics

    March 23, 2012 at 2:37 pm #7324
    Ashish Chakole
    Participant

    Hello Shafik n friends,

    We have been carrying out our project work based on ‘GSM based household meter tampering detection’.(program is given below) . We have experienced some problems while executing the program. It would be very kind of you to go through the program and suggest the corrections.
    The sensors form the input to the microcontroller and a message should be sent as soon as the pin goes high. Also relays have to be controlled using sms sent by the user. 

    We are also planning to interface a 16*2 LCD display (optional), which will display the same message as is to be sent through the GSM modem. If possible could you suggest the required changes in the current program.

    We will be interfacing a SIM300 GSM modem.

    It would be very kind of you to revert back. We have gone through all the programs in engineers garage, please mention any corrections wrt this program.

     

     

     

    #include<reg51.h>
    #define FREQ 12000000
    #define baud 9600
    #define spbrg_value (((FREQ/64)/baud)-1)

    sbit seal=P2^0;
    sbit magnet=P2^1;
    sbit reversed=P2^2;

    int i=0,j,k,temp;
    unsigned char *sms_service=”AT<enter>”;
    unsigned char *sms_format=”AT+CMGF=1<enter>”;
    unsigned char *sms_write=”AT+CMGS=”9999999999″<enter>”; // 10-Digit Mobile Number
    unsigned char *sms=”seal broken”;
    unsigned char *smss=”magnetic material detected”;
    unsigned char *smsss=”current reversal”;
    unsigned char *sms_report=”SMS Sent…”;
    unsigned char sms_terminate=0x1A;
    unsigned char enter=0x0D;

    void delay(unsigned int msec) // Function for delay
    {
    int i,j;
    for(i=0;i<msec;i++)
    for(j=0; j<1275; j++);
    }

    void init_serial() // Initialize serial port
    {
    TMOD=0x20; // Mode2
    TH1=0xFD; //buad rate
    SCON=0x50; // Serial mode=1 ,8-Bit data,1 Stop bit ,1 Start bit, Receiving on
    TR1=1; // Start timer
    }

    void tx_data(unsigned char str) // Transmit data function
    {
    SBUF=str; //Store data in SBUF
    while(TI==0); //Wait till data transmits
    TI=0;
    }

    void gsm_cmd(unsigned char *string)
    {
    i=0;j=0;
    while(string!=’’)
    {
    temp=0;
    if(string
    ==0x5C) // Not to send ” cahracter
    i++;
    tx_data(string
    ); // Send by serial communication
    i++;
    while(temp!=1);
    }
    temp=0;
    tx_data(enter); // Send ASCII code for ‘Enter’ key
    while(temp!=1);
    }

    void main()
    {
    P2=0xFF;
    P2=0x00;
    init_serial();
    while(1)
    {

    if(seal==1)
    {
    gsm_cmd(sms_service);
    gsm_cmd(sms_format);
    delay(1000);
    gsm_cmd(sms_write);
    delay(1000);
    gsm_cmd(sms);
    tx_data(0x1A);
    delay(1000);
    }
    else if(magnet==1)
    {
    gsm_cmd(sms_service);
    gsm_cmd(sms_format);
    delay(1000);
    gsm_cmd(sms_write);
    delay(1000);
    gsm_cmd(smss);
    tx_data(0x1A);
    delay(1000);
    }

    else if(reversed==1)
    {
    gsm_cmd(sms_service);
    gsm_cmd(sms_format);
    delay(1000);
    gsm_cmd(sms_write);
    delay(1000);
    gsm_cmd(smsss);
    tx_data(0x1A);
    delay(1000);
    }

    }
    }

     

     

     

     

     

    plz can u make any correction in this program?  especialy in bold part?

     

     

     

     

     

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Can I make two inputs from one?? June 21, 2025
  • Beats Solo 4 June 21, 2025
  • Behlke swich June 21, 2025
  • Is AI making embedded software developers more productive? June 21, 2025
  • Simple LED Analog Clock Idea June 21, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise