AnsweredAssumed Answered

PPI on BF533 does not work correctly when using ADS-HPUSB-ICE

Question asked by techkon-martin on Mar 15, 2018
Latest reply on Mar 29, 2018 by Jithul_Janardhanan

PPI on BF533 does not work correctly when using ADS-HPUSB-ICE

 

I want to read in a video-signal over PPI and DMA to a BF533.
When compiling a loader file and booting the program over the SPI interface,
everything works fine.
When starting the program with the ADS-HPUSB-ICE everything seems to work fine
and the count of bytes which are received is also ok, but the data is faulty.
The bytes seems to be shifted and the pack function does obviously not work.

Any ideas?

Setup:

ADSP-BF533SBBCZ500

Omnivision Video-Chip connected
Bit 0:8 to PPI0-PPI3 and PF12-PF15
HREF to PPIFS1
VSYNC to PPIFS2
FS3 connected to GND
Image 1024x1024

Boot over SPI from Renesas Controller

Software: VisualDSP++5.1.2
Optimization: off

void INIT_PPI(void)
{             
                *pPPI_CONTROL = 0xAC;
*pPPI_DELAY = 0;           
                *pPPI_STATUS = 0;         
                *pPPI_COUNT = 1024-1;              
                *pPPI_FRAME = 1024;   
                *pPPI_CONTROL = 0xAD;
                ssync();
}

void INIT_DMA(void)
{             
*             pDMA0_CONFIG =0;     
                *pDMA0_START_ADDR = (unsigned long*)(0x0);
                *pDMA0_X_COUNT = COLS_XGA/2;
                *pDMA0_X_MODIFY = 0x2;
                *pDMA0_Y_COUNT = ROWS_XGA;
                *pDMA0_Y_MODIFY = 0x2;
                *pDMA0_PERIPHERAL_MAP = 0x0;
                //INT enable / INT after complete Image/ discard FIFO / 2D / 16 bit
                *pDMA0_CONFIG = 0x00B7;      
}

Outcomes