The MSE-Embedded platform contains a camera as indicated in the below figure.

The MSE-Embedded board contains a 2 megapixels CMOS camera. The datasheets can be found here and here.

The control pins of this camera which are connected to the FPGA are listed in the table below. An example tcl-file that can be used with Quartus can be found here.

<html> <table align=“center” style=“float:center” border=1> <tr> <th>Function:</th><th>short:</th><th>FPGA-pin:</th> </tr> <tr> <td>Serial Interface Clock</td><td>SCL</td><td>PIN_T4</td> </tr> <tr> <td>Serial Interface Data</td><td>SDATA</td><td>PIN_P4</td> </tr> <tr> <td>Master Clock into Sensor</td><td>MCLK</td><td>PIN_V1</td> </tr> <tr> <td>Power Down</td><td>PWRDWN</td><td>PIN_AA1</td> </tr> <tr> <td>Reset</td><td>RSTB</td><td>PIN_P2</td> </tr> <tr> <td>Pixel Data Output 0 (10bit mode)</td><td>DOUT0</td><td>PIN_Y2</td> </tr> <tr> <td>Pixel Data Output 1 (10bit mode)</td><td>DOUT1</td><td>PIN_Y1</td> </tr> <tr> <td>Pixel Data Output 2</td><td>DOUT2</td><td>PIN_P3</td> </tr> <tr> <td>Pixel Data Output 3</td><td>DOUT3</td><td>PIN_V3</td> </tr> <tr> <td>Pixel Data Output 4</td><td>DOUT4</td><td>PIN_M4</td> </tr> <tr> <td>Pixel Data Output 5</td><td>DOUT5</td><td>PIN_V4</td> </tr> <tr> <td>Pixel Data Output 6</td><td>DOUT6</td><td>PIN_R1</td> </tr> <tr> <td>Pixel Data Output 7</td><td>DOUT7</td><td>PIN_U1</td> </tr> <tr> <td>Pixel Data Output 8</td><td>DOUT8</td><td>PIN_R2</td> </tr> <tr> <td>Pixel Data Output 9</td><td>DOUT9</td><td>PIN_U2</td> </tr> <tr> <td>Pixel Clock Output from Sensor</td><td>PCLK</td><td>PIN_T2</td> </tr> <tr> <td>Active High: Frame Valid; indicates active frame</td><td>VSYNC</td><td>PIN_W2</td> </tr> <tr> <td>Active High: Line/Data Valid; indicates active pixels</td><td>HSYNC</td><td>PIN_W1</td> </tr> </table> </html>

The initialization code that can be used with the Nios can be found in the following files: camera.c, camera.h, mt9d112.h, i2c.c, and i2c.h.

  • /opt/bitnami/dokuwiki/data/pages/mse-em-board/camera.txt
  • Last modified: 2020/11/04 09:17
  • by mht1