Application of CPLD in TMS320F2812 System

Publisher:恬淡岁月Latest update time:2011-06-16 Keywords:CPLD  TMS320F2812 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1 Introduction

TMS320F2812 is the latest generation of C2000 family launched by Texas Instruments. The advanced internal and peripheral structures make this processor mainly used for large storage device management and high-performance control occasions. In the application system composed of F2812, some logic control circuits need to be designed to ensure the normal and orderly operation of the system. Here, we use CPLD to design the decoding and logic control of the peripheral circuit to make the DSP system miniaturized, integrated and highly reliable.

2 Application of CPLD in TMS320F2812 System

2.1 Introduction to TMS320F2812

TMS320F2812 digital signal processor is a high-performance fixed-point chip developed on the basis of F24X. It can run code programs developed by 24x, and F2812 uses 32-bit operation to greatly improve the processing capability. Its main features are as follows:

Using high-performance static CMOS technology, the main frequency can operate at 150 MHZ (clock cycle can reach 6.67ns);

High-performance 32-bit CPU capable of 16-bit x 16-bit and 32-bit x 32-bit multiplication and accumulation operations;

On-chip large-capacity memory, 128K×16 bits of Flash and 18K×16 bits of data/program memory;

High-speed peripheral interface, expandable memory up to 1.5 M×16 bit;

3 32-bit CPU timers, of which CPU timer 1 and CPU timer 2 are reserved for real-time operating system OS. CPU timer 0 is available for users to use as an independent, global timer interrupt control;

12-bit ADC pipeline conversion time is as low as 60 ns, single conversion is 200 ns; two time manager trigger functions can be selected;

Improved eCAN 2.0B interface module;

Multiple serial communication interfaces (2 UARTs, 1 SPI and 1 MCBSP);

High performance and low power consumption, using 1.8V core voltage and 3.3V peripheral interface voltage;

2.2 Hardware Structure Introduction

We use Alter's EPM7064S chip to complete internal logic management and bus interface work. The chip uses flash memory technology (FastFLASH) and has low power consumption. The number of macro units reaches 64, which fully meets the logic requirements of the design. The pin-to-pin delay is 4ns, and the counter frequency can reach 151MHZ. Its output voltage is 3.3V or 5V, and different output voltages can be selected by setting the VCCIO pin. The I/O pin can accept mixed voltage inputs of 5V, 3.3V and 2.5V. In multi-power mixed systems, this feature is very useful and can save a lot of level converters.

The TMS320F2812 application system needs to expand some necessary circuits, including RAM and EEROM to support the internal program running, as well as D/A conversion circuits, etc. The system structure block diagram is shown in Figure 1:

System structure diagram

[page]

2.2.1 Application of Digital-to-Analog Converters

In TMS320F2812, off-chip expansion is achieved through the peripheral interface XINTF in TMS320F2812.

It is similar to the external interface of C240X, but also has some improvements:

(1) In C240X, program storage space, data storage space and I/O space are mapped at the same address (0000~FFFF), and access to them is distinguished by control lines (DS, PS, IS); in F2812, the external memory interface is divided into 5 fixed memory map areas, which can address 1MB of off-chip memory space with independent addresses and no control lines (DS, PS, IS).

(2) Each XINTF area of ​​F2812 has a chip select signal. Among them, the chip select signals of some areas are internally "ANDed" together to form a shared chip select, such as XZCS0 and XZCS1 share a chip select signal XZCS0AND1, and XZCS6 and XZCS7 share a chip select signal XZCS6AND7. In this way, the same memory can be connected to two areas or we can use external decoding logic to distinguish the two areas.

(3) Each of the five fixed memory image areas can also specify the number of wait states, the setup time, activation time and hold time of the selection signal. These features make the interface disconnected from the external memory and peripherals, and can be flexibly and independently expanded externally. In this design, except for the LCD display module and keyboard, all external expansion registers and memories are mapped in the decoding space of XINTFZONE 2 (0x080000~0x0FFFFF). We used DAC7625 as the digital-to-analog conversion chip, which is a 4-channel 12-bit double-buffered DAC chip, and the operating voltage can be +5V or -5V~+5V analog voltage.

