Mikrotron MC132x User manual

MC132x
High Speed CMOS GigE Vision Camera
Mikrotron GmbH
Landshuter Str. 20-22
D-85716 Unterschleißheim
Germany
Tel.: +49 89 726342 00
Fax: +49 89 726342 99
www.mikrotron.de
MC132x Users Manual Rev. 0.22
Camera-Firmware: B2.02-V2.02-F0.71
Kamera ID Nr.: MC1324 .. MC1327
Copyright ©2006 Mikrotron GmbH

General MC132x Users Manual Rev. 0.22
2
Table of contents
1General..........................................................................................................................4
1.1 For customers in the U.S.A..................................................................................................................................... 4
1.2 For customers in Canada......................................................................................................................................... 4
1.3 Pour utilisateurs au Canada..................................................................................................................................... 4
1.4 Life Support Applications ....................................................................................................................................... 4
1.5 Declaration of conformity....................................................................................................................................... 5
1.6 Warranty Note......................................................................................................................................................... 6
1.7 Remarks, Warnings................................................................................................................................................. 6
2Introduction...................................................................................................................7
2.1 Top level specifications........................................................................................................................................... 7
2.2 Electronic „Freeze Frame“ Shutter.......................................................................................................................... 7
2.3 Differences between the camera types.................................................................................................................... 8
2.4 Using the camera..................................................................................................................................................... 8
3Hardware.......................................................................................................................9
3.1 GigE Vision® Interface........................................................................................................................................... 9
3.1.1 Serial interface.................................................................................................................................................... 9
3.2 Power supply........................................................................................................................................................... 9
3.3 Status LED.............................................................................................................................................................. 9
4Getting started.............................................................................................................10
4.1 First steps .............................................................................................................................................................. 10
5Initial setup .................................................................................................................11
5.1 Serial number and firmware revision.................................................................................................................... 11
5.2 PowerUpProfile..................................................................................................................................................... 11
5.3 Camera Profile ...................................................................................................................................................... 11
5.4 Factory profile....................................................................................................................................................... 11
5.5 User profiles.......................................................................................................................................................... 11
6Configuration..............................................................................................................12
6.1 Commands............................................................................................................................................................. 12
6.1.1 Table of commands .......................................................................................................................................... 13
6.2 Read camera information ...................................................................................................................................... 13
6.2.1 Read serial number and firmware revision....................................................................................................... 13
6.2.2 Read identifier.................................................................................................................................................. 14
6.2.3 Read camera settings........................................................................................................................................ 14
6.2.4 Reading camera temperature............................................................................................................................ 15
6.3 Profile processing.................................................................................................................................................. 15
6.3.1 Write user profile.............................................................................................................................................. 15
6.3.2 Load user profile .............................................................................................................................................. 15
6.3.3 Load factory profile.......................................................................................................................................... 16
6.4 Image quality......................................................................................................................................................... 16
6.4.1 FPN................................................................................................................................................................... 16
6.4.2 Gain.................................................................................................................................................................. 16
6.4.3 Black Level....................................................................................................................................................... 16
6.5 Image size and position......................................................................................................................................... 16
6.5.1 Address of the first line .................................................................................................................................... 17
6.5.2 Number of lines................................................................................................................................................ 17
6.5.3 Address of the first pixel of a line .................................................................................................................... 17
6.5.4 Address of the last pixel of a line..................................................................................................................... 17
6.5.5 Tracking ........................................................................................................................................................... 18
6.6 Clock selection...................................................................................................................................................... 18
6.6.1 Arbitrary selection of sensor and pixel clock................................................................................................... 18
6.6.2 Table selection of clock frequencies................................................................................................................. 18
6.6.3 Image Format/Speed change ............................................................................................................................ 19
6.7 Exposure control ................................................................................................................................................... 19
6.7.1 Type of exposure.............................................................................................................................................. 19
6.7.2 Frame rate with synchronous exposure ............................................................................................................ 20

