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,Sorry for the

Hi Sandeep,Sorry for the

|

Microcontroller › 8051 › 8051 keeps executing › Hi Sandeep,Sorry for the

August 13, 2013 at 6:15 am #10321
Anonymous
Guest

Hi Sandeep,

Sorry for the delayed response.

I found this from your ISR;

 

               if(ch!=0x0D && ch!= 0x0A)
               {
                       str[count++]=ch;
                       lcd_data(str[count-1]);

               }

 

ISR should always be very light, less time consuming and free of any function calls. Hence I suggest you to avoid the statement;

 
                       lcd_data(str[count-1]); 
 
from your ISR and try.
 
The function will still be executing even if the next interrupt happens and I guess that could be the reason.

RSS Recent Posts

  • Trail camera May 20, 2025
  • how to work on pcbs that are thick May 20, 2025
  • can a AT89C51 be used as a rom? May 20, 2025
  • Telegram Based Alarm - Sensor cable protection May 20, 2025
  • using a RTC in SF basic May 19, 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