free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Rickey's World :: Discussion Forums :: Discuss and Learn :: 8051 Discussion Forum
 
<< Previous thread | Next thread >>
Serial port reading
Moderators: Ajay Bhargav, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph, ExperimenterUK, DavesGarage
Author Post
P Thirumeni
Tue Jun 16 2009, 11:52PM

 User Offline
Registered Member #15992
Joined: Sun Mar 01 2009, 10:08PM

Posts: 34
Thanked 0 times in 0 posts
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

Back to top

Ajay Bhargav
Thu Jun 18 2009, 02:59AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 7567
Thanked 1331 times in 1255 posts
post the program you have written for switching relays..

[Topic moved to 8051 Discussion forum]


www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top

P Thirumeni
Thu Jun 18 2009, 04:08AM

 User Offline
Registered Member #15992
Joined: Sun Mar 01 2009, 10:08PM

Posts: 34
Thanked 0 times in 0 posts
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
Back to top

P Thirumeni
Thu Jun 18 2009, 04:16AM

 User Offline
Registered Member #15992
Joined: Sun Mar 01 2009, 10:08PM

Posts: 34
Thanked 0 times in 0 posts
Hi

Here is the attachment

(file removed as requested) ExperimenterUK

[ Edited Thu Jun 18 2009, 11:27AM ]
Back to top

P Thirumeni
Thu Jun 18 2009, 04:25AM

 User Offline
Registered Member #15992
Joined: Sun Mar 01 2009, 10:08PM

Posts: 34
Thanked 0 times in 0 posts

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

then press stop and press play

PT

Back to top

P Thirumeni
Thu Jun 18 2009, 04:25AM

 User Offline
Registered Member #15992
Joined: Sun Mar 01 2009, 10:08PM

Posts: 34
Thanked 0 times in 0 posts
Sir pl. note you have to add Demo file from Data1 folder ....

then press stop and press play

PT
Back to top

P Thirumeni
Thu Jun 18 2009, 09:31PM

 User Offline
Registered Member #15992
Joined: Sun Mar 01 2009, 10:08PM

Posts: 34
Thanked 0 times in 0 posts
Thanks Experimenter and Admin.

Hoping for a reply.

Thanks

PT
Back to top

Ajay Bhargav
Mon Jun 22 2009, 02:16PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 7567
Thanked 1331 times in 1255 posts
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..

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top

P Thirumeni
Mon Jun 22 2009, 09:27PM

 User Offline
Registered Member #15992
Joined: Sun Mar 01 2009, 10:08PM

Posts: 34
Thanked 0 times in 0 posts
Hi

First thank you sir

I will try the code and give the feedback.

Thanks

P Thirumeni
Back to top

rearthur2003
Tue Jun 23 2009, 06:24AM

 User Offline
Registered Member #10733
Joined: Thu Sep 18 2008, 11:54AM

Posts: 16
Thanked 0 times in 0 posts
can you be more specific for assistance
Back to top

 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems