Full Version: Serial port reading
P Thirumeni
Jun 16 2009, 11:52 PM
Hi all

I have a programme which gives HEX codes through serial port to switch relays, i want to copy this codes (HEX) coming out from serial port to PORT1 of the 8051.

Can anyone help me with the code.

nalthirumeni@yahoo.com

PT
Ajay Bhargav
Jun 18 2009, 2:59 AM
post the program you have written for switching relays..

[Topic moved to 8051 Discussion forum]
P Thirumeni
Jun 18 2009, 4:08 AM
Dear Sir

Thanks for your help.

I am attaching the folder containing the exe file.

Please d.click on Relayplayer icon

Ignore the registration and press OK

1. Press stop button

2. Press play button

3.Music come from speaker

4.Also sequentially ASCII/HEX codes comes from serial port (you can use HDD serial port monitor or other to see)

5.For example IF 01 relay to be switched on the 01 HEX codes comes out

all 8 relay means 255 diferent combination from 1 to 8 relay we get diff. codes

I want this hex codes to be copied to PORT1 /2 of 8051

I tried MOV P1,#H28 and other such codes not working.

I request the admin to delete the file after seeing.

Pl. help.

Thanks

PT
P Thirumeni
Jun 18 2009, 4:16 AM
Hi

Here is the attachment

(file removed as requested) ExperimenterUK
P Thirumeni
Jun 18 2009, 4:25 AM

Sir pl. not you have to add Demo file from Data1 folder ....

then press stop and press play

PT

P Thirumeni
Jun 18 2009, 4:25 AM
Sir pl. note you have to add Demo file from Data1 folder ....

then press stop and press play

PT
P Thirumeni
Jun 18 2009, 9:31 PM
Thanks Experimenter and Admin.

Hoping for a reply.

Thanks

PT
Ajay Bhargav
Jun 22 2009, 2:16 PM
i think you are writing instruction in wrong way..

try
CODE:
MOV P1,#28H

;if you are storing in some location say 30H then move to port like this
MOV P1, 30H

;if you using an equ for a location say Store equ 30H then
MOV P1, Store
 


do tell me how you're storing the value. what does this program do :-s its so confusing..
P Thirumeni
Jun 22 2009, 9:27 PM
Hi

First thank you sir

I will try the code and give the feedback.

Thanks

P Thirumeni
rearthur2003
Jun 23 2009, 6:24 AM
can you be more specific for assistance
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Rickey's World © 2003 - 2007