|
|
View previous topic :: View next topic |
Author |
Message |
jfunsang
Joined: 29 May 2006 Posts: 3
|
SPI communication between ADE7753 and PIC 16F877A |
Posted: Mon May 29, 2006 2:25 pm |
|
|
Hi everyone sorry if I have some mistakes with the language, I'm from Ecuador and I have a big problem with the commucation between pic 16F877A and the ADE7753.
I don't kown how can do this communication in PIC C, I'm a beginner with that program, I tried to resolve this problem with assembler but I was lossing my time 'cause it's really difficult.
If somebody can help me with some lines of code will be great
Thanks for your help. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon May 29, 2006 3:38 pm |
|
|
Quote: | I have a big problem with the commucation between pic 16F877A and the ADE7753. |
The ADE7753 data sheet can be downloaded from this page:
http://www.analog.com/en/prod/0,2877,ADE7753,00.html
Page 5 of the data sheet shows that the chip uses SPI Mode 1.
Refer to a chart near the end of this page to see SPI Mode 1 timing:
http://www.totalphase.com/support/articles/article03/
The problem is that this is a very complicated chip. What you have done
is a very common beginner mistake. You have decided to do a very
complicated project and your skill level is below the requirements
necessary to do it.
To do this project, you need to write a "driver" for the chip.
There is a sample driver available for a similar chip, the ADE7756,
on this page:
http://www.analog.com/en/prodRes/0,2889,ADE7756%5F43,00.html
That appnote link is from here:
http://www.analog.com/en/prod/0,2877,ADE7756,00.html
The problem is that the code is written in Microchip assembly language.
An intermediate level programmer could easily translate this code to C,
but you're at at beginner level. So another common beginner request
is to ask someone else to write the driver. But usually no one wants
to do this. I don't.
My advice is to build up your skill level or pick an easier project.
I'm not trying to be mean. I'm just telling you the facts. |
|
|
jfunsang
Joined: 29 May 2006 Posts: 3
|
jfunsang |
Posted: Thu Jun 01, 2006 5:24 pm |
|
|
Thanks for your helping, but I have to do this 'cause it's my tesis of graduation, then I have to do it.
The principal problem that I 've got, it's that I don't know how to do the configuration from the PIC16F877A to the ADE7753.
I know how to read from the PIC but I don't know how to write to the ADE7753.
I need to tell to the ADE7753 that I wanna have the energy and I don't know how to do it.
What is a driver??
If somebody can help with my problem will be great
Thanks. |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|