General MC132x Users Manual Rev. 0.22
3
6.7.3 Synchronous operation without shutter ............................................................................................................ 21
6.7.4 Synchronous operation with shutter ................................................................................................................. 21
6.7.5 External synchronisation with synchronous exposure...................................................................................... 21
6.7.6 Frame rate with asynchronous exposure........................................................................................................... 22
6.7.7 Asynchronous exposure, shutter control by pulse width.................................................................................. 22
6.7.8 Asynchronous exposure, shutter control by timer............................................................................................ 22
6.8 Firmware............................................................................................................................................................... 22
6.8.1 Update firmware microcontroller application................................................................................................... 22
6.8.2 Update FPGA firmware.................................................................................................................................... 23
6.8.3 Firmware update procedure.............................................................................................................................. 23
6.8.4 Reset and configuration of the internal FPGA.................................................................................................. 24
6.9 Horizontal pixelbinning......................................................................................................................................... 24
6.10 Vertical pixelbinning............................................................................................................................................. 24
6.11 Digital shading correction..................................................................................................................................... 24
6.12 Digital gain............................................................................................................................................................ 25
6.13 External clock input .............................................................................................................................................. 25
6.14 Polarity of EXP-signal .......................................................................................................................................... 25
6.15 Test image............................................................................................................................................................. 25
6.16 Image counter........................................................................................................................................................ 25
6.17 ImageBLITZ®shutter release............................................................................................................................... 26
6.17.1 ImageBLITZ® processing........................................................................................................................... 26
6.17.2 ImageBLITZ® programming ...................................................................................................................... 26
6.17.3 ImageBLITZ® registers .............................................................................................................................. 29
6.17.4 ImageBLITZ® setup.................................................................................................................................... 29
7MC13xx configuration tool........................................................................................30
7.1 Basic Configuration............................................................................................................................................... 30
7.2 ImageBLITZ® Configuration............................................................................................................................... 31
8Mechanical dimensions ..............................................................................................32
8.1 Camera body MC132x.......................................................................................................................................... 32
8.1.1 Dimensioned drawing, side view of MC1324/25............................................................................................. 32
8.1.2 Dimensioned drawing, side view of MC1326/27............................................................................................. 32
8.1.3 Dimensioned drawing, front view of MC1324/25............................................................................................ 33
8.1.4 Dimensioned drawing, front view of MC1326/27............................................................................................ 33
8.1.5 Dimensioned drawing, rear view of MC132x .................................................................................................. 34
8.2 Lens adjustment .................................................................................................................................................... 34
8.2.1 Lens adaption ................................................................................................................................................... 34
8.2.2 Adjustable lens adapter, only for camera models with C-mount flange........................................................... 34
8.2.3 Lens selection for camera types with C-mount flange (see table overview of cameras).................................. 34
9Technical Data............................................................................................................35
9.1 Spectral response................................................................................................................................................... 36
9.2 Sensitive area of a pixel ........................................................................................................................................ 37
9.3 Connector pinning................................................................................................................................................. 38
9.3.1 Gigabit Ethernet Connector.............................................................................................................................. 38
9.3.2 Circular power connector, 12-pin..................................................................................................................... 38
9.4 Frequency selection............................................................................................................................................... 39
9.4.1 Table of clock frequency codes........................................................................................................................ 39
9.5 Programming sequence, factory profile f3............................................................................................................ 42
9.6 Timing................................................................................................................................................................... 43
9.6.1 Pixel clock........................................................................................................................................................ 43
9.6.2 Line Valid (LVAL, DVAL).............................................................................................................................. 43
9.6.3 Frame Valid (FVAL)........................................................................................................................................ 44
9.6.4 Exposure Signal EXP, to be input on TRIG..................................................................................................... 44
9.6.5 Synchronous exposure with external synchronisation via TRIG...................................................................... 45

