Design and Implementation of Digital Camera Based on TMS320DM270 Platform

The 21st century is the digital age, and the demand for digital consumer products is growing at an alarming rate. Among these products, the proportion of video products is quite large, and it is becoming more and more popular in people's daily life. Among these products, whether it is a digital camera or a mobile phone with camera function, the core part is the audio and video processor. The choice of processor determines the cost, performance and market prospect of such products.

In this design, the author selected TI's TMS320DM270 (DM270) as the core processing chip.

Feasibility Analysis

In order to enable consumers to obtain higher quality digital video and video content, it is aimed at digital cameras, digital video cameras and portable multimedia products with a pixel count of 3 million to 5 million pixels. Texas Instruments has introduced the DSP-based digital media processor DM270, which is based on a multi-processor architecture with a dual-core architecture integrating the DSP C5409 and the 32-bit RISC processor ARM7TDMI, where the ARM7TDMI handles non-imaging functions for use as The main controller of the entire system, the DSP handles audio and video coding, and also integrates an image processing engine (iMX) dedicated to performing motion estimation and compensation in DCT, inverse DCT, and many other processing operations, as well as variable length coding. Decoder (VLCD).

And TI also offers a range of audio and video chips that can be seamlessly connected to the DM270. The TVP5040, TVP5145 can be used as a video A/D converter, and the AIC23 can be used as an audio A/D.

The DM270 also has a dedicated MMC/SD controller for external MMC/SD card expansion, which provides convenience for large-capacity data storage, as well as OSD (on screen display) module, which can directly connect external display devices (LCD, TV). .

The basic system framework of the digital camera based on DM270 is shown in Figure 1.

System framework diagram

Figure 1 System diagram of the scheme

Design

As can be seen from Figure 1, the entire system front end is mainly composed of a video input module, an audio input module, and a processor DM270. The back end can access storage devices and display devices (LCD, TV).

Video module

The video input module structure is shown in Figure 3. The data is collected by the front-end CCD module. After entering the CPU, it is pre-processed, and then the video data is compressed and saved.

Video playback data stream

Figure 3 video playback data stream

Interface between McBSP and AIC23

Figure 4 Interface between McBSP and AIC23

Video capture and input

The DM270 has a CCD programmable control interface that allows easy access to standard CCD (CMOS) data to the system and provides the necessary timing logic for CCD image sensors for progressive and interlaced CCD or CMOS images. The sensor is well supported and can support up to 4096*4096 pixels. In the system developed by the author, the OV7620 CMOS camera is used, and the YUV data is output directly into the system. There is also a hardware 3A module inside the chip to automatically adjust the focus of the lens. In addition, the DM270 has a preview engine that enhances the image of the CCD data, automatic white balance and scaling of various sizes. This greatly reduces the CPU's primary processing pressure on the data.

Video compression

The DM270 supports MPEG4 30fps real-time codec at VGA resolution and supports multiple video compression standards such as JPEG, moTIon-JPEG, H.263 and more. A variety of shooting modes are available for digital video cameras.

As mentioned earlier, the DM270 also has an image coprocessor iMX inside, which can perform DCT, motion estimation (compensation), and interpolation operations at high speed. The VLCD module performs code stream coding. In the platform developed by the author, MPEG4 MPEG4 per second 24 frames, H.263 30 frames per second real-time compression encoding and decoding can be achieved through LCD display.

In addition, in addition to video images, digital photo capture can also be implemented to capture JPEG images. A 2048*1536 JPEG image can be implemented in the platform developed by the author.

Video output display

The digital camera must have a cashback function, while the DM270 has an OSD controller with a VENC (video encode) and D/A conversion module at the back end to generate NTSC or PAL format video signals for output to external display devices. The DM270 will compress the MPGE4 data or JPEG pictures, and the decoded YUV data will realize the recall function through the OSD. Its data flow is shown in Figure 3.

The OSD module has 4 image layers (two YUV video layers and two bitmap layers), which can easily realize layer stacking of layers. The OSD bit layer 0 can be used to display various operation menus as a graphical interface for the user to adjust system parameters.

Trench Cover

Trench Cover,Trench Drain,Drain Cover,Steel Trench Covers

Hunan Furui Mechanical and Electrical Equipment Manufacturing Co., Ltd. , https://www.thresher.nl