STM32F7 17 Digital camera interface (DCMI)

Started by tha, December 02, 2022, 09:11:38 AM

Previous topic - Next topic

tha

17.7.8 DCMI embedded synchronization unmask register (DCMI_ESUR)

Address offset: 0x1C
Reset value: 0x0000 0000



Bits 31:24 FEU[7:0]: Frame end delimiter unmask
     ไบต์นี้ระบุการบังที่จะถูกนำมาใช้กับ the code of the frame end delimiter.
     0: บิตที่ตรงกันใน the FEC byte ใน DCMI_ESCR จะถูกบังในขณะที่เปรียบเทียบ the frame end delimiter กับ the received
         data.
     1: บิตที่ตรงกันใน the FEC byte ใน DCMI_ESCR จะถูกเปรียบเทียบในขณะที่เปรียบเทียบ the frame end delimiter กับ the
         received data.

Bits 23:16 LEU[7:0]: Line end delimiter unmask
     ไบต์นี้ระบุการบังที่จะถูกนำมาใช้กับ the code of the line end delimiter.
     0: บิตที่ตรงกันใน the LEC byte ใน DCMI_ESCR จะถูกบังในขณะที่เปรียบเทียบ the line end delimiter กับ the received
         data.
     1: บิตที่ตรงกันใน the LEC byte ใน DCMI_ESCR จะถูกเปรียบเทียบในขณะที่เปรียบเทียบ the line end delimiter กับ the
         received data.

Bits 15:8 LSU[7:0]: Line start delimiter unmask
     ไบต์นี้ระบุการบังที่จะถูกนำมาใช้กับ the code of the line start delimiter.
     0: บิตที่ตรงกันใน the LSC byte ใน DCMI_ESCR จะถูกบังในขณะที่เปรียบเทียบ the line start delimiter กับ the received
         data.
     1: บิตที่ตรงกันใน the LSC byte ใน DCMI_ESCR จะถูกเปรียบเทียบในขณะที่เปรียบเทียบ the line start delimiter กับ the
         received data.

Bits 7:0 FSU[7:0]: Frame start delimiter unmask
     ไบต์นี้ระบุการบังที่จะถูกนำมาใช้กับ the code of the frame start delimiter.
     0: บิตที่ตรงกันใน the FSC byte ใน DCMI_ESCR จะถูกบังในขณะที่เปรียบเทียบ the frame start delimiter กับ the received
         data.
     1: บิตที่ตรงกันใน the FSC byte ใน DCMI_ESCR จะถูกเปรียบเทียบในขณะที่เปรียบเทียบ the frame start delimiter กับ the
         received data.

tha

17.7.9 DCMI crop window start (DCMI_CWSTRT)

Address offset: 0x20
Reset value: 0x0000 0000



Bits 31:29 Reserved, must be kept at reset value.

Bits 28:16 VST[12:0]: Vertical start line count
     The image capture สตาร์ทด้วย line number นี้. Previous line data จะถูกเพิกเฉย.
     0x0000 => line 1
     0x0001 => line 2
     0x0002 => line 3
     ....

Bits 15:14 Reserved, must be kept at reset value.

Bits 13:0 HOFFCNT[13:0]: Horizontal offset count
     ค่านี้ให้จำนวนของ pixel clocks เพื่อนับก่อนจะสตาร์ท a capture.

tha

17.7.10 DCMI crop window size (DCMI_CWSIZE)

Address offset: 0x24
Reset value: 0x0000 0000



Bits 31:30 Reserved, must be kept at reset value.

Bits 29:16 VLINE[13:0]: Vertical line count
     ค่านี้ให้จำนวนของ lines ที่จะถูกจับจาก the starting point.
     0x0000 => 1 line
     0x0001 => 2 lines
     0x0002 => 3 lines
     ....

Bits 15:14 Reserved, must be kept at reset value.

Bits 13:0 CAPCNT[13:0]: Capture count
     ค่านี้ให้จำนวนของ  pixel clocks ที่จะถูกจับจาก the starting point บน the same line. ค่าของมันควรตรงกันกับ word-aligned
     data สำหรับความกว้างที่แตกต่างกันของ parallel interfaces.
     0x0000 => 1 pixel
     0x0001 => 2 pixels
     0x0002 => 3 pixels
     ....


tha

17.7.11 DCMI data register (DCMI_DR)

Address offset: 0x28
Reset value: 0x0000 0000



Bits 31:24 Byte3[7:0]: Data byte 3

Bits 23:16 Byte2[7:0]: Data byte 2

Bits 15:8 Byte1[7:0]: Data byte 1

Bits 7:0 Byte0[7:0]: Data byte 0

The digital camera Interface รวมทุก the received data ใน 32-bit format ก่อนร้องขอ a DMA transfer. A 4-word deep FIFO มีให้ใช้งานเพื่อให้มีเวลาเพียงพอสำหรับ DMA transfers และหลีกเลี่ยง DMA overrun conditions.

tha