Use P0_16 as a
clkout
pin to provide clock source for the camera.
NOTE
6.2 Requirement of interface
• The D0-D7 must be connected to P0.0-P0.7 for byte reading the data.
• SIOC and SIOD must be connected to the I
2
C interface of MCU for configuration.
• The VSYNC, HREF, PCLK must be connected to pins of Port0.
• XCLK must be connected to a clock output pin of MCU.
7 Library and API routine
7.1 Library
The library is named by camera engine lib. It includes the instructions which have to be handled by dedicated processor.
The library can support Keil, MCUXpresso IDE, but not IAR.
7.2 API routine
The main purposes of the API routines include:
• Enable the clock of engine.
• Configure the IO as camera interface function.
• Initial the I
2
C interface.
• Enable the interrupt of engine for telling the Arm core data is ready.
• Initialize and start the engine.
7.3 API routine description
Table 1. API routine
Routine
Description
Reserved46_IRQHandler
Interrupt routine for camera engine
OV7670_Init
Camera module initialization
Camera_Init();
Camera engine initialization
Camera_Start();
Camera engine start running
LCD_Init();
LCD module initialization
LCD_Refresh();
LCD refresh
7.4 Code detail description
NXP Semiconductors
Library and API routine
Camera Interface in LPC55(S)xx, Rev. 3, 07 September 2021
Application Note
4 / 9