Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Unit tests for OV7740 driver.

Purpose

This is the unit test application for the OV7740 driver. It consists of test cases for the following functionality:

  • OV7740 color test

Requirements

This package can be used with sam4s_wpir_rd board.

Description

This Units test first sets the PLLB to the system core clock and PLLA to clock PCK0 (used to get data from image sensor). Then UART console is configured to display information about the unit test. Next step is to initialize OV7740 cmos image sensor with a special test configuration. With this configuration the same picture will be received from sensor. This picture is a reference picture with 8 different color (black, blue, red, purple, green, cyan, yellow, white). Finaly this Unit test configures PIO capture, and capture the reference picture data from image sensor and compare it with the reference value to check if the image sensor and PIO capture are operating fine.

Usage

  1. Build the program and download it inside the evaluation board.