Skip to main content
hurwitze
Associate II
June 19, 2008
Question

using the DMA controller as a camera interface

  • June 19, 2008
  • 4 replies
  • 1162 views
Posted on June 19, 2008 at 18:31

using the DMA controller as a camera interface

    This topic has been closed for replies.

    4 replies

    hurwitze
    hurwitzeAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:37

    by the way, I am using the stm32f103z.

    hurwitze
    hurwitzeAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:37

    Hi I looked at the application note an2548, which describes how to use the DMA controller as a camera interface. The example tells you to connect the camera data inputs (8 bit wide) to Port PD. However, I cannot connect to this port because it is already in use as the connection to external SRAM. In addition I would like to use the DMA controller in the following manner:

    The DMA source should be Port PC (since I have that one available)

    The DMA destination should be the external SRAM through the FSMC.

    Is this possible? Can I connect the camera output data lines to port PC?

    Thanks.

    hurwitze
    hurwitzeAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:37

    Thank you. I will try it out and let you know. Right now I am designing the hardware, so that hopefully the software will be easier :)

    16-32micros
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:37

    Hi hurwitze,

    Yes you can ! have a look on example ''FSMC'' in ''DMA'' examples subfolers from the STM32 FW library : it uses two DMA1 channels to transfer a word data buffer from embedded FLASH to external memory through FSMC and from this external memory to embedded RAM. Yo can just tailor and combine with AN2548 example. Let's us know if you make it working ?

    Cheers,

    STOne-32. :o (Release Your Creativity)