The Altera code described in this document is intended for
use in the KSC−1000 Timing Boar. The code is developed
specifically for use with the following system configuration:
Framegrabber BoardNational Instruments Model PCI−1424
The 3F5051 Timing Generator Board features the
KSC−1000 Timing Generator chip. The KSC−1000
provides all of the signals necessary for an imaging system
using Full Frame (KAF) or Interline (KAI) family of image
ALTERA CODE FEATURES/FUNCTIONS
The Altera Programmable Logic Device (PLD) serves as
a state machine, which performs a variety of functions.
Three basic functions are required, common to all CCD
image sensor configurations: serial input steering, AFE
default programming, and KSC−1000 default
programming. In addition, certain other functions specific t o
the KAI−2093 Image Sensor are implemented.
Serial Input Steering
The 3-wire serial interface enters the Timing Board
through the DIO Interface connector, and is routed to the
www.onsemi.com
EVAL BOARD USER’S MANUAL
sensors. It also provides the signals necessary for operation
of two analog front-end (AFE) chips, enabling independent
optimization of the AFE chips for dual channel readout
devices.
PLD. The Altera PLD decodes the addressing of the serial
input, and steers the datastream to the correct device.
The serial input must be formatted so that the Altera PLD
can correctly decode and steer the data to the correct device.
The serial interface can be used to dynamically change the
operating conditions of the AFE or KSC−1000 chips by
reprogramming the appropriate registers. Reprogramming
these registers through the serial interface will have no effect
on the default settings that are automatically programmed
into these devices on power-up or board reset.
The first 3 bits in the datastream are the Device Select bits
DS[2..0], sent MSB first, as shown in Figure 1. The Device
Select bits are decoded as shown in Table 2.
The next bit in the datastream is the Read/Write bit (R/W).
Only writing is supported; therefore this bit is always LOW.
The definition of next four bits in the datastream depends
on the device being addressed with the Device Select bits.
For the KSC−1000 device, they are Register address bits
A[0..3], LSB first. For the AD9845A AFE, they are Register
Address bits A[0..2], LSB first, followed by a Test bit which
is always set LOW.
…
D4
Dn
The remaining bits in the bitstream are Data bits, LSB
first, with as many bits as are required to fill the appropriate
register.
AFE Default Initialization
Upon power up, or when the BOARD_RESET button is
pressed, the PLD programs the registers of the two AFE
chips on the T iming Generator Board to their default settings
via the 3-wire serial interface. See Table 9 for details.
The AD9845A AFE must be reprogrammed on power-up,
as it does not retain register settings when power is removed.
R/WA0A1A2TestD0D1
SLOAD_AFE_x
SDATA
SCLK
Figure 2. AFE Initialization Timing
D2
The data for each AFE register is formatted into two bytes
of data, as shown in Figure . The Read/Write bit is always
low, and the Address bits specify the register being
programmed, as shown in Table 9. Each byte is read into an
8-bit shift register, and is shifted out as a serial stream of
eight bits. Each register in the AFE is programmed in this
fashion until the entire AFE is programmed.
KSC−1000 Default Initialization
Upon power-up, or when the BOARD_RESET button is
pressed, the Altera PLD programs the registers of the
KSC−1000 chip on the AFE Timing Generator Board to
their default settings via the 3-wire serial interface.
D3
D4
D5D6D7D8D9
D10
The default setti ngs are selected by the user through the PLD
inputs SW[7..0] and DIO[15..0] (See Table 10 through
Table24 for details). The KSC−1000 must be
reprogrammed on power-up, as it does not retain register
settings when power is removed.
The KSC−1000 default settings automatically
programmed by the PLD allow the Evaluation Board Kit
user to operate the CCD image sensor with minimal
intervention and no programming. The default settings are
chosen to comply with the CCD device specification (See
References
). The registers, line tables and frame tables
described in this document also serve as examples for those
who wish to create their own KSC−1000 timing.
http://onsemi.com
2
EVBUM2277/D
R/WA0A1A2A3D0D1
SLOAD_TG
SDATA
SCLK
Figure 3. KSC−1000 Initialization Timing
D2
The data for each KSC−1000 register is formatted into
bytes of data, as shown in Figure 3. The Read/Write bit is
always low, and the Address bits specify the register being
programmed, as shown in Table 3. Each byte is read into an
8-bit shift register, and is shifted out of the PLD as a serial
stream of eight bits. The last byte of data sent to a particular
register may need to be padded with extra “dummy” bits;
the SLOAD_TG signal is brought HIGH at the appropriate
time so that the correct number of bits are streamed into each
register, and the extra bits are ignored. Each register in the
KSC−1000 is programmed in this fashion until the entire
device is programmed.
PLD State Machine
The Altera PLD contains a State Machine that parallels
the operation of the KSC−1000. The PLD controls the
KSC−1000 through the VD_TG output, and monitors
several of the KSC−1000 outputs, enabling it to track and
control the operation of the Timing Generator.
Remote Board Reset
The DIO14 input is used as a remote Board Reset control
line. The Altera PLD monitors this input, and when DIO14
goes HIGH, the ARSTZ (active low) output to the
KSC−1000 is asserted, disabling and clearing the timing
generator. When DIO14 goes LOW, the ARSTZ output is
de-asserted, and the Power-up/Board Reset initialization
sequence is executed. This allows programmable control of
the timing sequences to change the Electronic Shutter
position, for example.
Integration Clock
The Altera PLD uses the System Clock and an internal
counter to generate a 1 . 0ms-period clock. This clock is used
to generate an internal delay after power-up or Board Reset.
It may also be used to control precise integration times for
the image sensor.
Output Channel Control
PLD input SW0 is used to select one of the supported
operation modes: Full Field Single Output, and Full Field
Dual Output. When making a change to the switch settings,
the user must initiate a Board Reset for the change to take
http://onsemi.com
3
EVBUM2277/D
effect, either by pressing the BOARD_RESET button (S1)
on the Timing Board, or by setting and resetting the Remote
Reset (DIO14) input.
Binning Control
PLD input SW2 is used to select between 2×2 Binning
Single Output, and normal operation (no binning). When
making a change to the switch settings, the user must initiate
Integration & Electronic Shutter Control
In the Full Field Timing Modes, PLD inputs DIO[11..7]
may be used to select the integration time. See T able 25 for
a Board Reset for the change to take effect, either by pressing
the BOARD_RESET button (S1) on the Timing Board, or
by setting and resetting the Remote Reset (DIO14) input.
timing details. In general, when making a change to the
DIO[11..7] settings, the user must initiate a Board Reset for
the change to take effect, either by pressing the
BOARD_RESET button (S1) on the Timing Board, or by
setting and resetting the Remote Reset (DIO14) input.
Video Mux Switch
The PLD input SW6 controls the Video Mux Switch,
which steers either CCD output VoutL or VoutR to the
auxiliary video output connector J1.
ALTERA CODE I/O
Inputs
The Altera PLD has multiple inputs that may be used to
control certain functions. The inputs include: user selectable
switches SW[7..0] on the Timing Board; remote digital
inputs DIO[15..0] and a 3-wire serial interface through
Timing Board connector J7; Timing Board signals;
and various outputs from the KSC−1000 Timing Generator.
Table 4. ALTERA INPUTS
Symbol
POWER_ON_DELAYThe Rising Edge of this Signal Clears and Re-initializes the PLD
SYSTEM_CLK40 MHz Clock, 2X the Desired Pixel Clock Rate
PIXCLKNI1424 20 MHz Pixel Rate Clock from the KSC1000TG (Not Used)
SW0HIGH = Dual Output, Full Image, LOW = Single Output, Full Image
SW1(Not Used, Must be LOW)
SW2Binning Mode: HIGH = 2 x 2 Binning, Single Output, LOW = No Binning
SW3(Not Used)
SW4(Not Used)
SW5(Not Used)
SW6Video Mux Switch Control: HIGH = VoutR, LOW = VoutL
SW7(Not Used)
SLOAD_INPUT3-wire Serial Interface LOAD Signal Input
SDATA_INPUT3-wire Serial Interface DATA Signal Input
SCLOCK_INPUT3-wire Serial Interface CLOCK Signal Input
LINE_VALIDUsed to Monitor KSC−1000
FRAME_VALIDUsed to Monitor KSC−1000
AUX_SHUT(Not Used for KAI−2093 Operation)
INTG_STARTUsed to Monitor KSC−1000
The KSC−1000 outputs are monitored by the PLD to control
auxiliary timing functions, and keep the KSC−1000 and
Altera PLD synchronized. The remote digital inputs
DIO[15..0] are optional, and are not required for KAI−2093
operation, but may be used to control integration time and
remote triggering.
Description
http://onsemi.com
4
EVBUM2277/D
Outputs
The Altera PLD outputs include: the 3-wire serial
interface; control signals to the KSC−1000;
the INTEGRATE signal used for external monitoring and
Table 5. ALTERA OUTPUTS
Symbol
PLD_OUT0KAI−2093 Video MUX Control
PLD_OUT1(Not Used for KAI−2093 Operation)
PLD_OUT2(Not Used for KAI−2093 Operation)
GIO[2..0](Not Used for KAI−2093 Operation)
SLOAD_AFE_1Serial Load Enable, Ch1 AD9845A AFE
SLOAD_AFE_2Serial Load Enable, Ch2 AD9845A AFE
SLOAD_TGSerial Load Enable, KSC−1000
SDATA3-wire Serial Interface DATA Signal Output
SCLOCK3-wire Serial Interface CLOCK Signal Output
INTEGRATEHigh During CCD Integration Time
HD_TG(Not Used for KAI−2093 Operation)
VD_TGControl Signal to KSC−1000
ARSTZAsynchronous Reset to KSC−1000 (from DIO14)
synchronization; the PLD[2..0] signals which are auxiliary
Imager Board control bits; and the GIO[2..0] bits which are
used for PLD monitoring and testing.
Description
System Timing Conditions
Table 6. SYSTEM TIMING
DescriptionSymbolTimeNotes
System Clock PeriodT
Unit Integration TimeU
Power Stable DelayT
Default Serial Load TimeT
Integration TimeT
CCD Timing Conditions
Table 7. CCD TIMING
Description
H1, H2, RESET PeriodT
VCCD DelayT
VCCD Transfer TimeT
HCCD DelayT
Vertical Transfer PeriodV
Horizontal PixelsH
Vertical PixelsV
Line Transfer TimeT
KAI−2093 TIMING CONDITIONS
sys
int
pwr
sload
int
Pixel
SymbolTime
pix
VD
VCCD
HD
period
PIX
PIX
L
50.0 ns120 MHz Clocking of H1, H2, RESET
50.0 ns1Delay after Hclks Stop
1.75 ms
1.55 ms
3.35 ms
100.80 ms
12201214 CCD Lines + 6 Overclock Lines
104.15 ms
Counts
35V2 Rising Edge to V2 Falling Edge
31Delay before Hclks Resume
67V
20161992 CCD Pixels + 24 Overclock Pixels
2083TL = Vperiod + HPIX
25.0 ns40 MHz System Clock
1.0 msGenerated by PLD
100 msTypical
2.06 msTypical
Operating Mode Dependent
Notes
= T
period
VD
+ T
VCCD
+T
HD
http://onsemi.com
5
Table 7. CCD TIMING (continued)
DescriptionNotes
VCCS Pedestal TimeT
Photodiode Transfer TimeTV
Photodiode DelayT
Photodiode Frame DelayT
Photodiode Transfer PeriodT3PT
Shutter Pulse SetupT
Shutter Pulse TimeT
Shutter Pulse DelayT
PCI−1424 Timing Conditions
Table 8. PCI−1424 TIMING
DescriptionSymbolTime
PIX PeriodT
FRAME TimeT
3P
3rd
3D
3FD
EL
S
SD
PIX
FRAME
EVBUM2277/D
Pixel
TimeSymbol
25.05 ms
12.30 ms
20.00 ms
85.50 ms
142.85 ms
1.50 ms
10.0 ms
1.50 ms
50.0 ns120 MHz Clocking of DATACLK Sync Signal
127.2 ms2,544,117T
Counts
501
246V2 3rd Level
400
1710Delay before 1st Line Transfer
2857T
30
200
30
Pixel
Counts
FRAME
3PT
= T
= T3P + T
* ((V
PIX
V3rd
Notes
period
+ T3D + T
+ H
PIX
) * V
3FD
PIX
+ T
3PT
)
MODES OF OPERATION
The following modes of operation are available to the
user:
Electronic Shutter Modes
The Evaluation Board electronic shutter circuitry
provides a method of precisely controlling the image
exposure time without any mechanical components. Charge
may be cleared from the CCD photodiodes at some time
during the readout of the previous frame. This allows
integration times of less than one frame time, to compensate
for high light exposures that would otherwise saturate the
CCD.
In Free-Running Mode, the default integration time can be
set from 1× to 1/8× frame time via the digital inputs
DIO[11..7] (See Table 14 and Table 25). When changing the
POWER-ON/BOARD RESET INITIALIZATION
When the board is powered up, the Board Reset button is
pressed, or the Remote Rest (DIO14) is toggled, the Altera
PLD is internally reset. When this occurs, state machines in
the PLD will first serially load the initial default values into
the AFE registers, then will load the KSC−1000 frame
tables, line tables, and registers.
Upon completion, the KSC−1000 will be ready to proceed
according to its programmed configuration. In the
background, the Altera PLD monitors the activity of the
integration time, the user must initiate a Board Reset for the
change to take effect, either by pressing the
BOARD_RESET button (S1) on the Timing Board, or by
setting and resetting the Remote Reset (DIO14) input.
Black Clamp Mode
One of the features of the AD9845A AFE chip is an
optical black clamp. The black clamp (CLPOB) is asserted
during the CCD’ s dark pixels and is used to remove residual
offsets in the signal chain, and to track low frequency
variations in the CCD’s black level. The location of these
pulses is fixed in the default KSC−1000 settings, but can be
adjusted dynamically through the 3-wire serial interface.
The default settings are shown in Table 11.
3-wire Serial Interface, and monitors and interacts with the
KSC−1000.
AFE Register Default Settings
On power-up or board reset, the AFE registers are
programmed to the default levels shown in T able 9. See the
AD9845A specifications (References
) for details of the
AFE registers.
http://onsemi.com
6
EVBUM2277/D
Table 9. DEFAULT AD9845A AFE REGISTER PROGRAMMING
Register
Address
0Operation128
1VGA Gain
2Clamp96The Output of the AD9845A will be Clamped to Code 96 during the CLPOB Period
3Control8CDS Gain Enabled
4, 5, 6, 7PXGA Gain43Corresponds to a PXGA Stage Gain of 0.0 dB
Description
(KAI−2093)
Value
(decimal)
340Corresponds to a VGA Stage Gain of 9.9 dB
Notes
KSC−1000 Timing Generator Default Settings
On power-up or board reset, The KSC−1000 is
programmed to the default settings as detailed in Table 10
through Table 24. See the KSC−1000 Device Specification
(References
) for details of the KSC−1000 registers.
Register 0: Frame Table Pointer
Register 0 contains the Frame Table Pointer, which
instructs the KSC−1000 to perform the timing sequence
defined in that table. Frame Table 0 is used for Free-Running
Single Channel and Dual Channel modes, and Frame
Table 1 is used for Single Channel 2×2 Binning mode.
The default setting depends on the position of SW2.
The default settings written to Register 1 depend on the
position of SW0 on the Timing Board, used to select
between 1-channel and 2-channel operation.
Table 11. REGISTER 1 DEFAULT SETTING
Register Entry
Pixels Per Line[0..12]20161008
Line Valid Pixel Start[0..12]99
Line Valid Pixel Quadrature Start[0..1]00
Line Valid Pixel End[0..12]20041007
CLPOB1_Pix_Start[0..12]19821000
CLPOB1_Pix_End[0..12]19921004
CLPOB2_Pix_Start[0..12]00
CLPOB2_Pix_End[0..12]00
CLPDM1_Pix_Start[0..12]622
CLPDM1_Pix_End[0..12]1630
CLPDM2_Pix_Start[0..12]00
CLPDM2_Pix_End[0..12]00
PBLK_Pix_Start[0..12]20021001
PBLK_Pix_End[0..12]11
RG_Enable11
H6_Enable00
H4_Enable11
H5_ Enable00
SH2_Enable11
SH4_Enable11
Data (1-channel)Data (2-channel)
http://onsemi.com
7
EVBUM2277/D
Table 11. REGISTER 1 DEFAULT SETTING (continued)
Register EntryData (2-channel)Data (1-channel)
DATACLK1_Enable11
DATACLK2_Enable11
PIXCLK_Enable11
H3_Enable11
H1_Enable11
H2_Enable11
SH1_Enable11
SH3_Enable11
H6 24 mA Output Enable00
H4 24 mA Output Enable00
H5 24 mA Output Enable00
RG 24 mA Output Enable00
SH2 24 mA Output Enable00
SH4 24 mA Output Enable00
DATACLK1 24 mA Output Enable00
DATACLK2 24 mA Output Enable00
H3 24 mA Output Enable00
H1 24 mA Output Enable00
H2 24 mA Output Enable00
SH1 24 mA Output Enable00
SH3 24 mA Output Enable00
DLL Frequency Range Select88
Register 2: General Control
Register 2 controls the Power Management and
Operation state of the KSC−1000. The Low Power Mode is
not used on the KAI−2093, so this bit is always LOW.
The Memory Table Mod e b i t i s u s e d t o halt execution of the
KSC−1000 timing sequences and to enable programming of
Table 12. REGISTER 2 SETTINGS
Register EntryProgram ModeExecution Mode
Low Power Enable00
Memory Table Mode01
Register 3: INTG_START Setup
The default settings written to Register 3 establish the
setup, pulsewidth, and hold timing of the Electronic Shutter
pulse. The Shutter Pulse may occur on a particular line, as
controlled by Register 4, or may be asserted by setting the
Table 13. REGISTER 3 DEFAULT SETTING
Register EntryData
Electronic Shutter Setup Clocks[0..9]30
Electronic Shutter Pulse Width[0..9]200
Electronic Shutter Hold Clocks[0..9]30
the registers. The KSC−1000 Initialization sequence begins
with setting the Memory Table Mode bit in Register 2 to
Program Mode, and ends by setting the bit to Execution
Mode. See the KSC−1000 Device Specification
(References
) for more details.
“Force INTG_STRT ” bit in the Frame Table (Register 8). In
either case, the Electronic Shutter Pulse occurs before the
vertical clocking interval of the Frame Table entry
(Figure 12).
http://onsemi.com
8
Loading...
+ 17 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.