2010-01-09 04:29:00     bf518 image input problem,using PPI and DMA

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-01-09 04:29:00     bf518 image input problem,using PPI and DMA

hong li (CHINA)

Message: 84369   

 

Hi

 

   Everyone,I want to capture image,the cpu is BF518, AD is SAA7113, I configure BF518 PPI as follow:

 

/*config pf for ppi data*/

*pPORTF_FER |= 0x00ff;

     

*pPORTF_MUX &= 0xffc0;

*pPORTF_MUX |= 0x0015;                        //ppi功能引脚

/*config pg for ppiclk*/

*pPORTG_FER |= 0x0020;

*pPORTF_MUX &= 0xff3f;

*pPORTF_MUX |= 0x0080;

/********************/                    

 

  *pDMA0_START_ADDR = g_pmem;  //????????????

*pDMA0_X_COUNT = 720; //Line_Length;

*pDMA0_X_MODIFY = 0x2;

*pDMA0_Y_COUNT = 576; //288;//:576/2

*pDMA0_Y_MODIFY = 0x2;

*pDMA0_PERIPHERAL_MAP = 0x0;

*pDMA0_CONFIG = DMAEN | DI_EN | WNR | WDSIZE_16 | DMA2D | SYNC;

 

*pPPI_CONTROL |= PORT_EN | FLD_SEL | PACK_EN | DLEN_8 ;

*pPPI_FRAME =576; //:576/2

 

Configure PPI DMA Interrupt as follow:

 

register_handler(ik_ivg8, DMA0_PPI_ISR);

*pSIC_ISR0 |= 0x00008000;

 

 

However,  can't enter the DMA0_PPI_ISR,  there is not image, I test the SAA7113, there have clk and data.

 

How to slove this problem

 

Thank you

QuoteReplyEditDelete

 

 

2010-01-09 13:49:58     Re: bf518 image input problem,using PPI and DMA

Mike Frysinger (UNITED STATES)

Message: 84371   

 

you shouldnt be screwing with portmux/isr registers.  i also dont know what this "register_handler" function is.  use the normal Linux frameworks to do the peripheral portmuxing and interrupt requesting.

QuoteReplyEditDelete

 

 

2010-01-11 03:59:14     bf518 image input problem,using PPI and DMA

Michael Hennerich (GERMANY)

Message: 84406    >

 

This looks like VDSP code -

For support please go to   ez.analog.com/index.jspa

 

-Michael

Attachments

    Outcomes