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 / Need help for 89c52 assembly programming Relay control

Need help for 89c52 assembly programming Relay control

|

Microcontroller › 8051 › Need help for 89c52 assembly programming Relay control

  • This topic has 3 replies, 2 voices, and was last updated 15 years, 1 month ago by Bau.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 8, 2011 at 8:23 pm #529
    Bau
    Participant

    please help me to write program for below project,

    Project : I want control around 36 Devices using (any home appliances, Relay, etc) 89c52 Microcontroller and interfaced with PC (36 Device UI software I have developed in VB) but from VB what commands need to send to controller to make ON/OFF 36 Devices?

    1) how to write program for port control
    2) 89c52 need to interface with PC using USB cable (USB to RS232 Cable if possible)
    3) Just by clicking UI in PC of particular device (out of 36 devices ) respective device should get ON/OFF-? for the how to assign the address and what command need to send to microcontroller for making ON/OFF

    Please write program for me, please help me

    January 9, 2011 at 5:15 am #5318
    Bau
    Participant

    plase help me on the same

    January 10, 2011 at 5:25 am #5320
    dagakshay
    Participant

     

    1) assembly i am not sure… in C use

     

    #include<reg52.h>

    as a hedder file and

     

    Pn^m=x;

     

    n=0_3 ;for prot name

    m=0_7 ; for pin

    x can be 0 or 1;

     

    eg: P0^1=0; P1^3=1;….

     

     

    method two

     

    #include<at89x51.h>

     

    P0_0=1;

     

     

     

    2) usb serail(RS232) converters are avialable and it works fine i tried it for windows(XP, vista, 7) it works fine… or you can made it on your own by using ic FT232(avialbale in smt pack)…

     

    3) set your own protcols… and design you firmware(controller’s code) accordingly…..

     

     

     

    nice project…

     

    January 14, 2011 at 6:17 am #5328
    Bau
    Participant

    thank you, i will try

  • 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

  • RC Electronic Speed Control Capacitors February 11, 2026
  • CR2/CR123A Batteries In Projects February 11, 2026
  • Variable audio oscillator February 11, 2026
  • XLR splitter to mono. February 11, 2026
  • To couple or decouple February 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