Description
Graph
basic-isi-project
Purpose
This example demonstrates the ISI (Image Sensor Interface) on AT91 microcontrollers.
Requirements
This example can be used on AT91SAM9260-EK, AT91SAM9263-EK, AT91SAM9G20-EK, AT91SAM9XE-EK.
Description
The provided program uses the Image Sensor Interface to connects a CMOS-type image sensor to the processor and provides image capture in various formats.
It does
data conversion, if necessary, before the storage in memory through DMA. The ISI supports color CMOS image sensor and grayscale image sensors with a reduced set of functionalities.
Usage
- Connect the Omnivision captor to the ISI interface.
- On AT91SAM9260-EK, replace R44 and R45 with 2,2KO.
- On AT91SAM9G20-EK, replace R155 and R156 with 2,2KO.
- Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
- Connect a serial cable to the DEBUG port on the evaluation kit. It will most often be labeled "SERIAL DEBUG port".
- Connect the captor to the ISI connector: Typical connection of Omnivision captor:
ISI pin
| OV9655 pin
| ISI pin
| OV9655 pin
|
1 3V3
| DOVDD
| 14 HSYNC
| HREF
|
2 GND
| DGND
| 15 NC
| NC
|
3 VddISI
| AVDD(+diode)
| 16 PCK
| PCLK
|
4 GND
| AGND
| 17 NC
| NC
|
5 CTRL1
| NC
| 18 DATA0
| D2
|
6 CTRL2
| NC
| 19 DATA1
| D3
|
7 SCL
| SIO_C
| 20 DATA2
| D4
|
8 SDA
| SIO_D
| 21 DATA3
| D5
|
9 NC
| NC
| 22 DATA4
| D6
|
| XCLK
| 23 DATA5
| D7
|
11 NC
| NC
| 24 DATA6
| D8
|
12 VSYNC
| VSYNC
| 25 DATA7
| D9
|
13 NC
| NC
|
For the captor: the pin RESET should be high, the pin PWND should be low. The pin DVDD should be to 1,8V. You can add a regulator with the use of the pin DOVDD (3,3V). Add 2 pullup to pins SIO_C and SIO_D.
- On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
- 115200 bauds
- 8 data bits
- No parity
- 1 stop bit
- Hardware flow control (RTS/CTS)
- Start the application. The following traces shall appear on the terminal:
-- Basic ISI Project xxx --
-- AT91xxxxxx-xx
-- Compiled: xxx xx xxxx xx:xx:xx --
Source Size = [640,480] YUV
-- ====================================
-- TEST ISI
-- ====================================
-- 1: Sensor QVGA [320x240]
-- 2: Sensor CIF [352x288]
-- 3: Sensor VGA [640x480]
-- 4: Sensor SXGA [1280x1024]
-- 5: Take a BMP photo in RGB
-- 6: Take a BMP photo in YCbCr
-- 7: end video
-- Enter:
|
Source
The documentation for this Directory was generated from the following files:
main.c