AnsweredAssumed Answered

Trouble on Blackfin SPORT to receive ADE7878 SPI data

Question asked by robin.hu Employee on Mar 27, 2012
Latest reply on May 7, 2014 by mrgabu

I am using BF512 SPORT connect to ADE7878 HSDC.

--------------------------------------------

RFS(input) <---HSA

RSCLK(input) <---HSCLK

DRPRI(input <---HSD

--------------------------------------------

 

Config BF512 as following:

----------------------------------------------------------------

reg = (RCKFE | LARFS | LRFS | RFSR);

*pSPORT0_RCR1 = reg;

reg = (32-1);

*pSPORT0_RCR2 = reg;

--------------------------------------------------------------

 

Result was BF512 can not get valid data in.

 

1. On ADE7878, HSA always go with HSCLK( when HSA is valid, HSCLK comes out; when HSA is invalid, no HSCLK.). See following diagrams:

1)

ADE7878_HSDC_timing_1.JPG

2)

ADE7878_HSDC_timing_2.JPG

 

2. On BF512 SPORT, it was said before the first RFS there must has >= 4 stable RSCLK cycles.

BF512_SPORT_timing.JPG

 

How can I make SPORT success receive the SPI data?

Outcomes