Skip to main content
Javad
Associate III
September 7, 2022
Solved

DCMI High resolution

  • September 7, 2022
  • 2 replies
  • 1173 views

Hi,

I try to make stm32l496 as a video camera device. I use Ov5640 sensor. The aim is that taking photos and send them to the host device directly (like a webcam). 

The challenge is that when I try to use high resolutions, due to I don't use any memory, how I can handle it and send the data through otg? I want to use WVGA resolution (800x480) with JPEG format.

This topic has been closed for replies.
Best answer by Imen.D

Hi @Jävad Maleki​ ,

For DCMI High resolution, you should use the Double-buffer mode.

But, the Double-buffer mode is not available in STM32L496 devices.

You can refer to the section "4.4.8 Double-buffer mode for medium resolutions (snapshot or continuous capture)" in this AN5020 Digital camera interface (DCMI) on STM32 MCUs

0693W00000SvSgLQAV.jpg 

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

2 replies

Technical Moderator
September 7, 2022

Hello @Javad,

You should consider some parameters like: the pixel clock, the supported data format...

Higher resolution require maximum DCMI pixel clock.

You can check the product datasheet, and I recommend that you refer to this AN5020 Digital camera interface (DCMI) on STM32 MCUs

that helps you on DCMI configuration.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Imen.DBest answer
Technical Moderator
September 15, 2022

Hi @Jävad Maleki​ ,

For DCMI High resolution, you should use the Double-buffer mode.

But, the Double-buffer mode is not available in STM32L496 devices.

You can refer to the section "4.4.8 Double-buffer mode for medium resolutions (snapshot or continuous capture)" in this AN5020 Digital camera interface (DCMI) on STM32 MCUs

0693W00000SvSgLQAV.jpg 

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks