Atmel Evaluation Kit AT91SAM9G25-EK AT91SAM9G25-EK Data Sheet

Product codes
AT91SAM9G25-EK
Page of 1102
954
SAM9G25 [DATASHEET]
11032C–ATARM–25-Jan-13
44.4
Functional Description
The Image Sensor Interface (ISI) supports direct connection to the ITU-R BT. 601/656 8-bit mode compliant sensors and
up to 12-bit grayscale sensors. It receives the image data stream from the image sensor on the 12-bit data bus.
This module receives up to 12 bits for data, the horizontal and vertical synchronizations and the pixel clock. The reduced
pin count alternative for synchronization is supported for sensors that embed SAV (start of active video) and EAV (end of
active video) delimiters in the data stream.
The Image Sensor Interface interrupt line is connected to the Advanced Interrupt Controller and can trigger an interrupt at
the beginning of each frame and at the end of a DMA frame transfer. If the SAV/EAV synchronization is used, an interrupt
can be triggered on each delimiter event.
For 8-bit color sensors, the data stream received can be in several possible formats: YCbCr 4:2:2, RGB 8:8:8, RGB 5:6:5
and may be processed before the storage in memory. When the preview DMA channel is configured and enabled, the
preview path is activated and an ‘RGB frame’ is moved to memory. The preview path frame rate is configured with the
FRATE field of the ISI_CFG1 register. When the codec DMA channel is configured and enabled, the codec path is
activated and a ‘YCbCr 4:2:2 frame’ is captured as soon as the ISI_CDC field of the ISI_CTRL register is set to 1.
When the FULL field of the ISI_CFG1 register is set to 1, both preview DMA channel and codec DMA channel can
operate simultaneously. When the FULL field of the ISI_CFG1 register is set to 0, a hardware scheduler checks the
FRATE field. If its value is zero, a preview frame is skipped and a codec frame is moved to memory instead. If its value is
different from zero, at least one free frame slot is available. The scheduler postpones the codec frame to that free
available frame slot.
The data stream may be sent on both preview path and codec path if the bit ISI_CDC in the ISI_CTRL is one. To
optimize the bandwidth, the codec path should be enabled only when a capture is required. 
In grayscale mode, the input data stream is stored in memory without any processing. The 12-bit data, which represent
the grayscale level for the pixel, is stored in memory one or two pixels per word, depending on the GS_MODE bit in the
ISI_CFG2 register. The codec datapath is not available when grayscale image is selected.
A frame rate counter allows users to capture all frames or 1 out of every 2 to 8 frames.
44.4.1 Data Timing
The two data timings using horizontal and vertical synchronization and EAV/SAV sequence synchronization are shown in
.
In the VSYNC/HSYNC synchronization, the valid data is captured with the active edge of the pixel clock (ISI_PCK), after
SFD lines of vertical blanking and SLD pixel clock periods delay programmed in the control register. 
The
 
ITU-RBT.656-4 defines the functional timing for an 8-bit wide interface. 
There are two timing reference signals, one at the beginning of each video data block SAV (0xFF000080) and one at the
end of each video data block EAV(0xFF00009D). Only data sent between EAV and SAV is captured. Horizontal blanking
and vertical blanking are ignored. Use of the SAV and EAV synchronization eliminates the ISI_VSYNC and ISI_HSYNC
signals from the interface, thereby reducing the pin count. In order to retrieve both frame and line synchronization
properly, at least one line of vertical blanking is mandatory.