General MC132x Users Manual Rev. 0.22
4
alfunc-
s us-
1 General
1.1 For customers in the U.S.A.
This equipment has been tested and found to comply with the limits for a Class A digital device, pursu-
ant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against
harmful interference when the equipment is operated in a commercial environment. This equipment
generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with
the instruction manual, may cause harmful interference to radio communications. Operation of this
equipment in a residential area is likely to cause harmful interference in which case the user will be re-
quired to correct the interference at his own expense. You are cautioned that any changes or modifica-
tions not expressly approved in this manual could void your authority to operate this equipment. The
shielded interface cable recommended in this manual must be used with this equipment in order to
comply with the limits for a computing device pursuant to Subpart J of Part 15 of FCC Rules.
1.2 For customers in Canada
This apparatus complies with the Class A limits for radio noise emissions set out in Radio Interference
Regulations.
1.3 Pour utilisateurs au Canada
Cet appareil est conforme aux normes Classe A pour bruits radioélectriques, spécifiées dans le Règle-
ment sur le brouillage radioélectrique.
1.4 Life Support Applications
These products are not designed for use in life support appliances, devices, or systems where m
tion of these products can reasonably be expected to result in personal injury. Mikrotron customer
ing or selling these products for use in such applications do so at their own risk and agree to fully in-
demnify Mikrotron for any damages resulting from such improper use or sale.

General MC132x Users Manual Rev. 0.22
5
1.5 Declaration of conformity
Manufacturer: Mikrotron GmbH
Address: Landshuter Str. 20-22
85716 Unterschleissheim
Deutschland
Product: camera MC1324, MC1325, MC1326, MC1327
The dedicated products conform to the requirements of the Council Directives 2004/108/EG for the
approximation of the laws of the Member States relating to electromagnetic consistency. The following
standards were consulted for the conformity testing with regard to electromagnetic consistency.
EC regulation Description
EN 61000-6-3 Electromagnetic compatibility
EN 61000-6-1 Immunity
Unterschleissheim, August 04th. 2006
Mikrotron GmbH
Dipl.-Ing. Bernhard Mindermann
President of Mikrotron

General MC132x Users Manual Rev. 0.22
6
1.6 Warranty Note
Do not open the body of the camera. The warranty becomes void if the body is opened.
1.7 Remarks, Warnings
This document contains important remarks and warnings. See the corresponding symbols:
L
Important remark
*
Attention, Warning

Introduction MC132x Users Manual Rev. 0.22
7
2 Introduction
The CMOS high speed camera MC132x is a high resolution camera with 1280 x 1024 pixel. Benefits of
CMOS technology are high speed, random access to pixels with free programmability and low power.
The camera uses industry-standard C-Mount lenses. The sensor diagonal is 1,25“ with square pixels
measuring 12µm.
Free programmability means that the user is free to define the region of interest by size and position and
the speed of data output. The frame rate can be selected between 25 fps and several thousand fps
depending on resolution and video data width.
With a resolution of 1280 x 1024 pixel, 80 fps can be output via the Gigabit Ethernet Interface. Parame-
ter sets are called “profiles” and stored in non volatile memory.
2.1 Top level specifications
• high resolution: 1.280 x 1.024 pixel CMOS sensor
with 1300 A/D converters
• up to 1.024 gray levels
• up to 80 full frames/s
up to 500 frames/s using data reduction alghorithms
• arbitrary region of interest
• high sensitivity
• 12μm square pixels
• electronic “Freeze Frame” shutter
• low blooming
• programmable via serial link
• patented ImageBLITZ® image trigger
• asynchronous trigger
• download customer specific FPGA preprocessing firmware
• small, compact housing
• wide power supply range
2.2 Electronic „Freeze Frame“ Shutter
Preceding exposure, the contents of all light sensitive elements is cleared. When exposure terminates,
accumulated charge is transferred to an analog memory associated which each pixel. It stays there until
it is read out (and discharged) by the A/D conversion cycle.
As all light sensitive elements are exposed at the same time, even fast moving objects are captured
without geometric distortion.

