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 / Can we turn LED on and off from serial port to 8051

Can we turn LED on and off from serial port to 8051

|

Microcontroller › 8051 › Can we turn LED on and off from serial port to 8051

  • This topic has 2 replies, 3 voices, and was last updated 13 years, 3 months ago by phanindra nath.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 29, 2012 at 5:23 pm #1618
    Julian
    Participant

    Hi guys, is it possible to turn LED on and off via serial port of PC controlling using VB? LEDs are connected to 8051. I’ve searched online but normally only text is used to be sent serially. 

    March 4, 2012 at 9:57 am #7233
    Mehtab Ali
    Participant

    yes we can.just put 0XAAH in accumulator. connect led to txd pin of 8051. start sending the data from accumulator via serial port

     

    March 4, 2012 at 10:57 am #7235
    phanindra nath
    Participant

    you can turnOn led by sending ON LED and turn off the led by sending OFF LED.

     

    But you have to write a program in such a way that, if you get ON LED on from serial port then give led_pin=1; similarly for OFF also.

     

    I didnt clearly understand you but i think this might helpu

     

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

RSS Recent Posts

  • Fun with AI and swordfish basic June 23, 2025
  • Simple LED Analog Clock Idea June 23, 2025
  • Microinverters and storeage batteries? June 23, 2025
  • PIC KIT 3 not able to program dsPIC June 23, 2025
  • Is AI making embedded software developers more productive? June 23, 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