i would need a SPI protocol code example that communicate my MCU with ade7878 chip.
and i use PIC18 MC.
I have attached the entire micro-controller code with regards to the evaluation of ADE7878. This code was written for use with LPC2368 micro-controller. Hope it is of help to you!
i m really thankful to u.
Can the sample code attached be used for writing an SPI code between ADE7878 and TS7800 MCU.
Doing a quick search, it looks like TS7800 does not have a hardware SPI port--it implements the SPI through software. This means that you should have the flexibility to match the TS7800 output to the SPI timings required by ADE7878. It looks like you would need to do some customization though--to make TS7800 sample code match ADE7878 requirements. The ADI sample code for a SPI driver for a NXP processor will probably not be useful.
Thanks Meghan for the response. Could you please give me a fair bit of an
idea about how to tweak the SPI code for TS7800 to suit the requirements of
ADE7878. We have the SPI code implemented for TS7800 using ADE7758.
On Sun, Jul 7, 2013 at 8:01 PM, mkaiserm <
Please see my response in your other thread:
I've triad to use ver35_20081216 project using IAR Workbench but during downloading to processor there is an error. (Writing outside memory address 0x7E000). I've programed LPC2368 using FlashMagic and .hex file from Debug folder but processor doesn't start after restart - maybe You can attach the .hex file which was compiled in Release mode? I've tried to do it by myself using trial version program but it doesn't work (maybe You use some preprocessor instruction like STARTUP_FROM_RESET???)
What do you mean by 'Release' mode? The code attached must work fine with the tools you are mentioning. Do you get a success message on downloading the code? If the part doesn't start up after reset, there must be something else that is causing a problem. Can you attach your schematic and explain the trouble you are facing in detail?
In IDE – IAR Workbench You have to choose (Project -> Edit Configurations ) the Debug or Release option. I assume the project was compiled with the Debug option because the .hex file is in Debug directory….
I ‘ve tried to download code to my board and eval-board and the results are same. If I choose Project->Download->”Download active application” I have “Writing outside memory address 0x7E000” error. If I choose "Download and Debug" verification fails – the error is connected with address above 0x7E000.
Yesterday I programmed kit and my board but I’ve changed the linker script first.
I’ve changed “$PROJ_DIR$/config/ADE78xx_eval_board_project_flash.icf” file to standard LPC2368.icf
After this I was able to program and debug eval-board and my board either.
So now my question is Can I do that?:) I assume there was the reason that You have changed the linker script.
I believe you have a problem similar to the one in this discussion:
Kindly take the icf file ( posted in my final post) from that discussion and use it. It will work for ADE7878 as well.
Retrieving data ...