Introduction MC132x Users Manual Rev. 0.22
2.3 Differences between the camera types
The CMOS cameras are available in different versions depending on the supported features mono-
chrome/color or Base/Full Camera Link ® interface, lens connection to C-mount or changeable lens
adapter C-mount/F-mount.
Features
Type
Data
width
(bits)
Color/
Mono Max BWidth C/F-Mount
lens adaption max. frame rate@
1280 x 1024 Image-
BLITZ® Image pre-
processing
supported
MC1324 8 M 110 Mbyte/s C 80 fps + +
MC1325 8 C 110 Mbyte/s C 80 fps + +
MC1326 8 M 110 Mbyte/s F 80 fps + +
MC1327 8 C 110 Mbyte/s F 80 fps + +
Table 2.3-1 + ... supported
- ... not supported
2.4 Using the camera
There are no serviceable parts inside the camera.. The camera may not be opened, otherwise guarantee
is lost.
Use dry, soft lens-cleaning tissue for cleaning lenses and, if necessary, the sensors window.
8

Hardware MC132x Users Manual Rev. 0.22
9
3 Hardware
3.1 GigE Vision® Interface
GigE Vision® is designed for digital cameras in machine vision applications. This interface can transfer
data at a rate of 110 Mbytes/sec.
3.1.1 Serial interface
3.2 Power supply
The camera needs a DC supply voltage between 8 … 24 V at a power consumption of 5,0 Watt max.
See also Connector pinning .
*
Before applying power to the camera we strongly recommend to verify the used pins of the
power connector, the polarity (+/-) of the leads and the supply voltage.
The camera may only be used with a supply voltage according to the camera specification.
Connecting a lower or higher supply voltage, AC voltage, reversal polarity or using wrong
pins of the power connector may damage the camera. If doing so, the warranty will expire
immediately.
3.3 Status LED
A dual colour LED on the camera backplane shows the operating condition of the MC132x.
LED orange... The MC132x is configuring the internal FPGA. No other activity is possible.
LED green... The MC132x is fully operational.
LED off... If LED is off, despite the camera is powered, the FPGA configuration data is re-
loaded via the serial interface and stored in internal EEPROM. No other activity
is possible.
LED red... red LED that the FPGA could not be loaded because of wrong FPGA configura-
tion data. Try to reload configuration data.

Getting started MC132x Users Manual Rev. 0.22
10
4 Getting started
Before starting to operate the camera, make sure that the following equipment is available:
• Camera MC132x
• C-Mount/F-Mount Lens
• Mikrotron Support CD
• Image processing system, e.g.: PC and Software
L
For GigE Interface the Intel MT1000 Chipset is rec-
ommended
Additional items:
• 1 GigE cable (CAT6 recommended)
• 1 Power supply 12VDC, 0.5A min
• 1 power cable
L
To specify cables see chapter Connector pinning.
4.1 First steps
1. Switch off the image processing system
2. Connect GigE cable between camera and PC.
3. Connect power cable.
4. Unscrew dust protection cover, screw in lens.
5. Switch on the image processing system and camera power supply

Initial setup MC132x Users Manual Rev. 0.22
11
5 Initial setup
The MC132x is delivered with initial parameters and therefore does not need to be configured via the
serial link.
5.1 Serial number and firmware revision
Serial number and firmware revision is provided in MC132x non volatile memory. Use :v command
(Read serial number and firmware revision) to read serial number and firmware revision. The serial
number is also marked on the type plate of the camera.
5.2 PowerUpProfile
The PowerUpProfile is the contents of all camera registers to be loaded from non-volatile memory after
power up.
5.3 Camera Profile
The actual set of parameters is called Camera Profile. All changes of parameters by the serial link is
reflected in the Camera Profile. On command the Camera Profile is saved to 8 user profiles or one Pow-
erUpProfile. It is loaded from 8 user profiles or 8 factory profiles or the PowerUpProfile. The camera
profile is volatile and must be stored to the PowerUpProfile to be reactivated on next poer up.
5.4 Factory profile
The factory profile can be read but not written by the user. They are factory preset to the settings de-
scribed in the next chapter (user profiles).
5.5 User profiles
The user can store up to eight PowerUpProfiles in non volatile memory. All load or write commands
exchange data between the PowerUpProfile and one of the four user profiles.
Profil-Nr. Video data
width
/Mbyte/s
resolution
/ pixel Image
frequency
/fps
0 48,5 100 x 100 4.852
1 58,2 240 x 240 1.011
2 62,1 640 x 480 202
3 61,6 1280 x 1024 47
4 48,5 100 x 100 4.852
5 58,2 240 x 240 1.011
6 62,1 640 x 480 202
7 61,6 1280 x 1024 47
Table 5-1