The output voltage is a DC voltage of 0 to 3.3V. The functional block diagram is shown in Figure 2:

Functional Block Diagram

Among them, the LDAC pin in the DAC7625 chip is the loading DAC pin. When it is low, all registers are transparent, and the data in the holding register is sent to the converter output channel; the A1 and A0 pins are register selection pins. The CPLD selects different A1 and A0 combinations according to the address bus decoding, thereby mapping the holding registers of channels 1 to 4 to the address space of 0xC0000~0xC0003. In addition, we also designed a transfer register (DACTLR) with a mapping address of 0xC0004. All data bits of this register are invalid and cannot be read or written. Any read or write operation on this register will generate an internal signal, set the LDAC pin to a low level, and start the converter. Among them, the entire decoding logic is completed by the CPLD chip. The following is a partial VHDL language description of the decoding logic:

program

2.2.2 Application of Serial Non-Volatile Memory X25650 Chip

Here, we expand the SPIOER register to control the SPI interface between DSP and X25650. Its function is to connect or disconnect the connection between DSP and X25625. When the SPI interface of F2812 needs to be connected to the SPI515 (SPI interface type) simulator to realize simulation operation, the operation of SPI to X25650 can be shielded through the register. The address of the SPIOER control register is 0xC0002, and the external bus is used to read and write it. Its use:

SPIOE bit: When the SPIOE bit is "1", the DSP is connected to each pin of X25650; when it is "0", each pin is disconnected. At this time, the SPI pin on the DSP is in high impedance state and can be connected to other devices. It is "1" when power-on reset. This register is composed of CPLD internal programming.

In F2812, the SPI module supports 125 different baud rates. By writing the set value to the baud rate register (SPIBRR), it can communicate with peripherals with different speed requirements. The baud rate settings are as follows:

Baud rate setting

When SPIBRR = "3-127", SPI baud rate = LSPCLK/(SPIBRR+1). When SPIBRR = 0, 1, 2, SPI baud rate = LSPCLK/4 Here: LSPCLK = low speed peripheral clock frequency of the device. SPIBRR = content of SPIBRR in the master SPI device.

Here, by configuring the contents of the low-speed peripheral clock prescaler register (LOSPCP) and the SPI baud rate register (SPIBRR), the DSP baud rate reaches 5MHZ, meeting the requirements of X25650.

2.2.3 Application of Character LCD

This system uses the character LCD MDL(S)16263 as a slow display device of DSP, mapped in the XZCS6 area. The module has 11 signal lines. RS is the register selection. Low level selects the instruction register and high level selects the data register. R/W is the read/write control terminal. Low level writes the display module and high level reads the display module. E is the input enable signal line (data read/write operation enable signal), which is valid at high level. DB0~DB7 are data lines.

However, compared with DSP, LCD is a slow device. When designing the device, we need to consider the timing matching problem and add appropriate waiting states. The minimum read and write cycle Tcyc of the LCD module is 1000ns, the minimum pulse width Pw is 450ns, and the minimum read and write operation data retention time is 10ns. The read and write access of the XINTF peripheral interface of F2812 is the maximum value by default, which is 26 XTIMCLK cycles (XTIMCLK defaults to SYSCLK/2, 13ns.), that is, the maximum read and write cycle is 346ns, of which the default setting phase of read or write access is 6 XTIMCLK cycles, the default activation phase is 14 XTIMCLK cycles, and the default tracking phase is 6 XTIMCLK cycles. Therefore, the read and write cycles need to add waiting states.

