Difference between revisions of "MV Series MIPI Camera Register Map"

From wiki_veye
Jump to navigation Jump to search
Line 314: Line 314:
 
|RW
 
|RW
 
|A
 
|A
|
+
|gammaenable,
 +
 
 +
dpcenable,
 +
 
 +
lutenable,
 
|-
 
|-
 
|0x0C04
 
|0x0C04
Line 322: Line 326:
 
|RW
 
|RW
 
|A
 
|A
|
+
|expmode
 
|-
 
|-
 
|0x0C08
 
|0x0C08
Line 330: Line 334:
 
|RW
 
|RW
 
|A
 
|A
|
+
|aatarget
|-
 
|0x0C0C
 
|Exposure  Time Source
 
|
 
|enum
 
|RW
 
|A
 
|
 
 
|-
 
|-
 
|0x0C10
 
|0x0C10
Line 346: Line 342:
 
|RW
 
|RW
 
|A
 
|A
|
+
|metime
 
|-
 
|-
 
|0x0C14
 
|0x0C14
Line 354: Line 350:
 
|RW
 
|RW
 
|A
 
|A
|
+
|aemaxtime
 
|-
 
|-
 
|0x0C18
 
|0x0C18
Line 361: Line 357:
 
|uint
 
|uint
 
|RO
 
|RO
| -
+
| -
|
+
|exptime
 
|-
 
|-
 
|0x0C1C
 
|0x0C1C
Line 370: Line 366:
 
|RW
 
|RW
 
|A
 
|A
|
+
|gainmode
 
|-
 
|-
 
|0x0C20
 
|0x0C20
Line 378: Line 374:
 
|RW
 
|RW
 
|A
 
|A
|
+
|mgain
 
|-
 
|-
 
|0x0C24
 
|0x0C24
Line 386: Line 382:
 
|RW
 
|RW
 
|A
 
|A
|
+
|agmaxgain
 
|-
 
|-
 
|0x0C28
 
|0x0C28
Line 393: Line 389:
 
|uint
 
|uint
 
|RO
 
|RO
| -
+
| -
|
+
|curgain
 
|-
 
|-
 
|0x0C2C
 
|0x0C2C
Line 402: Line 398:
 
|RW
 
|RW
 
|A
 
|A
|
+
|aaroi
 
|-
 
|-
 
|0x0C30
 
|0x0C30
Line 410: Line 406:
 
|RW
 
|RW
 
|A
 
|A
|
+
|aaroi
 
|-
 
|-
 
|0x0C34
 
|0x0C34
Line 418: Line 414:
 
|RW
 
|RW
 
|A
 
|A
|
+
|aaroi
 
|-
 
|-
 
|0x0C38
 
|0x0C38
Line 426: Line 422:
 
|RW
 
|RW
 
|A
 
|A
|
+
|aaroi
|-
 
|0x0C3C
 
|WB Mode
 
|
 
|enum
 
|RW
 
|A
 
|
 
 
|-
 
|-
 
|0x0C60
 
|0x0C60
Line 450: Line 438:
 
|RO
 
|RO
 
| -
 
| -
|
+
|lut
 
|-
 
|-
 
|0x0C78
 
|0x0C78
Line 458: Line 446:
 
|WO
 
|WO
 
|A
 
|A
|
+
|lut
 
|-
 
|-
 
|0x0C7C
 
|0x0C7C
Line 466: Line 454:
 
|WO
 
|WO
 
|A
 
|A
|
+
|lut
 
|-
 
|-
 
|0x0C80
 
|0x0C80
Line 474: Line 462:
 
|RW
 
|RW
 
|A
 
|A
|
+
|aaroienable
 
|}
 
|}
 
=== IO Control ===
 
=== IO Control ===
Line 492: Line 480:
 
|RW
 
|RW
 
|S
 
|S
|
+
|trgdelay
 
|-
 
|-
 
|0x1004
 
|0x1004
Line 500: Line 488:
 
|RW
 
|RW
 
|S
 
|S
|
+
|trgedge
 
|-
 
|-
 
|0x1008
 
|0x1008
Line 508: Line 496:
 
|RW
 
|RW
 
|S
 
|S
|
+
|trgfilter_enable
 
|-
 
|-
 
|0x100c
 
|0x100c
Line 516: Line 504:
 
|RW
 
|RW
 
|S
 
|S
|
+
|trgfilter_time
 
|-
 
|-
 
|0x1010
 
|0x1010
Line 524: Line 512:
 
|RW
 
|RW
 
|S
 
|S
|
+
|trgexp_delay
 
|-
 
|-
 
|0x1014
 
|0x1014
Line 532: Line 520:
 
|RO
 
|RO
 
| -
 
| -
|
+
|gpios_status
 
|-
 
|-
 
|0x1020
 
|0x1020
Line 540: Line 528:
 
|RW
 
|RW
 
|A
 
|A
|
+
|outio1_mode
 
|-
 
|-
 
|0x1024
 
|0x1024
Line 548: Line 536:
 
|RW
 
|RW
 
|A
 
|A
|
+
|outio1_usr
 
|-
 
|-
 
|0x1028
 
|0x1028
Line 556: Line 544:
 
|RW
 
|RW
 
|A
 
|A
|
+
|outio1_rvs
 
|-
 
|-
 
|0x102C
 
|0x102C
Line 564: Line 552:
 
|RO
 
|RO
 
| -
 
| -
|
+
|gpios_status
 
|-
 
|-
 
|0x1030
 
|0x1030
Line 572: Line 560:
 