Configuration MC132x Users Manual Rev. 0.22
12
6 Configuration
The MC132x has 15 FPGA registers, r1..rfh, each 10 bit wide, eight D/A registers, a1..a8, 8-bit wide,
and one clock select register, 4 bit wide. The contents of all the above registers is called a profile. There
is space in non volatile memory for 17 profiles: one PowerUpProfile, 8 user profiles and 8 factory pro-
files.
Any change of a specific register through the serial interface is immediately processed and written to
the volatile part of the memory and gets lost when power goes down. A command must be used to store
the actual setting in non volatile memory. After power-up the PowerUpProfile is loaded from the non-
volatile to the volatile part of the memory.
A load or write command exchanges data between the PowerUpProfile and one of the eight user pro-
files. The eight factory profiles can be read but not be written by any command. All values are given in
hexadecimal notation, e.g.: 0xff or 0ffh = 255.
6.1 Commands
ASCII strings are used to change camera parameters. All commands start with a colon, followed by one
selection character and a value in hexadecimal notation with two or three ASCII characters.
After a command has been recognized, processing is immediate, for all commands but the save type
commands (:px). These need a EEPROM write time of app 1ms. An answer is provided with read type
commans (:v, :w, :W) or, if the command “command acknowledge flag” is set, after processing of each
command an ACK or NAK character. Processing of wrong command is stopped immediately on recog-
nizing the error. A new command must start with a colon.

Configuration MC132x Users Manual Rev. 0.22
6.1.1 Table of commands
Syntax Range Answer Description
:a<n><xx> <n> = 1...8
<xx> = 0...ffh
-- Set one of eight analog voltages
for the sensor
:A<n> <n> =
„y“,“Y“,“n“,“N
“
En- or disable a command ac-
knowledge or not acknowledge
(ACK or NAK)
:b<n> <n> = 0...4 -- Select baud rate:
0=9600 Bd (default setting),
1=19.2 kBd,
2=38.4 kBd, 3=56.8 kBd, 4=115.2
kBd
:c -- -- RESET and new Initialization of
the camera, new load of Pow-
erUpProfile. Duration: some sec-
onds
:e... -- -- Transmit & save a new FPGA
configuration
:f<n> <n> = 0...7 -- Reload one of eight, factory de-
fined and calibrated profiles to
PowerUpProfile.
:g<n> <n> = 0...7 -- Reload one of eight user profiles
to PowerUpProfile
:p<n> <n> = 0...7 -- Save PowerUpProfile to one of
eight user profiles, allow app. 1ms
save time.
:r<n> <n> = 1...fh-- Write a FPGA - register
:S 6 Byte Code -- Program sensor and pixel clock
directly.
:t<n><m> <n> = 00..7fh
<m> = 00..ffh
-- Short setting of X- position in
units of 10 pixel and Y-position in
units of 4 lines.
:T -- +50.5 Read temperature
:v -- #12345- V1.10-F1.29 Read serial number (#), microcon-
troller - version (V...) and FPGA -
version (F...).
:V -- 1324000003433 Read identifier
:w -- camera
profile: 44 bytes in
hex
Read actual PowerUpProfile, data
output in hex
:W -- Camera
profile: 44 bytes in
ASCII
Read actual PowerUpProfile, data
output in ASCII
6.2 Read camera information
6.2.1 Read serial number and firmware revision
The serial number and the firmware revision can be read with the :v command.
Command: :v
Response(e.g.): #01234-B2.02-V2.02-F0.71
Serialnumber
of the camera
13
FPGAfirmwareversion
Microcontroller bootloader Microcontroller application
firmware version firmware version

Configuration MC132x Users Manual Rev. 0.22
6.2.2 Read identifier
The identifier offer information about the camera type and camera functions. It consists of 8 bytes,
which are delivered as 16 ascii characters.
Command: :V
Response (e.g.): 1324000003040303
definition of additional functions or features, 4 bytes
reservedbytes
camera type, e.g. 1324 = MC1324
Definition of functions or features: not yet used
6.2.3 Read camera settings
The actual camera settings can be read out. The answer are the values of all camera registers.
Command: :w Output as hexadecimal digits
(44Bytes)
:W Output as ASCII-String
Example for ":w" (output as hex digits, 44 Databytes + CR + LF):
6d6448c66500650061008541898c0000
03f f03f f0000007f 0030000000000000
000000000000000000000000↵CR+LF
Example for ":W" (output as ASCII string, 91 Bytes total, 88 databytes, 1x CR preceding the databytes,
1x CR after 32 ASCII-characters and 1x CR after 64 ASCII- characters):
↓6d6448c66500650061008541898c0000↓
03f f03f f0000007f 0030000000000000↓
CR
000000000000000000000000
Assignment of data to camera parameters:
6d6448c665006500 61008541898c 0000
03f f03f f0000007f 0030000000000000
analog settings Codes for pixel-
and Sensorclock
000000000000000000000000↵
image size & position
transmitted bytes:
A1 A2 A3 A4 A5 A6 A7 A8 Sa1 Sa2 Sa3 Sb1 Sb2 Sb3
R1h R1l ... R15h R15l↵
A1...A8 analog settings
Sa1 Sa2 Sa3 3 Bytes frequency codes of pixelclock (see 6.7)
Sb1 Sb2 Sb3 3 Byte frequency codes for sensorclock (see 6.7)
R1…R15 image size & position
R1h ... high Byte Register1 Abb. description hex. Code
CR carriage return 0d
LF line feed 0a
R1l ... low Byte Register1
↵... CR+LF (0dh + 0ah)
14

Configuration MC132x Users Manual Rev. 0.22
6.2.4 Reading camera temperature
To control the temperature inside , the camera disposes of an internal temperature sensor. The tempera-
ture inside the camera can be read out in steps of 0.5°. The value is delivered in ASCII characters
signed.
Command: :T
Response(e.g.): +34.0
The temperature sensor is able to deliver values of –128°C to +128°C.
*
Take care that the temperature of the camera does not exceed the specified case
temperture range.
6.3 Profile processing
All camera settings are loaded or stored as complete data blocks (= Profiles). There are 17 profiles, the
Camera profile, the PowerUpProfile, eight factory profiles and eight user profiles.
user
profile 0 user
profile 1 user
profile n user
profile 7
:p0
factory
profiles
0...7
f0..7
Power-
UpProfile
:pc
:gc
or power on :
g
7
camera profile (programs to camera logic)
configuration commands
:a..z[parameter]
:
g
n
:
g
1
:
g
0
:p1 :pn :p7
6.3.1 Write user profile
The PowerUpProfile is transferred to one of the eight user profiles.
Command: :p<n> <n> = 0 ... 7,c
LIssue this command only, if the PowerUpProfile was
successfully tested.
6.3.2 Load user profile
Load one of eight user profiles to the PowerUpProfile.
Command: :g<n> <n> = 0 ... 7, c
15

