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 / Replies / Hi Sandeep,It happens just

Hi Sandeep,It happens just

|

Microcontroller › 8051 › 8051 keeps executing › Hi Sandeep,It happens just

July 26, 2013 at 4:32 am #10204
AJISH ALFRED
Participant

Hi Sandeep,

It happens just because of the absence of while(1) loop in your code.

Once your code done all the steps it simply won’t stop anmd remain idle, rather it redo executing from the first step. To avoid such situation people use while(1) or infinite loop at the end of their code. It helps in such a way that once the entire code is finished executing the controller enters into the infinite loop and remains there idle.

 

Just add

 

while(1);

 

at the end of your code and i hope it will solve the proble.

 

Also connect the Rx pin of the MCU to the Tx pin of the SIM300 only when it is necessary.

RSS Recent Posts

  • Harman Kardon radio module BMW noise June 12, 2026
  • Win 7 and browsing June 11, 2026
  • Servo Motor Help June 11, 2026
  • Programmable 1kV DC Power Supply – Budget ~$600 with Display June 11, 2026
  • Oshon Basic, programing IF statements June 10, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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