When the XREADY pin of the DSP is sampled as low, the activation phase will extend one XTIMCLK cycle, and XREADY will be sampled again during the next XTIMCLK cycle. This process is sampled until XREADY is sampled as high, and the access is completed normally. Here, we use the CPLD chip to set the XREADY signal of the DSP to a low level and maintain it for 50 XTIMCLK cycles, thereby generating a suitable wait state. As shown in Figure 3:

Application of Character LCD

3 Conclusion

The development of this system adopts the structure of DSP+CPLD, which combines the strong data computing ability of DSP with the high integration and hardware reprogrammability of CPLD, making the design process of the system more reasonable, compact and simplified. Moreover, after expansion, the system can be applied to various occasions of industrial control and has certain practical reference value.

Keywords:CPLD  TMS320F2812 Reference address:Application of CPLD in TMS320F2812 System

Previous article:FPGA implementation of timing synchronization in OFDM underwater acoustic communication system
Next article:Implementation of multi-tone parallel modulation based on DSP platform

Recommended ReadingLatest update time:2024-11-16 19:38

Embedded VGA Display System Based on FPGA/CPLD
VGA (Video Graphics Array) is a video transmission standard introduced by IBM in 1987 along with the PS/2 machine. It has the advantages of high resolution, fast display rate, and rich colors, and has been widely used in the field of color displays. At present, the application of VGA technology is still mainly
[Embedded]
Embedded VGA Display System Based on FPGA/CPLD
S51 and CPLD universal download line, S51 programmer
There are many types of download cables, and the most commonly used ones are ByteBlaster, ByteBlaster II, ByteBIasterMV, ATMEL ISP cables, etc. Among them, the ByteBlaster line supports the most EDA development download tools, which can be used for downloading 51, CPLD, FPGA and peripheral device simulation of program
[Microcontroller]
S51 and CPLD universal download line, S51 programmer
The Design Principle of PCI Interface of Single Chip Computer Based on CPLD
    1 PCI interface design principle     1.1 Introduction to PCI Bus Protocol     Here we only discuss the PCI bus 2.0 protocol. Other protocols are just some extensions based on 2.0. As far as the communication between the microcontroller and the PCI device is concerned, it is of little significance. The PCI bus is a
[Microcontroller]
MIDI Music Player Based on CPLD
Abstract: This music player is designed based on the basic principle of MIDI music, combined with EDA technology, and uses ALTERA's programmable logic device (CPLD) EPF10LC84-4 as the control core. This article mainly describes how to use VHDL language to design a MIDI music generator chip, and then add necessary
[Embedded]
MIDI Music Player Based on CPLD
Substation Integrated Automation System Based on TMS320F2812
introduction From the perspective of the structure of the system, the fully distributed design concept of the substation integrated automation system is increasingly showing its superiority. Due to the large amount of data and information in the substation and the high real-time requirements, high-performance D
[Embedded]
Substation Integrated Automation System Based on TMS320F2812
Design of manageable SAS hard disk backplane based on CPLD
SAS hard disk backplane is used in server products and plays the role of "value-added cable". It is called "value-added cable" because of its connectivity to hard disks and its additional functions compared to a single cable, such as hard disk working status indication, hot swapping of hard disks, etc. The hard disk ba
[Microcontroller]
Design of manageable SAS hard disk backplane based on CPLD
Design of multiplexer using AlteraFLEX10K programmable logic device
    Abstract: Taking the design of a three-way fixed time division multiplexer as an example, this article introduces the top-down design method of Altera's FLEX10K embedded programmable logic device, and gives the FLEX 10K embedded programmable device in Mux+plus Ⅱ Simulation implementation of multi-channel time div
[Industrial Control]
Design of automobile anti-lock braking system based on MC9S12DP256B
1 Introduction With the increase of vehicle speed and road traffic density, the requirements for vehicle driving safety performance are getting higher and higher. The anti-lock braking system (ABS) of automobiles came into being. It is a mechatronic system based on the traditional braking system and adopts
[Automotive Electronics]
Design of automobile anti-lock braking system based on MC9S12DP256B
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号