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

Moderators: Ajay, shyam, zetaf
Author Post
fasil
Sat May 19 2007, 07:16PM
 User Offline
Registered Member #1142
Joined: Sat May 19 2007, 05:54PM

Posts: 4
Thanked 4 times in 4 posts
i am trying to implement x10 using p89c51rd2 mcu.
i have the code to run the x10 protocol for PIC16F877
I am having a hard time to change the code to run on
p89c51rd2 since they use totally different memory organization. is there any one one who can help me?
i have attached the code for the PIC.
Do you have any thing that can help me , a book on the 80c51 mcu family etc.....

1179627400_1142_FT0_an236.zip



fasile
Back to top

X10 protocol   P89C51RD2   PIC16F877   X10 with 8051   home automation   



This post has been thanked 1 time
Ajay
Sun May 20 2007, 01:13PM
Rickey's World Admin

 User Offline

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

Posts: 3745
Thanked 695 times in 654 posts
Hi fasil,
well i think you can help yourself in better way
before changing that code you must understand what X10 protocol is and how it works. for that i have few links for you. please go through them, they are very useful.

http://en.wikipedia.org/wiki/X10_(industry_standard)
http://www.x10.com/technology1.htm

please go through them. will be helpful for you.

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



This post has been thanked 1 time
fasil
Sun May 20 2007, 01:52PM
 User Offline
Registered Member #1142
Joined: Sat May 19 2007, 05:54PM

Posts: 4
Thanked 4 times in 4 posts
thank you Rickey
i know the x10 protocol very well. i have gone through those pages that u posted. If you Know the P89C51RD2 mcu very well do you think that the relocatable module is possible? Do the 'udata' and 'res' directives work as in the pics? is there a concept of linker script in the 80c51 family?


fasile
Back to top



This post has been thanked 1 time
Ajay
Sun May 20 2007, 02:28PM
Rickey's World Admin

 User Offline

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

Posts: 3745
Thanked 695 times in 654 posts
well.. u can make use of like IDATA and XDATA also the derivatives like _at_ for giving fixed address to a variable. these things can be done in Keil.
also.. you can make use of linker script. there are many things you can do with keil.

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



This post has been thanked 1 time
fasil
Sun May 20 2007, 04:05PM
 User Offline
Registered Member #1142
Joined: Sat May 19 2007, 05:54PM

Posts: 4
Thanked 4 times in 4 posts
do you have a live link for the book
The 8051 Microcontroller
by - I. Scott MacKenzie or
The 8051 Microcontroller
by - James W. Stewart

fasile
Back to top



This post has been thanked 1 time
Ajay
Sun May 20 2007, 10:11PM
Rickey's World Admin

 User Offline

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

Posts: 3745
Thanked 695 times in 654 posts
check in the ebook forum->8051
i dont think the book are asking is there but there is another book, C and 8051 its a good book. try that and if you want any book then see the request a book 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



This post has been thanked 1 time
fasil
Mon Jun 04 2007, 02:31AM
 User Offline
Registered Member #1142
Joined: Sat May 19 2007, 05:54PM

Posts: 4
Thanked 4 times in 4 posts
i have been converting the code but i couldn't find a replacement for the function of PCLATH register in the pic .what can i do to replace the functions of PCLATH,PCL and PCH?

fasile
Back to top



This post has been thanked 1 time
Ajay
Mon Jun 04 2007, 04:01AM
Rickey's World Admin

 User Offline

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

Posts: 3745
Thanked 695 times in 654 posts
Fasil, i donno much about PIC microcontroller and there is no site which explains these register. I am really surprised on this thing. well i got found some information... like this..

PC:
Program counter (PC) is a 13-bit register that contains the address of the instruction being executed. It is physically carried out as a combination of a 5-bit register PCLATH for the five higher bits of the address, and the 8-bit register PCL for the lower 8 bits of the address.

I dont know how much you understood from that... but i saw sample programs etc.. which shows that, PCL and PCLATH is used for making lookup tables, as PCL is directly associated with the program counter and in 8051 there is no direct access to PC.
also.. these two registers are used for making jumps etc.. like jump to some address, but usually as i said PCL and PCLATH is used for look up tables. coz normal jumps in PIC i.e. goto and call etc. are limited to some limit of memory (sorry donno much about this)
but in 8051 we can directly jump to the label with ljmp. Please try to read more in PIC books if you can get some information and do share it with me.
and regarding your use of register.. i think you can try using DPTR, labels and jumps hope you get desired result.

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



This post has been thanked 1 time
 

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