Configuration MC132x Users Manual Rev. 0.22
16
6.3.3 Load factory profile
The eight factory profiles can be read but not changed by the user.
Command: :f<n> <n> = 0 ... 7
6.4 Image quality
There are three D/A converter to influence image quality: FPN, Gain, and Black up. FPN, Gain and
especially Black might be adjusted if sensor clock changes. All three parameters are stored in non-
volatile memory as part of the selected profile.
6.4.1 FPN
The Fixed Pattern Noise setting reduces the fixed pattern noise that is typical to CMOS sensors. This
level might be changed if the sensor clock frequency is changed. For adjustment set the lens out of fo-
cus and to a medium grey level. Lower FPN until a heavy pattern appears. Then raise by a few points.
Command: :a1<x1x0><x1x0>: Range, typ. 55h ... 80h
Response: none
6.4.2 Gain
This is the threshold for the A/D converters. Its standard value is 66h for app. 1V. One step is app.
10mV. To increase the gain the value of a2 must be lowered.
Command: :a2<x1x0> <x1x0>: Range,
typ. 30h ... 80h
6.4.3 Black Level
Change Black Level if sensor clock changes. Increase this parameter until grey values in no light condi-
tion (closed lens) are close to zero.
Command: :a5<x1x0> <x1x0>: Range, typ. 00h ...ffh
Response: none
6.5 Image size and position
Image size and position within the sensor is defined by four parameters:
Bit(s) Description
r1[9..0] Number of first line, 0..3FDh
r3[9..0] Number of lines, 0..3FFh
r4[6..0] Address/10 of the first pixel
r5[6..0] Address/10 of the last pixel
Table 6.5-1

Configuration MC132x Users Manual Rev. 0.22
17
6.5.1 Address of the first line
Register r1 defines the first line to be displayed.
Command: :r1<x2x1x0>
<x2x1x0>... Range 000h ...3fdh
Response: none
Example: :r1100
100h = image starts at line 257
L
If dual column binning is activated, r1 is doubled
within the camera logic.
6.5.2 Number of lines
Register r3 defines the number of lines to output.
Command: :r3<x2x1x0>
<x2x1x0>... Range 000 h ...3ffh
Response: none
Example: :r3200 200h = display 513 lines
LThe sum of r1 and r3 must be ≤0x3ff/1023 or
0x1ff/511 if dual column binning is activated!
6.5.3 Address of the first pixel of a line
Register r4 defines the leftmost pixel. The value is the pixel address divided by ten.
Command: :r4<x2x1x0>
<x2x1x0>... Range 000h ...7fh
Response: none
Calculation of the value of r4:
Value of r4 = Pixel-Nr./10
6.5.4 Address of the last pixel of a line
Register r4 defines the rightmost pixel. The value is the pixeladress divided by ten.
Command: :r5<x2x1x0>
<x2x1x0>... Range 000h ...07fh
Response: none
Calculation of the value of r5:
Value of r5 = Pixel-Nr./10
L
The difference r5 - r4 must be in the range: 0 ≤r5-r4 ≤7fh .

Configuration MC132x Users Manual Rev. 0.22
18
6.5.5 Tracking
For rapid window movement even at slow baud rates a short command is provided..
command: :t<n>,<m>
<m> = X-position in pixel/10,
range 00h ...07fh
<n> = Y-position in lines / 4,
range 00h ...0ffh
Response: none
6.6 Clock selection
The MC132x is equipped with a 2-channel programmable clock synthesizer. One channel controls clock
frequency of the sensor (sensorclock, Fsens), the other controls the frequency of the pixel clock (pixel-
clock, Fpix). These independent clocks allow an always optimal ratio depending on the product of (im-
age size x image frequency) and the data rate on the output.
As the sensor outputs 10 pixel per clock a sensor clock of 6.6MHz could be chosen. Because the sensor
can run up to a clock frequency of 66 MHz only 1/10 of the sensors possible speed would be used. To
make use of the maximum sensor clock and maintaining the maximum data rate on the output, just 120
(1280/10 rounded to steps of 10) from the possible 1280 pixel per line can be selected.
Therefore the ratio of Fsens and Fpix depends on the selected line length:
Fsens <= (Fpix •1280) / (5 •line length)
or if 100 pixel line length is chosen:
Fsens = (33 •1280) / (5 •100) = 70,4 MHz
As this exceeds the maximum sensor clock frequency, Fsens is chosen as 66 MHz and Fpix as 33 MHz.
6.6.1 Arbitrary selection of sensor and pixel clock
Sensor and pixel clock can be set to any value, the product of: (sensor clock •line length/1280) must
always be smaller (about 10%) than the qoutient: (pixel clock / 2).
command :S <x0>
<x0> ... 6 characters, as described in chapter Frequency selection
6.6.2 Table selection of clock frequencies
To simplify clock selection when using video data width of 2, clocks can be selected from a table with
15 entries, each entry being optimized for four regions of line length. (see table in 9.4).
Example: 240 < line length <= 640 Pixel, clock selection s9
pixelclock: 30,0 MHz
sensorclock: 11,2 MHz
resulting max. datarate on the 16-Bit output:
30,0 MHz/s * 2 Byte = 60,0 Mbyte/sec.

