====== Camera ====== The MSE-Embedded platform contains a camera as indicated in the below figure. {{ :mse-em-board:mse-em-board_camera.jpg?direct&400 |}} The MSE-Embedded board contains a 2 megapixels CMOS camera. The datasheets can be found {{:mse-em-board:mt9d112_soc2020._rev.b_.pdf|here}} and {{:mse-em-board:plcc24.jpg?linkonly| 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 {{:mse-em-board:pins_camera.tcl |here}}.
Function:short:FPGA-pin:
Serial Interface ClockSCLPIN_T4
Serial Interface DataSDATAPIN_P4
Master Clock into SensorMCLKPIN_V1
Power DownPWRDWNPIN_AA1
ResetRSTBPIN_P2
Pixel Data Output 0 (10bit mode)DOUT0PIN_Y2
Pixel Data Output 1 (10bit mode)DOUT1PIN_Y1
Pixel Data Output 2DOUT2PIN_P3
Pixel Data Output 3DOUT3PIN_V3
Pixel Data Output 4DOUT4PIN_M4
Pixel Data Output 5DOUT5PIN_V4
Pixel Data Output 6DOUT6PIN_R1
Pixel Data Output 7DOUT7PIN_U1
Pixel Data Output 8DOUT8PIN_R2
Pixel Data Output 9DOUT9PIN_U2
Pixel Clock Output from SensorPCLKPIN_T2
Active High: Frame Valid; indicates active frameVSYNCPIN_W2
Active High: Line/Data Valid; indicates active pixelsHSYNCPIN_W1
The initialization code that can be used with the Nios can be found in the following files: {{:mse-em-board:camera.c|camera.c}}, {{:mse-em-board:camera.h|camera.h}}, {{:mse-em-board:mt9d112.h |mt9d112.h}}, {{:mse-em-board:i2c.c|i2c.c}}, and {{:mse-em-board:i2c.c|i2c.h}}.