09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

8-bit data<br />

When EDM[1:0] in DCMI_CR are programmed to “00” the interface captures 8 LSB’s at its<br />

input (D[0:7]) and stores them as 8-bit data. The D[13:8] inputs are ignored. In this case, to<br />

capture a 32-bit word, the camera interface takes four pixel clock cycles.<br />

The first captured data byte is placed in the LSB position in the 32-bit word and the 4th captured data byte is placed in the MSB position in the 32-bit word. Table 60 gives an<br />

example of the positioning of captured data bytes in two 32-bit words.<br />

Table 60. Positioning of captured data bytes in 32-bit words (8-bit width)<br />

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

10-bit data<br />

When EDM[1:0] in DCMI_CR are programmed to “01”, the camera interface captures 10-bit<br />

data at its input D[0..9] and stores them as the 10 least significant bits of a 16-bit word. The<br />

remaining most significant bits in the DCMI_DR register (bits 11 to 15) are cleared to zero.<br />

So, in this case, a 32-bit data word is made up every two pixel clock cycles.<br />

The first captured data are placed in the LSB position in the 32-bit word and the 2 nd<br />

captured data are placed in the MSB position in the 32-bit word as shown in Table 61.<br />

12-bit data<br />

When EDM[1:0] in DCMI_CR are programmed to “10”, the camera interface captures the<br />

12-bit data at its input D[0..11] and stores them as the 12 least significant bits of a 16-bit<br />

word. The remaining most significant bits are cleared to zero. So, in this case a 32-bit data<br />

word is made up every two pixel clock cycles.<br />

The first captured data are placed in the LSB position in the 32-bit word and the 2 nd<br />

captured data are placed in the MSB position in the 32-bit word as shown in Table 62.<br />

14-bit data<br />

0 D n+3[7:0] D n+2[7:0] D n+1[7:0] D n[7:0]<br />

4 D n+7 [7:0] D n+6 [7:0] D n+5 [7:0] D n+4 [7:0]<br />

Table 61. Positioning of captured data bytes in 32-bit words (10-bit width)<br />

Byte address 31:26 25:16 15:10 9:0<br />

0 0 D n+1 [9:0] 0 D n [9:0]<br />

4 0 D n+3[9:0] 0 D n+2[9:0]<br />

Table 62. Positioning of captured data bytes in 32-bit words (12-bit width)<br />

Byte address 31:28 27:16 15:12 11:0<br />

0 0 D n+1[11:0] 0 D n[11:0]<br />

4 0 D n+3 [11:0] 0 D n+2 [11:0]<br />

When EDM[1:0] in DCMI_CR are programmed to “11”, the camera interface captures the<br />

14-bit data at its input D[0..13] and stores them as the 14 least significant bits of a 16-bit<br />

329/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!