Guest User

Untitled

a guest
Mar 27th, 2020
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.95 KB | None | 0 0
  1. ;**************************************************************************************/
  2. ; ----- camera parameter -----
  3. ; [camera parameter] Camera parameter set for USB2.0 & USB3.0 mode
  4. ;
  5. ; -- Keyname description:
  6. ; CFG_MODE = set the config mode for camera: 0 -> User define(UI)
  7. ; 1 -> This config File
  8. ; TYPE = set the name of the camera module
  9. ; SIZE = set the width and height of the image generated by camera
  10. ; BIT_WIDTH = set the bit width of the image generated by camera
  11. ; FORMAT = set the format of the image generated by camera:
  12. ; | 0 -> RAW | 1 -> RGB565 | 2 -> YUV422 | 3 -> JPG | 4 -> MONO | 5 -> ST_RAW | 6 -> ST_MONO |
  13. ; | -- 0 -> RG | -- 0 -> RGB | -- 0 -> YUYV | | | -- 0 -> RG | |
  14. ; | -- 1 -> GR | -- 1 -> BGR | -- 1 -> YVYU | | | -- 1 -> GR | |
  15. ; | -- 2 -> GB | | -- 2 -> UYVY | | | -- 2 -> GB | |
  16. ; | -- 3 -> BG | | -- 3 -> VYUY | | | -- 3 -> BG | |
  17. ; I2C_MODE = set the bit width of the address and data of I2C communication:
  18. ; 0 -> 8 bit address & 8 bit value
  19. ; 1 -> 8 bit address & 16 bit value
  20. ; 2 -> 16 bit address & 8 bit value
  21. ; 3 -> 16 bit address & 16 bit value
  22. ; I2C_ADDR = set the I2C address for register config of camera
  23. ; G_GAIN = set the address for green1_gain register config of camera ( RAW & RGB565 & ST_RAW mode )
  24. ; B_GAIN = set the address for blue_gain register config of camera ( RAW & RGB565 & ST_RAW mode )
  25. ; R_GAIN = set the address for red_gain register config of camera ( RAW & RGB565 & ST_RAW mode )
  26. ; G2_GAIN = set the address for green2_gain register config of camera ( RAW & ST_RAW mode )
  27. ; Y_GAIN = set the address for Y_gain register config of camera ( YUV422 mode )
  28. ; U_GAIN = set the address for U_gain register config of camera ( YUV422 mode )
  29. ; V_GAIN = set the address for V_gain register config of camera ( YUV422 mode )
  30. ; GL_GAIN = set the address for global_gain register config of camera
  31. ;
  32. ; -- Keyname format:
  33. ; CFG_MODE = <value1> ;<comment>
  34. ; TYPE = <value1>
  35. ; SIZE = <width>, <height>
  36. ; BIT_WIDTH = <bitWidth>
  37. ; FORMAT = <value1>[, <value2>]
  38. ; I2C_MODE = <value1>
  39. ; I2C_ADDR = <i2cAddress>
  40. ; G_GAIN = [<page>,] <address>, <minValue>, <maxValue>
  41. ; B_GAIN = [<page>,] <address>, <minValue>, <maxValue>
  42. ; R_GAIN = [<page>,] <address>, <minValue>, <maxValue>
  43. ; G2_GAIN = [<page>,] <address>, <minValue>, <maxValue>
  44. ; Y_GAIN = [<page>,] <address>, <minValue>, <maxValue>
  45. ; U_GAIN = [<page>,] <address>, <minValue>, <maxValue>
  46. ; V_GAIN = [<page>,] <address>, <minValue>, <maxValue>
  47. ; GL_GAIN = [<page>,] <address>, <minValue>, <maxValue>
  48. ;
  49. ; <valueN> Index value representing certain meanings
  50. ; <width> Width of the image generated by camera
  51. ; <height> Height of the image generated by camera
  52. ; <bitWidth> Bit width of the image generated by camera
  53. ; <i2cAddress> I2C address for register config of camera
  54. ; <page> Optional address space for this register. Some sensors (mostly SOC's)
  55. ; have multiple register pages (see the sensor spec or developers guide)
  56. ; <address> The register address
  57. ; <minValue> Minimale value of certain address
  58. ; <maxValue> Maximale value of certain address
  59. ; <comment> Some form of C-style comments are supported in this .cfg file
  60. ;
  61. ;**************************************************************************************/
  62. [camera parameter]
  63. CFG_MODE = 1
  64. TYPE = MT9F001
  65. SIZE = 1096, 822
  66. BIT_WIDTH = 12
  67. FORMAT = 0, 0
  68. I2C_MODE = 3
  69. I2C_ADDR = 0x20
  70. ;TRANS_LVL = 64
  71.  
  72. ;**************************************************************************************/
  73. ; ----- board parameter -----
  74. ;
  75. ; -- Keyname description:
  76. ; VRCMD = set board parameter by vendor command
  77. ;
  78. ; -- Keyname format:
  79. ; VRCMD = <command>, <value>, <index>, <dataNumber>[, <data1>[, <data2>[, <data3>[, <data4>]]]] ;<comment>
  80. ;
  81. ; <command>
  82. ; <value>
  83. ; <index>
  84. ; <dataNumber>
  85. ; <dataN>
  86. ; <comment> Some form of C-style comments are supported in this .cfg file
  87. ;
  88. ;**************************************************************************************/
  89. [board parameter]
  90.  
  91.  
  92. [board parameter][dev2]
  93. VRCMD = 0xD7, 0x4600, 0x0100, 1, 0x85
  94. VRCMD = 0xD7, 0x4600, 0x0200, 1, 0x00
  95. VRCMD = 0xD7, 0x4600, 0x0300, 1, 0xC0
  96. VRCMD = 0xD7, 0x4600, 0x0300, 1, 0x40
  97. VRCMD = 0xD7, 0x4600, 0x0400, 1, 0x00
  98. VRCMD = 0xD7, 0x4600, 0x0A00, 1, 0x00
  99. VRCMD = 0xF6, 0x0000, 0x0000, 3, 0x03, 0x04, 0x09
  100.  
  101. [board parameter][dev3][inf2]
  102. VRCMD = 0xF3, 0x0000, 0x0000, 0
  103. ;VRCMD = 0xF9, 0x0000, 0x0000, 0 //8 bit
  104. VRCMD = 0xF9, 0x0001, 0x0000, 0 //12 bit
  105.  
  106. [board parameter][dev3][inf3]
  107. VRCMD = 0xF3, 0x0000, 0x0000, 0
  108. ;VRCMD = 0xF9, 0x0000, 0x0000, 0 //8 bit
  109. VRCMD = 0xF9, 0x0001, 0x0000, 0 //12 bit
  110.  
  111. ;**************************************************************************************/
  112. ; ----- register parameter -----
  113. ;
  114. ; -- Keyname description:
  115. ; REG = assign a new register value
  116. ; DELAY = delay a certain amount of milliseconds before continuing
  117. ; BITSET = do a set operation to part of a register. The part is defined as a mask.
  118. ; BITCLR = do a reset operation to part of a register. The part is defined as a mask.
  119. ;
  120. ; -- Keyname format:
  121. ; REG = [<page>,] <address>, <value> ;<comment>
  122. ; DELAY = <milliseconds>
  123. ; BITSET = [<page>,] <address>, <mask>
  124. ; BITCLR = [<page>,] <address>, <mask>
  125. ;
  126. ; <page> Optional address space for this register. Some sensors (mostly SOC's)
  127. ; have multiple register pages (see the sensor spec or developers guide)
  128. ; <address> the register address
  129. ; <value> the new value to assign to the register
  130. ; <mask> is the part of a register value that needs to be updated with a new value
  131. ; <milliseconds> wait for this ammount of milliseconds before continuing
  132. ; <comment> Some form of C-style comments are supported in this .cfg file
  133. ;
  134. ;**************************************************************************************/
  135. [register parameter]
  136. //[=========== Macros Called During Demo Initialization ==============]
  137. //[Default Register Changes Revision 1]
  138. REG= 0x3154, 0x2C00 //Reserved
  139. REG= 0x3156, 0x4A80 //Reserved
  140. REG= 0x30D4, 0xB400 //Reserved
  141. REG= 0x30B2, 0x8000 //Reserved
  142. REG= 0x30BC, 0x0F00 //Reserved
  143. REG= 0x30C0, 0x0121 //Reserved
  144. REG= 0x3ED2, 0xAF60 //Reserved
  145. REG= 0x3ED4, 0xAA84 //Reserved
  146. REG= 0x3ED8, 0x20A0 //Reserved
  147. REG= 0x3EE0, 0xE3A3 //Reserved
  148. REG= 0x3EE4, 0x630D //Reserved
  149. REG= 0x3EE6, 0x87E6 //Reserved
  150. REG= 0x3EE8, 0x0046 //Reserved
  151. REG= 0x3EEC, 0x1023 //Reserved
  152. REG= 0x3EEE, 0x5550 //Reserved
  153. REG= 0x3EF0, 0x1010 //Reserved
  154. REG= 0x3EF2, 0xA660 //Reserved
  155. REG= 0x3EF4, 0x96A4 //Reserved
  156. REG= 0x3EF6, 0x9899 //Reserved
  157.  
  158. //[Default Register Changes Revision 2 and above]
  159. REG= 0x3154, 0x2C00 //Reserved
  160. REG= 0x3156, 0x4A80 //Reserved
  161. REG= 0x30D4, 0xB400 //Reserved
  162. REG= 0x3ED2, 0xAF60 //Reserved
  163. REG= 0x3ED4, 0xAA84 //Reserved
  164. REG= 0x3EE4, 0x630D //Reserved
  165. REG= 0x3EE8, 0x0046 //Reserved
  166.  
  167.  
  168. //[HIDDEN: Recommended Sequencer Update - SVN 8627 - Parallel]
  169. // @00 Jump Table
  170. REG=0x3D00, 0x0439
  171. REG=0x3D02, 0x47FF
  172. REG=0x3D04, 0x618D
  173. REG=0x3D06, 0xFFFF
  174. // @04 Read
  175. REG=0x3D08, 0x8173
  176. REG=0x3D0A, 0x770A
  177. REG=0x3D0C, 0x0110
  178. REG=0x3D0E, 0x1B2C
  179. REG=0x3D10, 0x4330
  180. REG=0x3D12, 0x5881
  181. REG=0x3D14, 0x5C64
  182. REG=0x3D16, 0x8C61
  183. REG=0x3D18, 0x8D60
  184. REG=0x3D1A, 0x813A
  185. REG=0x3D1C, 0x0081
  186. REG=0x3D1E, 0x6780
  187. REG=0x3D20, 0x5F9A
  188. REG=0x3D22, 0x5A82
  189. REG=0x3D24, 0x5996
  190. REG=0x3D26, 0x4982
  191. REG=0x3D28, 0x0140
  192. REG=0x3D2A, 0xFF91
  193. REG=0x3D2C, 0x4C99
  194. REG=0x3D2E, 0x1A00
  195. REG=0x3D30, 0x4880
  196. REG=0x3D32, 0x4680
  197. REG=0x3D34, 0x0A02
  198. REG=0x3D36, 0x4086
  199. REG=0x3D38, 0x4782
  200. REG=0x3D3A, 0x4AEE
  201. REG=0x3D3C, 0x4D92
  202. REG=0x3D3E, 0x4A80
  203. REG=0x3D40, 0x4740
  204. REG=0x3D42, 0x0802
  205. REG=0x3D44, 0x8242
  206. REG=0x3D46, 0x8345
  207. REG=0x3D48, 0xA342
  208. REG=0x3D4A, 0x9545
  209. REG=0x3D4C, 0x834F
  210. REG=0x3D4E, 0x821A
  211. REG=0x3D50, 0x009B
  212. REG=0x3D52, 0x46FF
  213. REG=0x3D54, 0x9249
  214. REG=0x3D56, 0x8046
  215. REG=0x3D58, 0x8041
  216. REG=0x3D5A, 0x8040
  217. REG=0x3D5C, 0x8E47
  218. REG=0x3D5E, 0xFF97
  219. REG=0x3D60, 0x4B80
  220. REG=0x3D62, 0x4780
  221. REG=0x3D64, 0x4180
  222. REG=0x3D66, 0x5086
  223. REG=0x3D68, 0x2FD5
  224. REG=0x3D6A, 0x3A51
  225. REG=0x3D6C, 0x7377
  226. REG=0x3D6E, 0x847C
  227. REG=0x3D70, 0x6F70
  228. REG=0x3D72, 0x8085
  229. REG=0x3D74, 0x6A82
  230. REG=0x3D76, 0x6742
  231. REG=0x3D78, 0x8244
  232. REG=0x3D7A, 0x831A
  233. REG=0x3D7C, 0x0099
  234. REG=0x3D7E, 0x44DF
  235. REG=0x3D80, 0x1A00
  236. REG=0x3D82, 0x8542
  237. REG=0x3D84, 0x8567
  238. REG=0x3D86, 0x826A
  239. REG=0x3D88, 0x857C
  240. REG=0x3D8A, 0x7380
  241. REG=0x3D8C, 0x7000
  242. REG=0x3D8E, 0xB831
  243. REG=0x3D90, 0x40BE
  244. REG=0x3D92, 0x6700
  245. REG=0x3D94, 0x0CBD
  246. REG=0x3D96, 0x4482
  247. REG=0x3D98, 0x7898
  248. REG=0x3D9A, 0x7480
  249. REG=0x3D9C, 0x5680
  250. REG=0x3D9E, 0x9755
  251. REG=0x3DA0, 0x8057
  252. REG=0x3DA2, 0x8056
  253. REG=0x3DA4, 0x9256
  254. REG=0x3DA6, 0x8057
  255. REG=0x3DA8, 0x8055
  256. REG=0x3DAA, 0x817C
  257. REG=0x3DAC, 0x9E9B
  258. REG=0x3DAE, 0x56A6
  259. REG=0x3DB0, 0x44BE
  260. REG=0x3DB2, 0x000C
  261. REG=0x3DB4, 0x867A
  262. REG=0x3DB6, 0x9474
  263. REG=0x3DB8, 0x8A79
  264. REG=0x3DBA, 0x9367
  265. REG=0x3DBC, 0xBF6A
  266. REG=0x3DBE, 0x816C
  267. REG=0x3DC0, 0x8570
  268. REG=0x3DC2, 0x802C
  269. REG=0x3DC4, 0x9168
  270. REG=0x3DC6, 0x7780
  271. REG=0x3DC8, 0x5923
  272. REG=0x3DCA, 0x4030
  273. REG=0x3DCC, 0x4973
  274. REG=0x3DCE, 0x0A01
  275. REG=0x3DD0, 0x101B
  276. REG=0x3DD2, 0x8D3A
  277. REG=0x3DD4, 0x0085
  278. REG=0x3DD6, 0x6781
  279. REG=0x3DD8, 0x5A59
  280. REG=0x3DDA, 0x8149
  281. REG=0x3DDC, 0x8448
  282. REG=0x3DDE, 0x8346
  283. REG=0x3DE0, 0xEC4C
  284. REG=0x3DE2, 0x8748
  285. REG=0x3DE4, 0x460A
  286. REG=0x3DE6, 0x0382
  287. REG=0x3DE8, 0x0480
  288. REG=0x3DEA, 0x851A
  289. REG=0x3DEC, 0x00BE
  290. REG=0x3DEE, 0x4D8B
  291. REG=0x3DF0, 0x4A47
  292. REG=0x3DF2, 0x0803
  293. REG=0x3DF4, 0x8200
  294. REG=0x3DF6, 0x2492
  295. REG=0x3DF8, 0x0024
  296. REG=0x3DFA, 0x4F87
  297. REG=0x3DFC, 0x1A00
  298. REG=0x3DFE, 0xA746
  299. REG=0x3E00, 0xCD49
  300. REG=0x3E02, 0x4600
  301. REG=0x3E04, 0x0380
  302. REG=0x3E06, 0x47E8
  303. REG=0x3E08, 0x4B47
  304. REG=0x3E0A, 0x4173
  305. REG=0x3E0C, 0x503A
  306. REG=0x3E0E, 0x4123
  307. REG=0x3E10, 0x447C
  308. REG=0x3E12, 0xC82C
  309. REG=0x3E14, 0x9168
  310. REG=0x3E16, 0x8077
  311. REG=0x3E18, 0x8070
  312. REG=0x3E1A, 0x8085
  313. REG=0x3E1C, 0x6A82
  314. REG=0x3E1E, 0x6742
  315. REG=0x3E20, 0x8244
  316. REG=0x3E22, 0x831A
  317. REG=0x3E24, 0x0099
  318. REG=0x3E26, 0x44DF
  319. REG=0x3E28, 0x1A00
  320. REG=0x3E2A, 0x8542
  321. REG=0x3E2C, 0x8567
  322. REG=0x3E2E, 0x826A
  323. REG=0x3E30, 0x857D
  324. REG=0x3E32, 0x1B80
  325. REG=0x3E34, 0x7000
  326. REG=0x3E36, 0x0000
  327. REG=0x3E38, 0x0000
  328. REG=0x3E3A, 0x0000
  329. REG=0x3E3C, 0x0000
  330. REG=0x3E3E, 0x0000
  331. REG=0x3E40, 0x0000
  332. REG=0x3E42, 0x0000
  333. REG=0x3E44, 0x0000
  334. REG=0x3E46, 0x0000
  335. REG=0x3E48, 0x0000
  336. REG=0x3E4A, 0x0000
  337. REG=0x3E4C, 0x0000
  338. REG=0x3E4E, 0x0000
  339. REG=0x3E50, 0x0000
  340. REG=0x3E52, 0x0000
  341. REG=0x3E54, 0x0000
  342. REG=0x3E56, 0x0000
  343. REG=0x3E58, 0x0000
  344. REG=0x3E5A, 0x0000
  345. REG=0x3E5C, 0x0000
  346. REG=0x3E5E, 0x0000
  347. REG=0x3E60, 0x0000
  348. REG=0x3E62, 0x0000
  349. REG=0x3E64, 0x0000
  350. REG=0x3E66, 0x0000
  351. REG=0x3E68, 0x0000
  352. REG=0x3E6A, 0x0000
  353. REG=0x3E6C, 0x0000
  354. REG=0x3E6E, 0x0000
  355. REG=0x3E70, 0x0000
  356. REG=0x3E72, 0x0000
  357. REG=0x3E74, 0x0000
  358. REG=0x3E76, 0x0000
  359. REG=0x3E78, 0x0000
  360. REG=0x3E7A, 0x0000
  361. REG=0x3E7C, 0x0000
  362. REG=0x3E7E, 0x0000
  363. REG=0x3E80, 0x0000
  364. REG=0x3E82, 0x0000
  365. REG=0x3E84, 0x0000
  366. REG=0x3E86, 0x0000
  367. REG=0x3E88, 0x0000
  368. REG=0x3E8A, 0x0000
  369. REG=0x3E8C, 0x0000
  370. REG=0x3E8E, 0x0000
  371. REG=0x3E90, 0x0000
  372. REG=0x3E92, 0x0000
  373. REG=0x3E94, 0x0000
  374. REG=0x3E96, 0x0000
  375. REG=0x3E98, 0x0000
  376. REG=0x3E9A, 0x0000
  377. REG=0x3E9C, 0x0000
  378. REG=0x3E9E, 0x0000
  379. REG=0x3EA0, 0x0000
  380. REG=0x3EA2, 0x0000
  381. REG=0x3EA4, 0x0000
  382. REG=0x3EA6, 0x0000
  383. REG=0x3EA8, 0x0000
  384. REG=0x3EAA, 0x0000
  385. REG=0x3EAC, 0x0000
  386. REG=0x3EAE, 0x0000
  387. REG=0x3EB0, 0x0000
  388. REG=0x3EB2, 0x0000
  389. REG=0x3EB4, 0x0000
  390. REG=0x3EB6, 0x0000
  391. REG=0x3EB8, 0x0000
  392. REG=0x3EBA, 0x0000
  393. REG=0x3EBC, 0x0000
  394. REG=0x3EBE, 0x0000
  395. REG=0x3EC0, 0x0000
  396. REG=0x3EC2, 0x0000
  397. REG=0x3EC4, 0x0000
  398. REG=0x3EC6, 0x0000
  399. REG=0x3EC8, 0x0000
  400. REG=0x3ECA, 0x0000
  401. ; -- MT9F002 Config --
  402. ;Turn sensor streaming OFF
  403. REG = 0x0103, 0x1 //Software Reset = 0x1
  404. DELAY = 300
  405. REG = 0x31AE, 0x301 //Serial Format = 0x301
  406. REG = 0x0112, 0x0C0C //CCP Data Format = 0xC0C
  407. REG = 0x301A, 0x0010 //Reset Register = 0x10
  408. REG = 0x3064, 0x0805 //SMIA Test = 0x805
  409. REG = 0x301E, 0x00A8 //Data Pedestal = 0xA8
  410. REG = 0x301A, 0x10DC //Reset Register = 0x10DC
  411. REG = 0x0104, 0x1 //Grouped Parameter Hold = 0x1
  412. REG = 0x0100, 0x0 //Mode Select = 0x0
  413. REG = 0x0300, 0x6 //vt_pix_clk_div = 0x6
  414. REG = 0x0302, 0x01 //vt_sys_clk_div = 0x1
  415. REG = 0x0304, 0x04 //pre_pll_clk_div = 0x4
  416. REG = 0x0306, 0x6E //pll_multiplier = 0x6E
  417. REG = 0x0308, 0x0C //op_pix_clk_div = 0xC
  418. REG = 0x030A, 0x01 //op_sys_clk_div = 0x1
  419. REG = 0x3016, 0x111 //Row Speed = 0x111
  420. REG = 0x0344, 0x090 //Column Start = 0x90
  421. REG = 0x0348, 0x11A9 //Column End = 0x11A9
  422. REG = 0x0346, 0x020 //Row Start = 0x20
  423. REG = 0x034A, 0xCF1 //Row End = 0xCF1
  424. REG = 0x3040, 0x05C7 //Read Mode = 0x5C7
  425. REG = 0x0400, 0x0 //Scaling Mode = 0x0
  426. REG = 0x0404, 0x10 //Scale_M = 0x10
  427. REG = 0x034C, 0x448 //Output Width = 0x448
  428. REG = 0x034E, 0x336 //Output Height = 0x336
  429. REG = 0x0342, 0x094B //Line Length = 0x94B
  430. REG = 0x0340, 0x0691 //Frame Lines = 0x691
  431. REG = 0x3010, 0x0360 //Fine Correction = 0x360
  432. REG = 0x3012, 0x002E //Coarse Integration Time = 0x2E
  433. REG = 0x3014, 0x0C44 //Fine Integration Time = 0xC44
  434. REG = 0x3018, 0x0000 //Extra Delay = 0x0
  435. ;BITFIELD = 0x30D4, 0x6000, 0x0000 //Column Correction, bits 0x6000 = 0
  436. ;BITFIELD = 0x3176, 0x4000, 0x0000 //Fast Timing, bits 0x4000 = 0
  437. ;BITFIELD = 0x3178, 0x4000, 0x0000 //ANALOG_CONTROL5, bits 0x4000 = 0
  438. ;BITFIELD = 0x317C, 0x4000, 0x0001 //Overlap Sampling, bits 0x4000 = 1
  439. ;BITFIELD = 0x3EE8, 0x1, 0x1 //DAC_LD_28_29, bits 0x1 = 1
  440. ;BITFIELD = 0x3EEA, 0x70, 0x07 //DAC_LD_30_31, bits 0x70 = 7
  441. ;BITFIELD = 0x301A, 0x2, 0x1 //Restart Frame, bits 0x2 = 1
  442. REG = 0x0104, 0x0 //Grouped Parameter Hold = 0x0
  443. REG = 0x0100, 0x1 //Mode Select = 0x1
  444.  
  445. REG = 0x3040, 0x83C7
  446.  
  447. REG = 0x0206, 33
  448. REG = 0x0208, 50
  449. REG = 0x020a, 50
  450. REG = 0x020c, 33
  451. ;REG = 0x0204, 128
  452.  
  453. REG = 0x3012, 0x500
  454.  
  455. REG = 0x0100, 0x102
  456.  
  457. REG = 0x0300, 0x3
  458.  
  459. [register parameter][dev3][inf2]
  460. REG = 0x0304, 8
  461.  
  462. [register parameter][dev3][inf3]
  463. REG = 0x0304, 3
Advertisement
Add Comment
Please, Sign In to add comment