09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>RM0090</strong> Digital camera interface (DCMI)<br />

The RGB planar format is compatible with standard OS frame buffer display formats.<br />

Only 16 BPP (bits per pixel): RGB565 (2 pixels per 32-bit word) is supported.<br />

The 24 BPP (palletized format) and grayscale formats are not supported. Pixels are stored<br />

in a raster scan order, that is from top to bottom for pixel rows, and from left to right within a<br />

pixel row. Pixel components are R (red), G (green) and B (blue). All components have the<br />

same spatial resolution (4:4:4 format). A frame is stored in a single part, with the<br />

components interleaved on a pixel basis.<br />

Table 65 shows how the data are stored.<br />

Table 65. Data storage in RGB progressive video format<br />

Byte address 31:27 26:21 20:16 15:11 10:5 4:0<br />

13.6.4 YCbCr format<br />

Characteristics:<br />

● Raster format<br />

● YCbCr 4:2:2<br />

● Interleaved: one Buffer: Y, Cb & Cr interleaved: CbYCrYCbYCr, etc.<br />

Pixel components are Y (luminance or “luma”), Cb and Cr (chrominance or “chroma” blue<br />

and red). Each component is encoded in 8 bits. Luma and chroma are stored together<br />

(interleaved) as shown in Table 66.<br />

13.7 DCMI interrupts<br />

0 Red n + 1 Green n + 1 Blue n + 1 Red n Green n Blue n<br />

4 Red n + 4 Green n + 3 Blue n + 3 Red n + 2 Green n + 2 Blue n + 2<br />

Table 66. Data storage in YCbCr progressive video format<br />

Byte address 31:24 23:16 15:8 7:0<br />

0 Y n + 1 Cr n Y n Cb n<br />

4 Y n + 3 Cr n + 2 Y n + 2 Cb n + 2<br />

Five interrupts are generated. All interrupts are maskable by software. The global interrupt<br />

(IT_DCMI) is the OR of all the individual interrupts. Table 67 gives the list of all interrupts.<br />

Table 67. DCMI interrupts<br />

Interrupt name Interrupt event<br />

IT_LINE Indicates the end of line<br />

IT_FRAME Indicates the end of frame capture<br />

IT_OVR indicates the overrun of data reception<br />

IT_VSYNC Indicates the synchronization frame<br />

IT_ERR<br />

Indicates the detection of an error in the embedded synchronization frame<br />

detection<br />

IT_DCMI Logic OR of the previous interrupts<br />

Doc ID 018909 Rev 3 336/1416

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!