|RW
 
|RW
 
|A
 
|A
|
+
|outio2_mode
 
|-
 
|-
 
|0x1034
 
|0x1034
Line 580: Line 568:
 
|RW
 
|RW
 
|A
 
|A
|
+
|outio2_usr
 
|-
 
|-
 
|0x1038
 
|0x1038
Line 588: Line 576:
 
|RW
 
|RW
 
|A
 
|A
|
+
|outio2_rvs
 
|-
 
|-
 
|0x103C
 
|0x103C
Line 596: Line 584:
 
|RO
 
|RO
 
| -
 
| -
|
+
|gpios_status
 
|}
 
|}
  
 
=== Special Block Area ===
 
=== Special Block Area ===
 +
0x1800-0x37FF : lut area.

Revision as of 18:05, 6 March 2022


查看中文

1 Overview

1.1 Register Features

The register address length is 4 bytes and the data length is 2 bytes.

Register R/W attributes: RW, RO, WO. Only the RW type can be saved to the camera flash.

Register values have several types: uint(unsigned int), bool, enum, ascii.

1.2 I2c communication protocol

The module supports parameter configuration via i2c protocol. The default i2c slave address of the camera is 0x3b which can be modified.
I2c data input order is MSB-first transfer.

We provide open source shell scripts under Linux to help read and write each register.

The script function column in the following table indicates the function name in the shell script corresponding to this register.

1.3 Update timing

The camera has two states, standby and running, after the start of image acquisition into the running state.

In the following table, Update timing is divided into "A" and "S".

A: Read and write at any time.

S: Read only at Running state.

2 Basic Parameters

Address Name Description Data Type R/W Update timing script function
0x0000 Manufacturer Name ascii RO - manufacturer
0x0004 Model Name enum RO - model
0x0008 Sensor Name enum RO -
0x000C Serial Number uint RO -
0x0010 Device Version uint RO - version
0x0014 Factory Param bool WO A factoryparam
0x0018 Param save to flash bool WO A paramsave
0x001C System reboot bool WO A reboot
0x0020 Time stamp uint RO - timestamp
0x0024 Error Code uint RO - errcode

3 Image Acquisition

Address Name Description Data Type R/W Update timing script function
0x0400 Image Acquisition bool WO A imgacq
0x0404 Trigger Mode enum RW S trgmode
0x0408 Trigger Source enum RW S trgsrc
0x040C Trigger Number uint RW S trgnum
0x0410 Trigger Interval uint RW S trginterval
0x0414 Trigger Software bool WO A trgone
0x0418 Trigger Count uint RW A trgcount
0x041C I2C ADDR uint RW A i2caddr

4 Image Features

Address Name Description Data Type R/W Update timing script function
0x0800 Test Image Selector uint RW A testimg
0x0804 Pixel Format enum RW A pixelformat
0x0808 Sensor Width uint RO - maxwh
0x080C Sensor Height uint RO - maxwh
0x0810 MaxFrame Rate uint RO - maxfps
0x0814 Framerate uint RW S fps
0x0818 ROI Width uint RW S roi
0x081C ROI Height uint RW S roi
0x0820 ROI Offset X uint RW S roi
0x0824 ROI Offset Y uint RW S roi
0x0828 Image Direction enum RW A imgdir
0x0830 Black Level uint RW A blacklevel

5 ISP

Address Name Description Data Type R/W Update timing script function
0x0C00 ISP module ctrl uint RW A gammaenable,

dpcenable,

lutenable,

0x0C04 Exposure Mode enum RW A expmode
0x0C08 Target Brightness uint RW A aatarget
0x0C10 ME Time uint RW A metime
0x0C14 AE MAX Time uint RW A aemaxtime
0x0C18 Exp Time uint RO - exptime
0x0C1C Gain Mode enum RW A gainmode
0x0C20 Manual Gain uint RW A mgain
0x0C24 AG Max Gain uint RW A agmaxgain
0x0C28 Cur Gain uint RO - curgain
0x0C2C AAROIOffsetX uint RW A aaroi
0x0C30 AAROIOffsetY uint RW A aaroi
0x0C34 AAROIWidth uint RW A aaroi
0x0C38 AAROIHeight uint RW A aaroi
0x0C60 Gamma uint RW A gamma
0x0C74 LUT Count uint RO - lut
0x0C78 LUT Start bool WO A lut
0x0C7C LUT Done bool WO A lut
0x0C80 AAROI enable bool RW A aaroienable

6 IO Control

Address Name Description Data Type R/W Update timing script function
0x1000 Trigger Delay uint RW S trgdelay
0x1004 Trigger Activation uint RW S trgedge
0x1008 Trigger Filter Enable uint RW S trgfilter_enable
0x100c Trigger Filter Width uint RW S trgfilter_time
0x1010 Exposure Delay uint RW S trgexp_delay
0x1014 TriggerIN IO status enum RO - gpios_status
0x1020 GPIO1_OutSelect uint RW A outio1_mode
0x1024 GPIO1 UserOut enum RW A outio1_usr
0x1028 GPIO1 Reverse bool RW A outio1_rvs
0x102C GPIO1 OutStatus enum RO - gpios_status
0x1030 GPIO2_OutSelect uint RW A outio2_mode
0x1034 GPIO2 UserOut enum RW A outio2_usr
0x1038 GPIO2 Reverse bool RW A outio2_rvs
0x103C GPIO2 OutStatus enum RO - gpios_status

7 Special Block Area

0x1800-0x37FF : lut area.