;**************************************************************************************/ ; ----- camera parameter ----- ; [camera parameter] Camera parameter set for USB2.0 & USB3.0 mode ; ; -- Keyname description: ; CFG_MODE = set the config mode for camera: 0 -> User define(UI) ; 1 -> This config File ; TYPE = set the name of the camera module ; SIZE = set the width and height of the image generated by camera ; BIT_WIDTH = set the bit width of the image generated by camera ; FORMAT = set the format of the image generated by camera: ; | 0 -> RAW | 1 -> RGB565 | 2 -> YUV422 | 3 -> JPG | 4 -> MONO | 5 -> ST_RAW | 6 -> ST_MONO | ; | -- 0 -> RG | -- 0 -> RGB | -- 0 -> YUYV | | | -- 0 -> RG | | ; | -- 1 -> GR | -- 1 -> BGR | -- 1 -> YVYU | | | -- 1 -> GR | | ; | -- 2 -> GB | | -- 2 -> UYVY | | | -- 2 -> GB | | ; | -- 3 -> BG | | -- 3 -> VYUY | | | -- 3 -> BG | | ; I2C_MODE = set the bit width of the address and data of I2C communication: ; 0 -> 8 bit address & 8 bit value ; 1 -> 8 bit address & 16 bit value ; 2 -> 16 bit address & 8 bit value ; 3 -> 16 bit address & 16 bit value ; I2C_ADDR = set the I2C address for register config of camera ; G_GAIN = set the address for green1_gain register config of camera ( RAW & RGB565 & ST_RAW mode ) ; B_GAIN = set the address for blue_gain register config of camera ( RAW & RGB565 & ST_RAW mode ) ; R_GAIN = set the address for red_gain register config of camera ( RAW & RGB565 & ST_RAW mode ) ; G2_GAIN = set the address for green2_gain register config of camera ( RAW & ST_RAW mode ) ; Y_GAIN = set the address for Y_gain register config of camera ( YUV422 mode ) ; U_GAIN = set the address for U_gain register config of camera ( YUV422 mode ) ; V_GAIN = set the address for V_gain register config of camera ( YUV422 mode ) ; GL_GAIN = set the address for global_gain register config of camera ; ; -- Keyname format: ; CFG_MODE = ; ; TYPE = ; SIZE = , ; BIT_WIDTH = ; FORMAT = [, ] ; I2C_MODE = ; I2C_ADDR = ; G_GAIN = [,]
, , ; B_GAIN = [,]
, , ; R_GAIN = [,]
, , ; G2_GAIN = [,]
, , ; Y_GAIN = [,]
, , ; U_GAIN = [,]
, , ; V_GAIN = [,]
, , ; GL_GAIN = [,]
, , ; ; Index value representing certain meanings ; Width of the image generated by camera ; Height of the image generated by camera ; Bit width of the image generated by camera ; I2C address for register config of camera ; Optional address space for this register. Some sensors (mostly SOC's) ; have multiple register pages (see the sensor spec or developers guide) ;
The register address ; Minimale value of certain address ; Maximale value of certain address ; Some form of C-style comments are supported in this .cfg file ; ;**************************************************************************************/ [camera parameter] CFG_MODE = 1 TYPE = MT9P031 SIZE = 2592,1944 BIT_WIDTH = 8 FORMAT = 0, 1 I2C_MODE = 1 I2C_ADDR = 0x90 TRANS_LVL = 64 ;**************************************************************************************/ ; ----- board parameter ----- ;[board parameter] Board parameter set for USB2.0 & USB3.0 mode ;[board parameter][dev2] Board parameter set for USB2.0 mode ;[board parameter][dev3][inf2] Board parameter set for USB3.0 mode and USB2.0 interface ;[board parameter][dev3][inf3] Board parameter set for USB3.0 mode and USB3.0 interface ; ; -- Keyname description: ; VRCMD = set board parameter by vendor command ; ; -- Keyname format: ; VRCMD = , , , [, [, [, [, ]]]] // ; ; Value representing certain command ; value representing certain meanings ; Index representing certain meanings ; Number of ; Data representing certain meanings ; Some form of C-style comments are supported in this .cfg file ; ;**************************************************************************************/ [board parameter] [board parameter][dev2] VRCMD = 0xD7, 0x4600, 0x0100, 1, 0x0D VRCMD = 0xD7, 0x4600, 0x0A00, 1, 0x00 VRCMD = 0xF6, 0x0000, 0x0000, 3, 0x03, 0x04, 0x0C [board parameter][dev3][inf2] VRCMD = 0xF3, 0x0000, 0x0000, 0 VRCMD = 0xF9, 0x0000, 0x0000, 0 VRCMD = 0xF4, 0x0007, 0x0000, 0 [board parameter][dev3][inf3] VRCMD = 0xF3, 0x0000, 0x0000, 0 VRCMD = 0xF9, 0x0000, 0x0000, 0 VRCMD = 0xF4, 0x0007, 0x0000, 0 ;VRCMD = 0xF9, 0x0002, 0x0000, 0 ;**************************************************************************************/ ; ----- register parameter ----- ;[register parameter] Register parameter set for USB2.0 & USB3.0 mode ;[register parameter][dev2] Register parameter set for USB2.0 mode ;[register parameter][dev3][inf2] Register parameter set for USB3.0 mode and USB2.0 interface ;[register parameter][dev3][inf3] Register parameter set for USB3.0 mode and USB3.0 interface ; ; -- Keyname description: ; REG = assign a new register value ; DELAY = delay a certain amount of milliseconds before continuing ; ; -- Keyname format: ; REG = [,]
, // ; DELAY = ; ; Optional address space for this register. Some sensors (mostly SOC's) ; have multiple register pages (see the sensor spec or developers guide) ;
the register address ; the new value to assign to the register ; wait for this ammount of milliseconds before continuing ; Some form of C-style comments are supported in this .cfg file ; ;**************************************************************************************/ [register parameter] REG = 0x0d, 0x0001 REG = 0x0d, 0x0000 DELAY=1 REG = 0x10, 0x0051 REG = 0x11, 0x1001 REG = 0x12, 0x0004 REG = 0x10, 0x0053 REG = 0x07, 0x1F82 //Control Mode = 8066 DELAY=200 REG = 0x2b, 0x0036 REG = 0x2c, 0x003F REG = 0x2d, 0x003F REG = 0x2e, 0x0036 REG = 0x01, 0x0036 REG = 0x02, 0x0010 REG = 0x03, 0x0797 REG = 0x04, 0x0a1f REG = 0x05, 0x0121 REG = 0x06, 0x0076 REG = 0x07, 0x1582 REG = 0x22, 0x0000 REG = 0x23, 0x0000 REG = 0x08, 0x0000 REG = 0x09, 0x0833 REG = 0x0c, 0x0000 REG = 0x70, 0x0079 REG = 0x71, 0x7800 REG = 0x72, 0x7800 REG = 0x73, 0x0300 REG = 0x74, 0x0300 REG = 0x75, 0x3c00 REG = 0x76, 0x4e3d REG = 0x77, 0x4e3d REG = 0x78, 0x774f REG = 0x79, 0x7900 REG = 0x7a, 0x7904 REG = 0x7b, 0x7800 REG = 0x7c, 0x7800 REG = 0x7e, 0x7800 REG = 0x7f, 0x7800 REG = 0x06, 0x0000 REG = 0x29, 0x0481 REG = 0x3e, 0x0087 REG = 0x3f, 0x0007 REG = 0x41, 0x0003 REG = 0x48, 0x0018 REG = 0x5f, 0x1c16 REG = 0x57, 0x0007 REG = 0x09, 0x00e5 REG = 0x09, 0x2E5 REG = 0x20, 0x8040 [register parameter][dev3][inf2] REG = 0x11, 0x1001 // PLL_MULTIPLIER [register parameter][dev3][inf3] REG = 0x11, 0x2801 // PLL_MULTIPLIER