DALSA is an international high performance se miconductor and ele ctronics company th at designs,
develops, manufactures, and markets digital imaging products and solutions, in addition to providing
wafer foundry services. DALSA’s core competencies are in specialized integrated circuit and electronics
technology, and highly engineered semiconductor wafer processing. Products include image sensor
components; elec tronic digital cameras; and semiconductor wafer foundry services for use in MEMS,
power semiconductors, image sensors and mixed signa l CMOS chips.
DALSA is a public company listed on the Toronto Stock Exchange under the symbol “DSA”. Based in
Waterloo, On. Canada, the company has operations in Bromont, PQ; Colorado Springs, CO; Tucson, AZ;
Eindhoven, NL; Munich, Germany and Tokyo, Japan.
All DALSA products are manufactured using the latest state-of-the-art equipment to ensure prod uct
reliability. All electro nic modules and came ras are subjected to a 24 hour burn-in t e st.
For further informatio n not included in this manual, or for information on DALSA’s extensive line of
image sensing products, ple ase call:
USA
Tel: 520 791 7700
Fax: 520 791 7766
http://lifesciences.dalsa
.com
sales@dalsa.com
Breslauer Str. 34
D-82194 Gröbenzell
(Munich)
Germany
Tel: +49 - 8142 –
46770
Fax: +49 - 8142 –
467746
www.dalsa.com
europe@dalsa.com
Space G1 Building, 4F
2-40-2 Ikebukuro
Toshima-ku, Tokyo
171-0014
Japan
+81 3 5960 6353
(phone)
+81 3 5960 6354
(fax)
www.dalsa.com
asia@dalsa.com
03-32-00525-03DALSA
Page 3
1M28 and 1M75 User’s ManualPRELIMINARY3
Contents
Contents
ContentsContents
Introduction to the 1M28 and 1M75 __________________________________________ 5
1.1 Camera Highlights.......................................................................................................................................................5
1.4 Gain Response .............................................................................................................................................................12
1.6 Region of Interest (ROI)...............................................................................................................................................15
1.7 Camera Performance Specifications.............................................................................................................................16
Camera Hardware Interface________________________________________________ 19
2.6 Power Supplies ............................................................................................................................................................22
2.7 Control Inputs, Camera Link........................................................................................................................................22
2.8 Data Bus, Camera Link................................................................................................................................................22
2.10 Dummy Test Row .......................................................................................................................................................27
2.11 LED Status..................................................................................................................................................................27
Software Interface: Controlling the Camera _____________________________________ 29
3.3 Modifying Camera Registers ........................................................................................................................................32
3.5 PFLIB API Commands..................................................................................................................................................40
Optical and Mechanical Considerations________________________________________ 41
Introduction to the 1M28Introduction to the 1M28
and 1M75
and 1M75
and 1M75and 1M75
1.1 Camera Highlights
Features
•“Stop Action” (SA) imaging.
•Exposure control.
•1-Megapixel (1024 x 1024) resolution.
•Up to 75 frames per second (fps).
•CMOS image sensor.
•LINLOG™ output response.
•Windowing capability for increased frame rates.
•CE compliant, shock an d vibration tested.
•Single 5V power supply input.
•Robust and compact.
Programmability
•Programmable features include: gain, offset, line rates, trigger mode, test pattern
output, and camera diagnostics.
•DLLs for integrating camera control functions into your system. The DLLs require a
framegrabber that has a virtual COM port, or a COM port input.
DALSA03-32-00525-03
Page 6
6PRELIMINARY1M28 and 1M75 User’s Manual
Description
The 1M28 and 1M75 Cameras are based on a specially develope d high-performance
CMOS image sensor, wh ich enables high spee d, global shutter technology for snap-shot
imaging, and award winni ng LINLOG technology for over 120dB of intrascene dynamic
range. The camera was developed for industrial visi on applications targeting the best
today’s CMOS image sensor technology can offer. Special effort was put into the
development of a versatile, user-friendly, and robust camera.
Applications
The 1M28 and 1M75 are aimed at demanding applications i n industrial image processing
and measurement and are ideal for applications with large illumination differences. Some
applications include:
•Electronics manufacturing
•Welding inspection
•Traffic management
1.2 Image Sensor
The 1M28 and 1M75 cameras use a h igh-performance megapi xel CMOS image sensor
capable of windowing and a dyn am ic range of 120dB.
Table 1: Sensor Characteristics
Pixel number1024 x 1024
Pixel size
Full well capacity (Saturation)200 000 electrons
Shutter ModeGlobal, non-rolling
Min. Region of Interest (ROI)4 rows x 1 column
Fill Factor35% (diode area only)
Quantum Sensitivity
Inpixel programmable gain~4x
ResponseLinear, LINLOG
Dynamic Range48dB linear (8bit); 120dB LINLOG
Quantum Efficiency25% (including fill factor)
Exposure Time1 µs—0.5s in steps of 35ns
Sensitivity10 µJ/m2/LSB @630 nm, 8 bit
Spectral Range400 - 800nm
Number of outputs1 or 4
Dimensions55 mm (B) x 55 mm (H) x 50 mm (L)
Weight200g
10.6 x 10.6 µm
2µV/electron (8µV/electron with gain)
TM,
, or logarithmic
TM
03-32-00525-03DALSA
Page 7
1M28 and 1M75 User’s ManualPRELIMINARY7
Table 2: Cosmetic Specifications for the 1M28 and 1M75
Blemish SpecificationValue
ANumber of first and last columns excluded4
BNumber of first and last rows excluded4
CBlemish pixel deviation from average output under
illumination
DBlemish pixel deviation from average dark level, measured
at dark
EMaximum number of bright single pixel blemish e s at dark300
FMaximum n umber of bright single pixel bl emishes under
illumination
GMaximum number of dark single pixel blemishes und e r
illumination
HMaximum number of bright clusters at dark10
IMaximum number of bright clusters under illumination2
JMaximum number of dark clusters under illumination10
KMaximum size of bright clusters at dark2
LMaximum size of bright clusters under illumination2
MMaximum size of dark clusters under illumination6
over 30DN and under
20DN
over 30DN
225
40
Notes:
1. Blemishes are measured over an entire frame of data and counted within the fram e
boundaries defined by A and B above.
2. Single pixel ble mishes are defined as a pixel with an output as defined in C and D. A
bright single pixel defect occurs when the pixel exceeds the average output as defined
in C and a dark single pixel defect occurs when the pixel is below the average output
as defined in C.
3. Clusters are a group of adjacen t blemishes.
4. Illumination an alysis done at half saturatio n: the average pixel output of all pixels
within the frame i s 128DN.
5. All tests conducted with gain off and skimming off with QTH lamp (color temp.
3200K) with Wide Band Hot Mi rror (750n m cutoff).
6. Exposure time set to 10ms.
7. Camera operating in linear mode.
8. Camera operating under 25°C ambient temperature.
DALSA03-32-00525-03
Page 8
8PRELIMINARY1M28 and 1M75 User’s Manual
Sensor Cosmetics: Blemishes Types
The 1M28 and 1M75 one megapi xel CMOS sensor has two differe nt blemish types,
referred to as hot pixels (bright blemishes) and dark blemishes.
Hot Pixels
Hot pixels are pixels that generate excessi ve amounts of dark current relative to other
pixels. Some hot pixels will generate dark current at 10 to 20 times the rate of a normal
pixel. Hot pixels are isolated single pixel defects. They follow the general rule of thumb
for dark current where the dark current doubles every 7-8°C. They are more easily
recognizable when the camera is in dark conditions.
Figure 1: Typical Output at Dark, 1ms Exposure Time
Figure 1 depicts the n umber of pixels that generate larger amounts of dark c urrent than
your average pixel—the average pixel level output is 7DN.
Figure 2: Typical Output at Dark, 10ms Exposure Time
Figure 2 depicts the n umber of pixels that generate larger amounts of dark c urrent than
your average pixel—the average pixel level output is 8DN.
03-32-00525-03DALSA
Page 9
1M28 and 1M75 User’s ManualPRELIMINARY9
Figure 3: Typical Output at Half Saturation, 1ms Exposure Time
Figure 3 depicts the histogram of pixel output values when the average pixel level output
is 128DN.
Figure 4: Typical Output at Half Saturation, 10ms Exposure Time
Figure 4 depicts the histogram of pixel output values when the average pixel level output
is 128DN.
Dark Blemishes
Dark blemishes are areas of t h e sensor where the pixel(s) are not as responsive as the
average pixel. Dark blemishes can be isolat ed single pixel defects, but can also be foun d in
clusters. Figure 3 and F igure 4 show the distribution of dark blemishes.
1.3 Pixel Response
Three principal modes of pixel response are possible: Linear response, LINLOG response
for high dynamic imaging, and logarithmic response for high dynamic imaging.
Linear response
In the linear response mode, the camera works similar to a classical CCD camera,
integrating the photo-generated charges in each pixel during the exposure time. In this
mode the output signal is a linear function of the number of photons accumulated in each
pixel during the integration time. If the number of photons accumulated in one pixel
exceeds the pixel capacity, the pixel saturates, and the output signal is truncated to the
maximum level.
This mode is advantageous if linearity of the response is needed over the whole dynamic
range, and for applications w i th intra scene dynamics up to 40dB-60dB amplitude.
DALSA03-32-00525-03
Page 10
10PRELIMINARY1M28 and 1M75 User’s Manual
LINLOGTM response
In the LINLOG mode the pixel response can be influenced to prevent pixel saturation. At
low intensities, each pixel has a linear response. Once a threshold of charge collected is
reached, the pixel changes its response to a log ari thmic compression. This pre vents the
saturation of the pixel response and permits an e xtremely high in tra scene dynamic above
120dB. The threshold when
the pixel passes from a li near
to a logarithmic response is
programmable by software.
Special care has been
invested to keep this
transition contin uous and
smooth. The LINLOG
response is compatible w ith
the global shutter technique
(all pixels are exposed at the
same time) which prevents
motion artefacts known from
classical logarithmic sensors.
The LINLOG technology
further overcomes image lag,
or ghost images related to the
slow response speed of pure
logarithmic sensors. The
LINLOG response is best
suited for application with
uncontrolled illumination conditions or high intrascene contrasts where a high pixel
response is needed. We l d i ng and traffic management are two application examples best
suited for the LINLOG re spon se.
Response
20
18
16
14
12
10
LINLOG
response
8
6
4
2
Logarithmic
response
0
0510152025
LINLOG
TM
Transition
TM
Intensity
LINLOG values are set using the PFRemote configuration tool. See section 3.2 PFRemote
Configuration Tool for details.
LINLOG Parameter Adjustment Procedure
There is no direct formula for the interactions of LL1, LL2, and COMP. To determine
optimal settings, use the flowchart on the next page.
03-32-00525-03DALSA
Page 11
1M28 and 1M75 User’s ManualPRELIMINARY11
Figure 5: LINLOG Parameter Adjustment Procedure
START
Take a picture
Analyze the
overexposed areas
LL1 = 0000h
LL2 = 0000h
TIME = 0
Rough settings LL1
Phase 1
Initial value LL1 = 62.5
Take a picture
Find the center of gravity
decrease
LL1
of the histogram of the
overexposed areas
increase
LL1
Phase 2
Phase 3
decrease
COMP
too low
Gray scale 160 << Gray scale 200
overexposed areas acceptable ?
Center of
gravity of
histogram
Rough setting for COMP
Initial value = 5
Take a picture
Is the contrast in the
Yes
increase
COMP
too high
DALSA03-32-00525-03
Page 12
12PRELIMINARY1M28 and 1M75 User’s Manual
Rough settings for LL2
Initial value LL2 = 37.5
Phase 3
LL2 < LL1
Take a picture
Phase 4
Phase 5
decrease
LL2
too high
Is the contrast in the
overexposed areas acceptable ?
Yes
Black adjust
Fine adjustment of
LL1
LL2
COMP
Black adjust
Adjustment of
characteristics using LUT,
optimized for the
application's gray scale
output: 8 Bit
increase
LL2
too low
1.4 Gain Response
The cameras feature two gain options: Camera Gain and Skimming Gain.
03-32-00525-03DALSA
END
Page 13
1M28 and 1M75 User’s ManualPRELIMINARY13
Camera Gain (Highgain)
A preprogrammed off-chip amplification of either 1x or 4x gain b e fore AD conversion can
be applied. This gain allows one to get more information out of sparsely illuminated
scenes, or increases the spread of gray levels when using strong logarithmic compression.
Skimming Gain
This gain can amplify small signal levels before readout, thereby increasing sensitivity
before readout noise adds to the signal. Due to the thermally generated leakage current,
this gain is only suitable for relatively short exposure times since it significantly increases
the FPN created by thermal current. The skimming gain can be combined with LINLOG
response, though the LINLOG transition parameters have to be chosen carefully to
prevent blackout of the sensor. The skimming gain should not be used with very short
frame periods, since it has a slightly increased time constant.
Both gains can be combined, though this increases FPN significantly and usually requires
you to recalibrate the black level.
Figure 6: Skimming and Camera Gain
Camera
Sensor
Signal
Skimming Gain
1x or 4x
Note: In skimming m o de increased responsivity re sults in a nonlinear output.
Note: Gain values are set using the PFRemote configuration tool. See section 3.2
PFRemote Configuration Tool for details.
Camera Gain
1x or 4x
DALSA03-32-00525-03
Page 14
14PRELIMINARY1M28 and 1M75 User’s Manual
Figure 7: Camera Output Performance Skimming On vs. Skimming Off
Tint = 10ms λ =
250
200
150
100
Greyscale
50
0
0.00E+001.00E-052.00E-053.00E-054.00E-05
Intensity [W/cm2]
λ = 626nm
λ =λ =
No skimming
Skimming on
Figure 8: Highlight of Low Intensity Values
Tint = 10ms λλλλ = 626nm Zoom in
180
160
140
120
100
80
Greyscale
60
40
20
0
0.00E+001.00E-062.00E-063.00E-064.00E-065.00E-06
I [W/cm2]
No skimming
Skimming on
03-32-00525-03DALSA
Page 15
1M28 and 1M75 User’s ManualPRELIMINARY15
1.5 Spectral Responsivity
Figure 9: 1M28-SA and 1M75-SA Spectral Responsivity
The cameras are shipped without any filters. The quantum response is only l i mited by the
physics of silicon in manufacturing technologies. This permits applications in the near UV
as well as in the IR Band. For classical visible applications, consi d er the use of IR stop
filters to increase the sharpness of the images since commercial lenses often cannot
provide proper focalization over such a large spectrum.
Note: Although not shown, the cameras are responsive to light from 380 to 1100nm .
1.6 Region of Interest (ROI)
The CMOS sensor allows you access to subregions of the pixel matrix through the region
Note: To set the ROI,
refer to Chapter 3.
Software Interface:
Controlling the Camera.
of interest function. The benefit of limiting the region of interest is the resulting increase
in frame rate.
In Y direction the ROI can be placed arbitrarily, and can be as small as a single line. The
frame rate increases linearly with a reduction in lines read out.
In X direction t he ROI must incl ude at least 4 column s for the 1M28 camera and at least 8
columns for the 1M75. If this condition is respected, the speed increase in column
direction is also linear to the reduction in read out columns.
Theoretically, t he smallest ROI is 4 columns x 1 row for the 1M28, an d 8 columns x 1 row
for the 1M75.
Table 3: Max Frame Rate versus Resolution (Exposure Time = 10µs)
ROI Dimension (col x line) 1M281M75
512 x 512105 Fps286 Fps
256 x 256411 Fps1070 Fps
128 x 1281587 Fps3700 Fps
128 x 1611111 Fps22000 Fps
DALSA03-32-00525-03
Page 16
16PRELIMINARY1M28 and 1M75 User’s Manual
ROI Dimension (col x line) 1M281M75
1024 x 120000 Fps37000 Fps
1.7 Camera Performance Specifications
Table 4: 1M28 an 1M75 Performance Specifications
Physical CharacteristicsUnitsNotes
Power Dissipati o n, typW2
Time to power up, typsec.5
Data output formatbits8 and 10Camera Link™2
Sensor Alignmentx, y
z
0z
µm
mm
°
±300
±0.10
±0.5
Operating RangesUnitsMin
(1M28
Max
(1M28)
Max
(1M75)
and
1M75)
Data Rate, Internal MCLKMHz28.37540
External MCLKMHz20 (1M28)
10 (1M75)
Temperature°C040401
Frame RateUnitsMinMax
Full resol u tion (1024 x 1024)fps12775
With windowingfps>100,000>100,000
Electro-Optic
UnitsGainValueDescriptionNotes
28.37520
Max
(1M28)
(1M75)
Specifications
Average
Broadband
Responsivity, typ
Dynamic Range
(rms), max
DN/(nJ/
2
)
cm
Ratio1x490:1Skimming off, Gain
1x0.7Skimming off, Gain
off
~4x2.8Skimming on, Gain
off
4x2.8Skimming off, Gain
on
~16x11.2Skimming on, Gain
on
off
~4x350:1Skimming on, Gain
off
4x350:1Skimming off, Gain
on
Notes
Notes
03-32-00525-03DALSA
Page 17
1M28 and 1M75 User’s ManualPRELIMINARY17
Electro-Optic
UnitsGainValueDescriptionNotes
Specifications
~16x196:1Skimming on, Gain
on
RMS Noise, maxDN1x0.5Skimming off, Gain
off
~4x0.7Skimming on, Gain
off
4x0.7Skimming off, Gain
on
~16x1.25Skimming on, Gain
on
FPN (rms), maxDN1x3.0Skimming off, Gain
off
~4x5.0Skimming on, Gain
off
4x8.5Skimming off, Gain
on
~16x11.0Skimming on, Gain
on
PRNU (rms), maxDN1x2.5Skimming off, Gain
off
~4x5.0Skimming on, Gain
off
4x15.0Skimming off, Gain
on
~16x15.0Skimming on, Gain
on
DC OffsetDNProgrammable
Power Supply Current -
UnitsTypMax
Vin @ 5V
mA310400
Regulatory ComplianceValue
CE complianceEN 61000-6-3 : 2001
EN 61000-6-2 : 2001
Shock & Vibration ImmunityIEC/EN 60068-2-6
IEC/EN 60068-2-27
Notes:
DN = Digital Numbers (0-255); also known as gray levels.
All measurements taken in 8-bit linear output mode.
All specifications are valid for the front plate temperature range of 0°C to 40°C, in still air.
1. Measured at front plate.
2. 10 bit output avai lable with the 1M28 only.
DALSA03-32-00525-03
Page 18
18PRELIMINARY1M28 and 1M75 User’s Manual
03-32-00525-03DALSA
Page 19
1M28 and 1M75 User’s ManualPRELIMINARY19
2
Camera Hardware
Camera Hardware
Camera HardwareCamera Hardware
Interface
Interface
InterfaceInterface
2.1 Configuration
The different modes of operation and settings are programmed in the camera by an
asynchronous serial comm unications available through the Camera Link interface. The
serial interface operat es at 9600 baud. The default values are stored in an EEPROM, which
is automatically read at power up. The user can change the factory settings of the default
values in the EEPROM to configure the camera to the requirements of their own
application. You can also save the set of default values to a file over the asynchronous
serial communicati on s interface, or restore default settings saved in a fi l e to the EEPROM.
The configuration is most easily done with the PFRemote configuration tool shipped with
the camera. The PFRemote tool is explained in section 3.2 PFRemote Configuration Tool
on page 30.
2.2 Installation Overview
In order to set up your camera, you should take these steps:
1. Connect Camera Link™ cables from camera to framegrabber.
2. Connect power.
You must also set u p the other components of yo ur system, including light sources,
framegrabbers, camera mounts, heat sinks, host computers, opti c s, encoders, and so on.
See section 2.1 above for camera configuration i n formation.
DALSA03-32-00525-03
Page 20
20PRELIMINARY1M28 and 1M75 User’s Manual
+
CameraLink™
D
2.3 Input/Output
5V and Ground
iagnostic LED
!
WARNING: It is extremely important that you apply the appropriate voltages to your
camera. Incorrect voltages will damage the camera.
2.4 Default Settings
The camera power-ups for the first time with the following default settings.
Table 5: Default Settings
Specifications1M281M75
EXSYNCInternal, free-runningInternal, free-running
Data output8-bits8-bits
Output responseLinearLinear
Gain1x1x
ResolutionFull -resolution, 1024 x 1024Full-reso lution, 1024 x 1024
Exposure time10 ms12 ms
Frame rate20 fps25 fps
Data rate28MHz2x40MHz
2.5 Connectors
Please refer to the Camera Link standard for detailed information on signal levels and
timings.
Table 6: Pinout of the MDR26 camera connector for the Camera Link interface
Camera Link Cable
Base Configuration
One Channel Link Chip + Camera Control + Serial Communication
Camera ConnectorRight Angle Framegrabber Channel Link Signal
11inner shield
1414inner shield
225X0-
03-32-00525-03DALSA
Page 21
1M28 and 1M75 User’s ManualPRELIMINARY21
Camera Link Cable
Base Configuration
One Channel Link Chip + Camera Control + Serial Communication
Camera ConnectorRight Angle Framegrabber Channel Link Signal
1PWVDD+5V power supply
2PWGNDground
3PWVDD2Not used
3 1
2
DALSA03-32-00525-03
Page 22
22PRELIMINARY1M28 and 1M75 User’s Manual
2.6 Power Supplies
The camera requires a single voltage input (+5V). The camera meets all performance
specifications using standard switching power supplies, although well-regulated linear
supplies provide optimum performance. See section 1.7 Camera Performance
Specifications for current requirements.
When setting up the camera’s power supplies follow these guidelines:
•Protect the camera with a fast-blow fuse between power supply and camera.
•Do not use the shield on a multi-conductor cable for ground.
•Keep leads as short as possible to reduce voltage drop.
WARNING: It is extremely important that you apply the appropriate voltages to your
!
camera. Incorrect voltages will damage the camera. Protect the camera with a fast-blow
fuse between power supply and camera.
2.7 Control Inputs, Camera Link
The camera accepts control inputs through the Camera Link MDR26F connector. All
inputs are optional. The camera ships in free-running mode. Refer to section 3 for more
information on setting frame rates and exposure t i mes and camera modes.
EXSYNC (Triggers Frame Readout)
EXSYNC is an optional input signal that can be used to trigger the line readout rate. This
camera uses the rising edge of EXSYNC to trigger line readout.
IMPORTANT:
IMPORTANT:
IMPORTANT:IMPORTANT:
This camera uses the rising
edge of EXSYNC to trigger
line readout, unlike
previous DALSA cameras,
which used the falling edge.
rising
rising rising
Note: EXSYNC should not be clocked faster than the camera’s specified maximum frame
rate. When the constant frame rate register is enabled (default setting), the camera ignores
the EXSYNC pulse until it has completed reading the last frame out. If the constant frame
rate is disabled, the EXSYNC pulse will start integration even if the camera has not read
out all the pixels in the frame. Refer to se c tion 3.8 Register Descriptions for more
information.
External MCLK
External MCLK is an optional signal used to control the data rate.
PRIN
PRIN is an optional in put signal used for exposure c o n trol (PRIN).
2.8 Data Bus, Camera Link
These signals indicate when data is valid, allowing the data to be clocked from the camera
to your acquisitio n system. These signal s are part of the Camera Link con figuration. Refer
to the DALSA Camera Link Implementation Road Map, available at
http://vfm.dalsa.com, for the standard l o c ation of these signals:
03-32-00525-03DALSA
Page 23
1M28 and 1M75 User’s ManualPRELIMINARY23
R
Clocking SignalIndicates
FVAL (high)Outputting valid frame
LVAL (high)Outputting valid line
DVAL (high)Valid data
STROBE (rising edge)Valid data
Digital Data
The 1M28 digitizes internally to 10 bits and outputs either all 10 bits or the most
significant 8 bits on the Camera Link connector. The 1M75 only output s the most
significant 8 bi ts.
2.9 Timing
The cameras feature many possibilities for flexible timing. In free running mode, the
camera delivers, independently of external signals, data according to the timing settings
in the internal registers. In triggered mode, the camera starts integration after an external
trigger pulse. During integration and readout all further trigger pulses are ignored. The
maximum rate at which the camera accepts external triggers is defined by the frame
timer. The minimum exposure time, for any operating mode, is 560 ns.
Frame Timer
The frame timer is used to fix the frame rate of the camera in free running mode or to set
the maximum rate at which the camera accepts external triggers. In order to obtain the
maximum frame rate, the frame timer must be set as close to the sum of the readout time,
exposure time, an d reset time as possible. This is especially important if the frame rate is
to be increased by windowing. Note: The reset time is small, at 1-2µ s.
Figure 10: External Trigger Mode, Constant Image Data Rate
Exsync
Integration
Frame Tim er
Readout
Figure 11: External Trigger Mode, Variable Image Data Rate
Integration
Readout
Ignored
Exsync
Reset
eset
Integration
Integration
DALSA03-32-00525-03
Page 24
24PRELIMINARY1M28 and 1M75 User’s Manual
I
R
Figure 12: Free Running Mode, Constant Image Data Rate
IntegrationReadoutIntegrationReset
Frame Timer
Figure 13: Free Running Mode, Variable Image Data Rate
Integration
Readout
ntegration
eadout
Global Shutter Timing
With a global shutter, the sensor starts wit h a global reset of all pixels. Then during the
integration time, photo-generated electrons are collected in the pixels. After the exposure
time, the colle c ted electrons are transferre d to a storage node, and sequential readout of
the sensor matrix begins. As a result, all pixels are exposed to light for the same amount
of time, resulting in crisp images that do not suffer from the time displacement artefacts
characteristic of rolling shutter CMOS cameras.
Figure 14: Global Shutter Timing
ResetIntegration
Data
Global shutter
Reset
Frame Readout
Freerunning Mode
The freerunning mode is the factory set timing mode at power up and captures images
without the need for an external control signal. The sensor data is read out after the set
integration time. After the sensor is finished reading out, the sensor resets and the
sequence begins again. The date is output on the rising edge of the pixel clock.
The signals FRAME_VALID (FVAL) and LINE_VALID (LVAL) mask val id image
information. The number of clock pixels after exposure CPRE is defined by the calculation
of the frame time
03-32-00525-03DALSA
Page 25
1M28 and 1M75 User’s ManualPRELIMINARY25
Figure 15: Freerunning Mode
PCLK
Frametimer
Integration
FVAL
LVAL
DATA
CPRE
Line Pause
First Line
Line Pause
Last Line
Line Pause
Note: To set integration mode and parameters, refer to Chapter 3. Software Interface:
Controlling the Camera.
Triggered Mode
In triggered mode, image aquistition begins with the risin g edge of an external tri gger
pulse. The image is read out after the preset exposure time. After readout, the sensor
resets and the camera waits for a new trigger pulse. The data is output on the rising edge
of the pixel clock.
The signals FRAME_VALID (FVAL) and LINE_VALID (LVAL) mask val id image
information. The number of clock pulses after exposure CPRE is defined by the
calculation of the frame time.
Figure 16: Triggered Mode
PCLK
EXSYNC
INTEGRATION
FVAL
LVAL
DATA
EXSYNC is ignored in mode constant image data rate
CPRE
Line Paus e
First Line
Line Paus e
Last Line
Line Paus e
Triggered Mode with External Exposure Control
In triggered mode with external exposure control, sensor control is reset with the rising
edge of an external trigger pulse. The exposure of the image is controlled by the external
signal PRIN. The sensor control is clocked in such a way that that the image exposure
becomes active one clock later. The image is read out after the exposu re time has elapsed.
DALSA03-32-00525-03
Page 26
26PRELIMINARY1M28 and 1M75 User’s Manual
After readout, the sensor returns to the reset state and the camera waits for a new trigger
pulse.
The data is output on the rising edge of the pixel clock. The signals FRAME_VALID
(FVAL) and LINE_VALID (LVAL) mask valid image information . The signal
INTEGRATION indicates the active integration phase of the sensor. The number of clock
pulses after exposure CPRE is defined by the calculation of the frame time.
Figure 17: Trigger Mode with External Exposure Control Timing Diagram
PCLK
EXSYNC
PRIN
INTEGRATION
FVAL
LVAL
DATA
EXSYNC is ignored in mode constant image data rate
CPRE
Line Pause
First Line
Line Pause
Last Line
Triggered Mode with External Edge Triggered
Exposure Control
In triggered mode with external edge exposure control, sensor control is reset with the
rising edge of an eternal trigger pulse, after which exposure of the image begins. The
integration en ds with the rising edg e of the external sig n al PRIN. The sign al s EXSYNC
and PRIN are clocked i n the sensor control in such a way that the internal exposure
control becomes active one clock later.
The image is read out afte r the exposure time has e l apsed. After readout, the se n sor
returns to the rese t state and the camera waits for a new trigger pulse.
Line Pause
The data is output on the rising edge of the pixel clock. The signals FRAME_VALID
(FVAL) and LINE_VALID (LVAL) mask valid image information . The signal
INTEGRATION indicates the active integration phase of the sensor. The number of clock
pulses after exposure CPRE is defined by the calculation of the frame time.
03-32-00525-03DALSA
Page 27
1M28 and 1M75 User’s ManualPRELIMINARY27
Figure 18: Triggered Mode with External Edge Triggered Exposure Control
PCLK
EXSYNC
PRIN
INTEGRATION
FVAL
LVAL
DATA
2.10 Dummy Test Row
For testing the readout chain a row of test pixels has been implement ed on the sensor
chip. The pixels in this row are fixed to a pattern of black and white pixels. This row can
be read out in place of row 1023, at the beginning of the frame. Note: The camera powers
up with the dummy test row turned off. For information on turning the dummy test row
on , refer to Table 14 on page 37.
2.11 LED Status
EXSYNC is ignored in mode constant image data rate
CPRE
Line Pause
First Line
Line Pause
Last Line
Line Pause
A status LED on the backside of the camera provides the following information about the
state of the camera:
•In normal operation mode, the LED shows a green light while valid data is read out.
•At slow frame rates the LED blinks with the FVAL signal.
•At high frame rates t he LED changes to an apparentl y continuous gree n light, with
intensity proportional to the ratio of readout time over frame time. In some
circumstances, (for example, a relativel y long frame time and a v ery small ROI
setting) the pulse of the LED might be too short to be visible in daylight conditions,
even if the camera is working properly.
•If the data read out from the sensor is not within the ADC conversion range (over or
under exposed), the LED ch anges to red while the saturated data is read out.
•The status LED changes t o red while the serial com munication is active .
DALSA03-32-00525-03
Page 28
28PRELIMINARY1M28 and 1M75 User’s Manual
03-32-00525-03DALSA
Page 29
1M28 and 1M75 User’s ManualPRELIMINARY29
3
Software Interface:
Software Interface:
Software Interface:Software Interface:
Controlling the Camera
Controlling the Camera
Controlling the CameraControlling the Camera
3.1 Overview
Many camera features can be controlled through the serial interface. The cam era can also
be used without the serial interface afte r it has been set up correc tly.
To configure the camera through the serial interface, you must use the PFRemote
configuration tool. For details on using the PFRemote, refer to section 3.2 PFRemote
Configuration Tool on page 30.
You can also configure the camera through the PFLIB application programming interface.
For more information, refer to section 3.5 PFLI B API Commands on page 40.
Camera Serial Port Defaults
•8 data bits
•1 start bit
•1 stop bit
•No parity
•9.6Kbps
DALSA03-32-00525-03
Page 30
30PRELIMINARY1M28 and 1M75 User’s Manual
3.2 PFRemote Configuration Tool
The pfremote.exe is a remote configuration tool for the 1M28 and 1M75 cameras. With t he
PFRemote, you can:
•Control basic camera functions, such as gain, frame rates, and exposure times
•Set exposure time
•Set a window of interest
•Set LinLog parameters
•Set camera skimming
•Read and alter camera registers
•Save factory settings to your local computer
Install PFRemote
A 1M28_1M75_PFRemote_Software.zip file is provided on the CD shipped with the
camera. Unzip the 1M28_1M75_PFRemote_Software.zip and copy the files contained in
the zip file to a directory on your computer. Alternately, the latest version of the software
is also available at http://vfm.dalsa.com/docs/docs.asp in the “Software” folder.
i
For further details
on using the
PFRemote and how
to configure the
camera, refer to the
help file.
To open the help
To open the help
To open the helpTo open the help
file:
file:
file:file:
1. On the Help
menu, click Help.
Alternately, you can
press F1.
Opening PFRemote
Before running PFRe mote, make sure that you have installed you r framegrabber and
framegrabber software.
To begin using the PFRemote:
1.If it is not already open, open y o ur framegrabber software with the configuration for
the 1M28 or 1M75 camera.
In the PFRemote folder:
1.Double-click PFRemote.exe.
In the PFRemote dialog box:
2.Right click on the COM port that the camera is connected to and select Open.
Figure 19: Opening a Camera with PFRemote
03-32-00525-03DALSA
Page 31
1M28 and 1M75 User’s ManualPRELIMINARY31
If the camera is properly connected, the camera you are using is displayed:
Figure 20: Camera Name is displayed after a Successful Connection
If the camera is not connected properly, you will receive an error message. Consult
the troubleshooting section in the PFRemote Help for possible solutions.
Saving and Loading EEPROM Settings
IMPORTANT: If you are using PFRemote for the first time, you should dump the EEPROM in order
!
to save the current factory settings. This will enable you to recover the factory settings if they are
accidentally overwritten.
To save the factory settings:
1.Select Tools → Dump EEPROM.
2.Locate where you want to save the HEX file, enter a file name, and click Save.
To recover EEPROM settings:
1.Select Tools → EEPROM Recovery.
2.Locate the HEX file to upload and select Open.
3.After the camera has completed uploading the file, shut down and then restart your
camera.
Configuring the Camera with PFRemote
To configure the camera:
1.In PFRemote, open a connection with the camera. For details on opening a connection
with your camera, see Opening PFRemote on page 30.
2.Right click on the camera name and select Configure.
DALSA03-32-00525-03
Page 32
32PRELIMINARY1M28 and 1M75 User’s Manual
The configuration di alog box opens:
3.Depending on what you want to configure, clic k the appropriate tab and beg in
camera configuration.
The PFRemote Help file explains each dialog box in detail. To access the help file, select
Help → Help, or click F1.
3.3 Modifying Camera Registers
The camera modes and functions are set and stored by in ternal camera registers. The
internal registers are initialized during power-up or by the software. During power-up,
the contents of the EEPROM are copied to the registers, after which, the camera is ready
to use.
The camera is factory-preset to operate in free-running mode with an 8-bit resolution and
a linear response. The corresponding values in each camera may be different from the
factory values due to the fine-tuning of each module.
To avoid problems with modified presets and to ensure the restoration of original
!
values, we recommend that you save the factory presets to an external storage media. To
save and restore the values, use the PFRemote.exe. Refer to Saving and Loading
EEPROM Settings on page 31 for further information on the PFRemote.
We also recommend that you do not alter the custom calibration settings available
through the calibration dialog box (Camera → Calibration). Consult DALSA support at
support@dalsa.com before altering calibration values.
The basic settings of the camera can be modified and stored (in the EEPROM) by the user.
The user can modify all parameters via the PFRemote software interface. After testing the
new parameters, they can be stored in the EEPROM. We recommend that you store your
parameters in the same way as the factory presets.
To modify camera registers:
1.In PFRemote, open a connection with the camera. For details on opening a connection
with your camera, see Opening PFRemote on page 30.
03-32-00525-03DALSA
Page 33
1M28 and 1M75 User’s ManualPRELIMINARY33
2.Select Camera → Registers. The Register s dialog box opens:
3. In the left text boxes, enter the register values you wish to view.
4.Click Reread all.
The current register values are displayed in the right text boxes.
5.In the right text box, change the current value to the new value and click Change.
The register is now set to the new value. To verify the new settings, click Reread all. See
the following section for register descriptions.
3.4 Register Descriptions
Table 9: Sensor control registers, address 0 to 63
REG
Decimal
Value
00R/WData EEPROM
11WLSB address EEPROM
22WMSB address and OP-Code
33CCommand SEND_PROM, content of
44C/RCommand RELOAD of the registers
55R/WStatus registe r 4 internal states
66R/WMode register 0 , adjust camera
77R/WMode register 1 , adjust camera
88WLSB DAC
99WMSB DAC
REG
Hexadecimal
Value
Read (R) /
Write (W)
or Command
(C)
Description
EEPROM
registers 0 – 2 are sent to the
EEPROM
/ Status register has 3 internal state s
modes
modes
DALSA03-32-00525-03
Page 34
34PRELIMINARY1M28 and 1M75 User’s Manual
REG
Decimal
Value
REG
Hexadecimal
Value
Read (R) /
Write (W)
or Command
Description
(C)
10A-Not used
11B-Not used
12CR/WMode register 2 , adjust camera
modes
13DR /WMode register 3 , adjust camera
modes
14ER/WMode register 4 , adjust camera
modes
15FR/WLSB Exposure Time
1610R/WMSB-1 Exposure Time
1711R/WMSB Exposure Time
1812R/WLSB LinLog Time
1913R/WMSB-1 LinLog Time
2014R/WMSB LinLog Time
2115R/WLSB Frame pause
2216R/WMSB-1 Frame pause
2317R/WMSB Frame pause
2418R/WLSB ROI-X0 boundary condition for
Region Of Interest (ROI) Sensor
matrix
2519R/WMSB ROI-X0 boundary condition for
Region Of Interest (ROI) Sensor
matrix
261AR/WLSB ROI-Y0 boundary condition for
Region Of Interest (ROI) Sensor
matrix
271BR/WMSB ROI-Y0 boundary condition for
Region Of Interest (ROI) Sensor
matrix
281CR/WLSB ROI-X1 boundary condition for
Region Of Interest (ROI) Sensor
matrix
291DR/WMSB ROI-X1 boundary condition for
Region Of Interest (ROI) Sensor
matrix
301ER/WLSB ROI-Y1 boundary condition for
Region Of Interest (ROI) Sensor
matrix
311FR/WMSB ROI-Y1 boundary condition for
Region Of Interest (ROI) Sensor
matrix
3220R/WLine pause
3321R/WInterlacing
34-4622-2ENot Used
03-32-00525-03DALSA
Page 35
1M28 and 1M75 User’s ManualPRELIMINARY35
REG
Decimal
Value
REG
Hexadecimal
Value
Read (R) /
Write (W)
or Command
Description
(C)
4730R/WChoice of a RAM bank for
read/write access
4830R/WByte 0 of a 16x8 RAM-Bank
4931R/WByte 1 of a 16x8 RAM-Ban k
5032R/WByte 2 of a 16x8 RAM-Bank
5133R/WByte 3 of a 16x8 RAM-Ban k
5234R/WByte 4 of a 16x8 RAM-Bank
5335R/WByte 5 of a 16x8 RAM-Ban k
5436R/WByte 6 of a 16x8 RAM-Bank
5537R/WByte 7 of a 16x8 RAM-Ban k
5638R/WByte 8 of a 16x8 RAM-Bank
5739R/WByte 9 of a 16x8 RAM-Ban k
583AR/WByte 10 of a 16x8 RAM-Bank
593BR/WByte 11 of a 16x8 R A M-Bank
603CR/WByte 12 o f a 16x8 RAM-Bank
613CR /WByte 13 of a 16x8 RAM-Bank
623ER/WByte 14 of a 16x8 RAM -Bank
633FR/WByte 15 of a 16x8 RAM -Bank
Register address 00H – 03H (EEPROM control)
The first 4 registers are used to communicate with the EEPROM of the camera. See
Appendix C on page 49 for more information on these registe r s.
!
Register address 04H and 05H (Status registers)
The bits of status reg isters 3 (address 04H) and 4 (address 05H) contain status information
of sensor control registers. St atus information of the sensor mo dule can be read from
status register 3. Short-term error messages gene rated during camera operation (such as
asynchronous communications transmission error) are saved in status registe r 4. These
error flags can be reset by writing a logical 1 to the corresponding error bit.
Table 10 and Table 11 show the assignment of the registers.
0Error in the asynchro nous communications transf er
1CANCEL was active, i.e. read from non defined register
2Not used = 0
3Not used = 0
4Not used = 0
5Not used = 0
6Not used = 0
7Not used = 0
Register address 06H and 07H (Mode register 0 and 1)
Mode registers 0 and 1 cont rol the basic functions of t he camera. To ensure proper
operation, these registers are updated first during power-up. The functions of each
individual bit are shown in Tables 12, 13 and 14.
1010 bitDigital gain x 1
1110 bit LFSRInterface test with Linear Feedback Shift
Two user programmable LUT’s
LUT0 factory preset digital gain x 2
LUT1 factory preset digital gain x 4
Register (LFSR)
03-32-00525-03DALSA
Page 37
1M28 and 1M75 User’s ManualPRELIMINARY37
To test the interface reliability, a 10 bit Linear Feedback Shift Register (LFSR) is
implemented. A LFSR is a sequential shift register with combinational feedback logic
around it that causes it to pseudo-randomly cycle through a sequence of binary values. It
is reset at every l ine start. Thus it is possi ble to compare the i ncoming signal with an
internally generated one to count the transmission errors.
0 to 3ReservedDo not change0
4EN_DUMMY= 1 Ł Dummy line on = 0 Ł Dummy l i ne off0
5SKIM_IM AGE0= 1 Ł Skim voltage 0 on, = 0 Ł Skim voltage 0 off 0
6SKIM_IMAGE1= 1 Ł Ski m voltage 1 on, = 0 Ł Skim voltage 1 off 0
7HIGH_GAIN= 1 Ł Gain by 4, = 0 Ł gain by 10
WARNING: Do not modify Mode Register 1 (bits 0 to 3). If corruption occurs, write in default values or contact
!
DALSA. Modifying these values may result in a malfunction or limited functioning of the camera.
You should use the LSFR test pattern for data path integrity. Alternately, you can turn on
the dummy line. With the help of the dummy line, the transfer of data from the camera to
the framegrabber card can be easily tested.
When bits 5 to 7 are switched on (or off), a possible bias re-tuning of the video amplifier is
required. Typically this involves adjustment to the camera’s offset level.
Register address 08H and 09H (Interface DAC)
The registers 08H and 09H are used for the DAC access and for adjust ments to the camera
in the various operatin g modes.
WARNING: Do not modify these values. An incorrect value can cause a malfunction of the camera!
Register address 0AH and 0BH
The registers 0AH and 0BH are NOT used.
Register address 0CH to 0EH (Mode register extended functions)
The registers 12 – 14 contain extended funct ions for camera adjustment.
mode)
2FLIP_IMAGE= 1 Ł output picture upside-down0
3EN_MROI= 1 Ł Activate MROI Mode0
4EN_LINE_HOPPING= 1 Ł Switch on line hopping0
1
DALSA03-32-00525-03
Page 38
38PRELIMINARY1M28 and 1M75 User’s Manual
5EN_ARBITRARY_LH= 1 Ł Switch on line hopping via LUT0
6EN_GLOBAL_RESET= 1 Ł switch on global reset of the sensors1
7EN_MCLK= 1 Ł activate external pixel clock0
0EN_EXPOSURE_PWExternal integration control (Pulse-
Width-Modulation) with EXPOSURE
signal
1EN_EXPOSURE_FTExternal integration control by edge
triggering EXSYNC and EXPOSURE,
integration begins on positive edge of
EXSYNC signal, integration ends on
positive edge of EXPOSURE signal
2EN_SYNC_EXPOSUREExternal triggering and integration
control by EXPOSURE signal,
integration begins on positive edge of
EXPOSURE signal and EXSYNC is on,
integration ends on negative edge of
EXPOSURE Signal
3POLARITY_SYNC_EXPOSURE= 1 Ł SYNC_EXPOSURE acti ve HIGH
i.e. rising edge EXSYNC Signal =
EXSYNC and EXPOSURE on, falling
edge EXSYNC Signal = Exposure off
4EN_SHUTTER
5EN_PRELOAD= 1 Ł Enable line preload1
6EN_LINE_RESET= 1 Ł Enable line reset at the middle of
communications interface to ADC module
1 to 7Not used-0
0
Registers 15-17 (exposure time)
The exposure time is stored in three (15 – 17) 8 bit registers (24 bits total ).
The exposure time is set in increments of the pixel clock. For the 1M28, each increment is
35 ns. For the 1M75, eac h increment is 50 ns. Th e final exposure time can be calculated by
changing the stored binary value to a decimal value and multiplying by the time of the
appropriate increment for your camera.
03-32-00525-03DALSA
Page 39
1M28 and 1M75 User’s ManualPRELIMINARY39
Registers 18-20 (LinLog2)
The LinLog2 time constant is implemente d as a 24 bit register (regist ers 18-20), similar to
the exposure time. The LinLog2 time constant must always be smaller than the exposure
time.
Registers 21-23 (Frame Time)
The frame time is set by registers 21-23. This value is set in incre ments of the pixel cl oc k
(35ns for 1M28 and 50ns for 1M75). The frame time is used to keep the frame rate
constant, independent of the exposure time.
exposure time. Invalid values must be prevented via software.
NOTE: The frame rate sets the maximum
Register 24-31 (ROI = Region Of Interest)
The registers 24-31 are used to define the region of inte rest of the sensor. The coordinates
of the corners of the ROI are written and take effect at the beginning of the next frame.
Invalid values must be prevented via software. Values x
camera. For full resolution:
x
, y0 = 0, 0
0
, y1 = 1023, 1023
x
1
, or y0>y1, are ignored by the
0>x1
Register 32 (Line pause)
This register stores the line pause value. It is also defined in increments of the pixel clock.
Valid line pause values are between 5 and 255. Default is 8.
Register 33: Line Jump (and Pixel Jump)
This register contains the value for the interlace mode. The line counter is incremented by
this value. The lines in between are skipped.
Register 47: RAM Bank Selection
The RAM banks in the FPGA are selected with this register.
Registers 48-63: Data for 16 x 8 RAM Banks
RAM banks have been implemented for internal parameters not used constantly by state
machines.
Frame Rate Calculation
To determine the frame rate, it is easiest to calculate the frame time first. The frame rate is
the inverse of frame time.
The frame time depends on the parameters exposure time, ROI, and line pause.
For the frame time:
DALSA03-32-00525-03
Page 40
40PRELIMINARY1M28 and 1M75 User’s Manual
Frame time> exposure time + read out time
> exposure time + t
> exposure time + t
with the boundary conditions :
([No. of lines]*([No. of pixels]+Line pause)+ Line pause)
U
((ROI_Y1-ROI_Y0)*((ROI_X1-ROI_X0)+Line pause) + Line pause)
U
tU = Time unit in ns (35ns for 1M28 and 12.5ns for 1M75))
Line pause = 5 … 255
ROI_Y1-ROI_Y0 = max. 1024 lines
ROI_X1-ROI_X0 = max. 1024 pixels
3.5 PFLIB API Commands
The PFLIB application programming interface e n ables an application programm er to
control the 1M28 or 1M75 camera’s features without di rect access to the CameraLi n k (or
other) interface. Access to the API, in order to work with most framegrabbers, is done by
a separate COMDLL, which is a low level communication interface to framegrabber’s
RS232 emulation .
The PFLIB API can be used with the following framegrabbers:
•All framegrabbers with a looped in COM port.
•Framegrabbers wit h a full RS232 emulation through the CameraLink or LVDS.
Note that all cameras released after January 1
communication RS232 settings: One start bit, 8 data bits, one stop bit, NO PARITY.
Cameras released prior to 2003 still use EVEN P AR ITY.
A 1M28_1M75_PFRemote_Software.zip file is provided on the floppy disk shipped with
the camera. It co ntains all of the files ne c essary to use the PFLIB API commands,
including documentation. Unzip the 1M28_1M75_PFRemote_Software.zip and copy the
files contained in the zip file to a directory on your computer. Alternately, the latest
version of the software i s al so available at http://vfm.dalsa.com/docs/docs.asp in the
“Software” folder.
st
, 2003 use the followi ng low level
03-32-00525-03DALSA
Page 41
1M28 and 1M75 User’s ManualPRELIMINARY41
4
Optical and Mechanical
Optical and Mechanical
Optical and MechanicalOptical and Mechanical
Considerations
Considerations
ConsiderationsConsiderations
4.1 Mechanical Interface
Figure 21: Camera Dimensions
55
1” 1/32 s t
ø6
30
46
ø6.10
55
51.0
38.1
10.45
0.75
ø3
38.1
32.25
31.7
13.95
ø12
54
3.45
34.65
54
9
DALSA03-32-00525-03
M5ø1/4”
All units in mm.
Page 42
42PRELIMINARY1M28 and 1M75 User’s Manual
4.2 Optical Interface
The cameras come with a built in C-mount lens adapter with the appropriate back focal
distance (17.52 ±0.18mm).
4.3 Compliance
The IM28 and 1M75 have passed the following EMC tests:
•EN 61000-6-3: 2001
•EN 61000-6-2: 2001
03-32-00525-03DALSA
Page 43
1M28 and 1M75 User’s ManualPRELIMINARY43
Appendix A
Appendix A
Appendix AAppendix A
Asynchronous Communications
Asynchronous Communications
Asynchronous CommunicationsAsynchronous Communications
(Camera Link
(Camera Link) Interface
(Camera Link(Camera Link
The asynchronous communications serial communicator interface is part of Camera Link.
(Refer to the Camera Link Specification for more information). This interface is often used
in industrial image processing for controlling camera settings. The cameras from DALSA
have a Camera Link compatible interface. The following communication settings from the
asynchronous serial communications protocol have been chosen for the DALSA camera
series:
) Interface
) Interface) Interface
Baud rate9600
Startbit1
data bits8
ParityNone
Stopbit1
In the idle stat e the leads RX and TX are characterised by a standard H-level. Data
transfer begins w ith a startbit, which h as an L-level. Next, the 8 data bits are transmitted
in the sequence from D0…D7. The parity bit follows the data. In order to separate
subsequent data, a stop bit of H-level is added. The total number of cycles necessary for
data transfer is 11. After the data transfer, signals return to the idle state.
DALSA03-32-00525-03
Page 44
44PRELIMINARY1M28 and 1M75 User’s Manual
03-32-00525-03DALSA
Page 45
1M28 and 1M75 User’s ManualPRELIMINARY45
Appendix B
Appendix B
Appendix BAppendix B
Pseudo Random Number
Pseudo Random Number
Pseudo Random NumberPseudo Random Number
Generator
Generator
GeneratorGenerator
In order to test the i nterface between camera and framegrabber, a 10bi t LFSR (linear
feedback shift register) with a “many-to -one” feedback structure has been implemented
[SMITH00]. For a maximum sequence le ngth of 1023 states, an XOR feedback at tap 2 and
9 was implemented (VHDL implementation, see below). The state 0 does not exist in this
implementation. The sequence starts with the value 1 at the beginning of every line. The
first 256 are shown in Table 16. The result is a pattern of vertical stripes in th e captured
picture. (See Figure 22: Captured picture with active 10bit LFSR.)
Table 18: States 0 – 127 of the pseudo random number generator
Nr. HEX BINARYNr. Hex BINARYNr. HEX BINARYNr. HEX BINARY
Figure 22: Captured picture with active 10bit LFSR
References:
[SMITH00] Douglas J. Smith, “HDL Chip Design”, 7. Auflage 2000 Doone Publications,
Madison, AL, S. 179 - 186
ISBN 0-9651934-3-8
Example: VHDL Code
signal REG: STD_LOGIC_VECTOR (9 downto 0);
signal DATAIN: STD_LOGIC;
SR10R: process (ICLK) -- 10 bit LFSR
begin
if (ICLK'event and ICLK='1') then
if (RESET = '1') then -- reset:shift register is loaded
with 1.
REG <= "0000000001";
else
REG <= REG(8 downto 0) & DATAIN;
end if;
end if;
end process SR10R;
DATAIN <= REG(2) xor REG(9);
LFSR_OUT <= REG;
DALSA03-32-00525-03
Page 48
48PRELIMINARY1M28 and 1M75 User’s Manual
03-32-00525-03DALSA
Page 49
1M28 and 1M75 User’s ManualPRELIMINARY49
Appendix C
Appendix C
Appendix CAppendix C
Accessing the EEPROM
Accessing the EEPROM
Accessing the EEPROMAccessing the EEPROM
The first 4 registers are used to communicate with the configuration EEPROM of the
camera. Register address 0 contains the data, which is written to or read from the
EEPROM. Regist er 1 contains the LSB of the storage address. Register 2 contains the MSB
of the storage address as well as the accessing code (OP code) for the EEPROM. The
configuration EEPROM has a storage capacity of 2 kB. Therefore, the valid storage
addresses are 11 bits (A0 – A10) and range from 000H to 7FFH. After ent ering the data,
the address, and the OP code, the information is transferred to the EEPROM with the
command SEND_PROM (write register address 3). To read bytes from the EEPROM, th e
address and the OP code have to be transferred with the command SEND_PROM to the
EEPROM. The result c an than read from register address 0. An overview of the regist ers
that are used for the EEPR O M programming is shown in Table 19: .
In order to be able to write to the EEPROM, the write protection must be disabled. The
PROM_BUSY and the AUTOLOAD fl ag in the EEPROM register address 4 Bit 1 or Bit 0
must also be checked before writing to the EEPROM. Writing during the BUSY phase
leads to malfunctions of the camera. After writing, the write protection should be enabled
again. This happens automatically when the camera is switched off or loses power.
Table 19: Overview of registers used for the EEPROM programming
0ADDR_MSB_EEPROMAddress bit 8
1ADDR_MSB_EEPROMAddress bit 9 / OP-Code bit 0
2ADDR_LSB_EEPROMAddress bit 10 / OP-Code bit 1
3ADDR_LSB_EEPROMOP-Code bit 2
4ADDR_LSB_EEPROMOP-Code bit 3
5Not used6Not used7Not used-
Table 20 summarizes the sequence of commands for data transmission to the EEPR O M of
the camera. Dependin g on the access function, some steps may not be necessary. To write
to the EEPROM, st eps 1-5 are necessary. To read from the EEPROM, skip step 1, but use
steps 2-7. Special cases are the EEPROM comm ands write enable/disable. In these cases
only the steps 3-5 have to be used. The transmission protocol of the RS232 interface is
defined in Appendix C.
Table 20: Access steps for the EEPROM
StepAction
1Write data byte (D7-D0) in register address 00H, if required for function
2Write LSB address byte (A7-A0) in register address 01H, if required for function
3Write OP-Code und MSB address byte (xxx,OP1, OP2,A10-A8) in register address
02H
4Read status reg ister address 04H, wait for state „not ( PROM_BUSY or
AUTOLOAD)“
5Write in register address 03H Ł command SEND_PROM
6Read status reg ister address 04H, wait for state „not ( PROM_BUSY or
AUTOLOAD)“
7Read databyte (D7-D0) in registe r address 00H, when data are read out from the
EEPROM
The following example shows in detail the sequence of commands for the EEPROM
command write enable.
03-32-00525-03DALSA
Page 51
1M28 and 1M75 User’s ManualPRELIMINARY51
Table 21: Example accessing the EEPROM with the command „WRITE ENABLE“
StepBIN CodeHEX
Comments
Code
1-2-3
xxx0 0xxxOP-Code = 00 (2-bits)
06
xxxx x11xExtended OP co de A10..A8 = 11x (3-bits)
0000 0110
4
00xx xxxxREAD from address
04
xx00 0100Add ress 04H
0000 0100
5
01xx xxxxWrite to address
xx00 0011Address 03H
0100 0011
43
6-7--
x:arbitrary state
These steps are not required
Write OP-Code in register address 02H
Read status register from register address 04H
Command SEND_PROM, Data will be tra nsmitted to the EEPROM
These steps are not required
DALSA03-32-00525-03
Page 52
52PRELIMINARY1M28 and 1M75 User’s Manual
03-32-00525-03DALSA
Page 53
1M28 and 1M75 User’s ManualPRELIMINARY53
Index
Index
IndexIndex
saving settings, 30, 31
AAAA
about DALSA, 2
amplification, 12
application programming
interface, 39
applications, 5
BBBB
backplate, 19
Binder 712, 20
CCCC
camera dimensions, 40
camera highlights, 4
Camera Link, 21, 42