Configuration MC132x Users Manual Rev. 0.22
This is valid for a line length between 250 and 640 pixel.
command :s <x0>
<x0> ... range 0 ... f (hex)
*
Before selecting the data rate of the camera check
the maximum data rate of the GigE Connection,
which must be higher (or at least the same).
6.6.3 Image Format/Speed change
There are several steps necessary for a change of image format:
i. Disable sensor controller with :r6[4] = 0.
ii. Set image size with (:r1,:r2, :r3, :r4, :r5).
iii. If new sensor clock = old sensor clock:
1. Do not set pixel clock nor sensor clock.
iv. If new sensor clock > old sensor clock:
1. Set new pixel clock (:S6…..), then new sensor clock (:S4….).
v. If new sensor clock < old sensor clock:
1. Set new sensor clock (:S4…..), then new pixel clock (:S6….).
vi. Reenable sensor controller (:r6[4]=1).
6.7 Exposure control
Exposure control is selected with register r6[7..4] and register r2[9..0].
Bit(s) Description
r6[7..4] Type of exposure
r2[9..0] Exposure time
table 6-1
6.7.1 Type of exposure
The MC132x can expose the images synchronous or asynchronous. An external signal on CC1 can be
used to synchronize MC132x cameras to each other or to an external event.
6.7.1.1 Synchronous exposure
Synchronous exposure means that the next image is exposed, while the current image is output. This
mode provides fastest frame rate while maintaining maximum exposure time as long as 1/frame rate. If
an external synchronization signal is input on CC1 its frequency range can be between 30Hz and the
selected free running frame rate. Use MC13xx camera configuration tool for selection.
19

Configuration MC132x Users Manual Rev. 0.22
20
6.7.1.2 Asynchronous exposure
With asynchronous exposure, an external signal starts exposure, and the exposed image is output imme-
diately after the exposure ends. Exposure time is defined either by an internal timer or by the width of
the external EXP (CC1) signal. The time between two consecutive EXP (CC1) edges can be indefinite.
Frame rate = 1/(exposure time + image output time). Image output time equals the selected free running
frame rate. Use MC13xx camera configuration tool for selection.
The following registers select exposure type:
Register Bits :r6[7..4] :r7[8] :rf[0]
camera stop xxx0 x x
Synchronous without elec-
tronic shutter 0001 0 0
Synchronous with electronic
shutter 0011 0 0
Synchronous with electronic
shutter and external synchro-
nisation signal, positive edge
0011 0 1
Synchronous with electronic
shutter and external synchro-
nisation signal, negative edge
0011 1 1
Asynchronous, pulsewidth,
positive edge 1011 0 0
Asynchronous, pulsewidth,
negative edge 1011 1 0
Asynchronous, timer, positive
edge 1111 0 0
Asynchronous, timer, nega-
tive edge 1111 1 0
Table 6.7-1
6.7.2 Frame rate with synchronous exposure
The frame rate with synchronous exposure is direct proportional to the selected number of lines.
The time for one line is:
Tzz = 1/Fsens •136 [sec]
Tzz ...time/line
Fsens... Sensorclock
Frame rate: = 1 / (time/line •number of lines+1) or:
= Fsens/ (136 •(r3[9..0] +2))
Dependencies between image size and frame rate for typical clock frequencies are given in the follow-
ing table: image size
100x100 240x240 640x480 1280x1024
Senso rclock (MHz) 66 33 13,2 6,6
Time/line [µs] 2,06 4,12 10,3 20,6
Frames/s 4.852 1.011 202 47
Table 6.7-2
This manual suits for next models
4
Table of contents
Other Mikrotron Security Camera manuals