background image

• Other camera modules can be supported as long as they provide the same signal timing.

5 Function description

5.1 Camera interface engine

There is a dedicated processor in LPC55S69 which can handle the signals of camera.
It reads the data from camera and stores the data in the RAM which is accessed by Arm core. Before using dedicated processor,
some configurations must be made, which includes pin configuration, clock enable, dedicated processor enable, interrupt enable
and so on.

5.2 Camera driver library

The instructions of dedicated processor use the type of machine code. The code implements the function of camera interface
protocol and is released in lib. Some API routines are provided in this application. User can use API routines to initialize the engine
and configure the pins.

5.3 LCD display

The application note uses LCD to display the video stream from camera in real time. The high-speed SPI port is used for LCD
driving port. The max speed on the SPI bus is 50 Mbit/s, so it can display the 320 × 240 resolution LCD up to 30 fps.

5.4 System clock

The camera engine shares the system clock with Arm

®

 core. To speed up the processing time, the system clock must be

configured to 150 MHz. For those below 150 MHz, such as, 96 MHz system clock part, reduce the frequency of pixel clock.

5.5 Clock source of camera

The camera needs a 50 MHz clock source which is provided by CLKOUT signal from MCU.

5.6 I

2

C interface

The camera is configured through I

2

C interface which can be connected with I

2

C peripheral port in the MCU.

5.7 Memory usage

The 320 × 240 resolution picture requires 150 K bytes RAM space. The solution uses the space address from 

0x20010000

to 

0x20035800

.

Additionally, the instruction code of camera engine must run in the RAM for high performance. This solution uses the space
address from 

0x20040000

 to 

0x20043FFF

 to store camera engine code.

5.8 Other supported camera modules

Other camera modules can be supported as long as they provide the same signal timing.

1. The camera module must be configured as RGB565 mode with the timing diagram, as shown in 

Figure 1

.

NXP Semiconductors

Function description

Camera Interface in LPC55(S)xx, Rev. 3, 07 September 2021

Application Note

2 / 9

Summary of Contents for AN12868

Page 1: ...sferred This signal is often a way to indicate that one entire frame is transmitted Pixel Clock PCLK This pixel clock changes on every pixel The application note only focuses on Digital Video Port DVP...

Page 2: ...lay the 320 240 resolution LCD up to 30 fps 5 4 System clock The camera engine shares the system clock with Arm core To speed up the processing time the system clock must be configured to 150 MHz For...

Page 3: ...ution should be configured as QVGA 320 240 6 Pin description 6 1 Connection of interface Camera D0 D1 D2 D3 D4 D5 D6 D7 SIOC SIOD VSYNC HREF PCLK XCLK VCC GND P0 0 P0 1 P0 2 P0 3 P0 4 P0 5 P0 6 P0 7 P...

Page 4: ...presso 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 I2C interface Enable the inter...

Page 5: ...put Camera engine function P0_6 15 Input Camera engine function P0_7 15 Input Camera engine function P0_18 15 Output Camera engine function p0_13 0 Input GPIO as VSYNC input P0_15 0 Input GPIO as Pixe...

Page 6: ...ed in the RAM by camera engine 7 4 6 Reserved 46_IRQHandler Same with other peripheral handler camera engine handler is implemented by Arm core once engine finishes the storage operation In the handle...

Page 7: ...r to 5 V Power only USB port P5 6 The LCD displays the video frame from camera as shown in Figure 4 If the code cannot execute after downloaded one of the reasons is that the MCU goes to ISP mode The...

Page 8: ...lease A Purchasing LCD module and camera module used in this demo You can purchase the LCD board and camera module from the below links 1 https www waveshare com 2 8inch tft touch shield htm 2 http ww...

Page 9: ...cts with security features that best meet rules regulations and standards of the intended application and make the ultimate design decisions regarding its products and is solely responsible for compli...

Reviews: