Skip to main content
Explorer II
January 23, 2024
Question

STM32H7 Camera Buffer YUV TVP5150 JPEG

  • January 23, 2024
  • 1 reply
  • 4221 views

Hello

Let's assume I have a TVP5150 device connected to a STM32H7 MCU. The TVP5150 transmits PAL frames as YUV. This means 2 bytes per pixel.

This results in 720x576 * 2 = 829.440KB per frame. In reality, there is pretty sure the need for double buffering. So I guess I need ~1.65MB to store/cache frames.

There is SDRAM Support for STM32H7 allowing to connect e.g. a 64Mbit SDRAM.

Is this a "supported" setup? Can I use DMA to transfer data of the TVP5150/Camera Interface into SDRAM? Will the SDRAM and STM32H7 be fast enough for such kind of operation?

The STM32H7 should also be able to encode these frames into JPEG/MJPEG.

 

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    January 24, 2024

    Hello @kbch 

    Indeed, we recommend using MDMA. Some examples are already provided, you can take a look into section 2.2 and 2.3 MDMA with JPEG and with external SDRAM in AN5001

     

    The STM32H7 should also be able to encode these frames into JPEG/MJPEG.

    Sure, I would suggest taking a look to AN4996