1 Introduction Most of the existing TV technology uses interlaced scanning technology, therefore, the digital video signal obtained by directly sampling the entire TV signal, the image information is discontinuous. In modern image processing technology, the gray scale relationship between adjacent pixels in the image is often used for various operations. Therefore, the video signal after A / D conversion must be sorted and formed in the memory. A complete image. EDMA (Enhanced Direct Memory Access) means that in TMS320C6x11 / C64xDSP, without CPU participation, data is transferred between DSP memories. In the system, we first use a piece of FPGA to filter out the non-image information in the digital video signal, and then use EDMA to transfer the processed digital signal from a smaller buffer (such as dual-port RAM) to a larger memory to form a A complete image is processed by the DSP.
2 Set EDMA optional parameter register
2.1 Overview of EDMA transmission parameter group The EDMA transmission parameter group consists of six 32-bit words used to define the EDMA transmission process, including optional parameters, source address, target address, data count, address modification index, link address, etc. Kind of register. The optional parameter register determines the EDMA transmission method. There are 10 control bits in total. The following mainly explains how to set the optional parameter register.
2.2 Set the transmission data unit EDMA to support the storage of 8-bit, 16-bit, and 32-bit data. In this system, 8-bit quantization is used for the gray signal of the image. The external data line of the DSP is 32-bit. The gray values ​​of the 4 pixels are combined into one data unit (element) with a total of 32 bits. Therefore, the ESIZE bit in the register is set to 00b.
2.3 Set the transmission dimension and address update method The digitized video signal is continuously stored in the buffer (source data area), the address is increased (SUM = 01b), can be regarded as one-dimensional (2DS = 0b). In the target storage area, the image data is stored in rows, and the number of columns in each line is the same as the number of dots in each line of the video signal, so that the storage of the target data area becomes a two-dimensional structure (2DD = 1b). The address is also increasing (DUM = 01b). The line-to-line spacing is the number of bytes required to store a line of TV signal, which can be achieved by setting the FRMIDX register. In this way, as long as the starting addresses of the odd field and even field signals are set to differ by one line, a complete image can be obtained in the target storage area. Figure 1 is a schematic diagram of transmission.
2.4. Set EDMA to generate an interrupt after the end of the transmission. When the video signal fills half of the buffer, the FPGA gives the DSP an external interrupt, which can be any of INT4 to INT7, corresponding to the transmission channel No. 4 to 7 of EDMA. One of the number transmission channels. When the trigger signal arrives, EDMA takes the entire block of data (FS = 1), and at the same time, the video signal is continuously written to the other half of the buffer. Divide the buffer into two halves, read data and write data are not in the same half area, to ensure data integrity.
After the end of a transmission, both the source address and the destination address in the transmission parameter group need to be changed. In this system, the source address and the destination address have many different situations, and the transmission parameter group cannot be changed by link (LINK = 0b) Instead of using the interrupt method, the transfer end interrupt bit TCINT is set to 1. What we use in the system is the INT7 event as the EDMA trigger event, and the transfer end code bit TCC is set to 0111b accordingly. In this way, when the transmission of the corresponding channel 7 ends, the EDMA controller will send an interrupt signal called EDMA INT to the CPU.
Usb Common Mode Choke,Magnetic Ring Inductor,Ferrite Core Inductor,Coilcraft Inductor
IHUA INDUSTRIES CO.,LTD. , https://www.ihua-coil.com