- This topic has 3 replies, 2 voices, and was last updated 14 years, 1 month ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Need help for 89c52 assembly programming Relay control
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
plase help me on the same
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…
thank you, i will try