Ethernet has emerged as the most widely used LAN technology and has quickly moved to the forefront of industrial automation control. CPCI bus system slots are limited, and designing a multi-port card based on CPCI bus can save space and meet the real-time and large data transmission requirements of status monitoring and fault diagnosis systems.
1. Module overall design
The module is designed with CPCI parallel bus. Figure 1 shows the overall design block diagram of the module, where four INTEL82551s are connected via PCI bridge expansion bus. Since INTEL82551 has integrated PCI interface, PCI bridge can achieve seamless connection with INTEL82551. J1 and J2 are CPCI interface plug-ins.
2CPCI bus structure module
2.1 Principle and structure
If too many electrical loads or devices are connected to a PCI bus, the bus will not work properly. The problem can be solved by adding one or more additional PCI buses to the system. The only way to expand another PCI bus in the system is to use a PCI-PCI (P2P) bridge for system expansion. A P2P bridge is a special PCI device that can glue the PCI buses in the system together. A P2P bridge connects the master and slave PCI buses in the system. It acts as a load on the upper bus and can drive a bus segment downward by redriving and arbitrating the PCI signals.
Its role is to coordinate data transfer between the two PCI buses, monitor all transactions initiated on the two PCI buses, and decide whether to transfer the transaction through the other PCI bus. When the bridge determines to transfer a transaction on one bus to another bus, the bridge must act as the bus target of the transaction bus and the master device of the destination bus of the transaction. System designers can also install multiple P2P bridges.
2.2 PCI2050B Introduction
According to the characteristics of system integration, TI's PCI2050B bridge is selected here to implement the P2P bridge. PCI2050B is a transparent PCI-PCI bridge that provides a bridge connection between two 32-bit PCI buses with a maximum operating frequency of 66MHz. The bridge supports burst mode transfers, which greatly increases the data throughput. The bus data paths of the bridge work independently. The master and slave buses of the bridge can work in 3.3V or 5V environments respectively, while the core logic of the bridge works at 3.3V to reduce power consumption. The host software operates the bridge through internal registers. The internal registers can be used to obtain the status of the standard PCI and control the master and slave buses. The PCI configuration header of the bridge can only be operated through the master PCI interface. PC-I2050B has 9 slave buses. In addition to providing internal arbitration for each slave bus, it can also provide external arbitration for the system. PCI2050B provides 10 slave-side clock outputs.
2.3 PCI Bridge Design
According to the overall design block diagram of the module, the following aspects should be paid attention to in system design.
2.3.1 Clock Design
Figure 2 is a block diagram of the clock design of PCI2050B.
The main points of the clock design are as follows:
1) PCI2050B has two independent clock domains. The master interface is controlled by the master input clock P_CLK, and the slave interface is controlled by the slave input clock S_CLK. These two clocks are independent of each other, but keep synchronization, and the clock frequency of the slave side cannot be higher than the clock frequency of the master side. The maximum delay between P_CLK and S_CLK shall not exceed 7ns, and S_CLK cannot lead P_CLK.
2) The slave side of PCI2050B has 10 clock outputs S-clkout[9:0], 9 of which can be supplied to the extended PCI slots. To ensure clock output synchronization, the other one must be fed back to the input clock S_CLK of the slave side. Each clock can only drive one load.
3) In order to reduce the signal reflection of the clock, the 9 clock outputs to the expansion slot must be matched with series resistors at the starting end. The resistance value of the matching resistor is related to the characteristic impedance of the circuit board. For a 65Ω transmission line, a 50Ω series matching resistor is selected.
4) In order to reduce the jitter (skew) between these clocks, the 9 clock lines (9 S_clkout) supplied to the expansion slot (or expansion device) must be equal in length to S_CLK. Therefore, the length of the clock line fed back from the S_clkout[9] output to S_CLK should be equal to the total length of the clock line from the clock output pin of PCI2050B to the expansion device. This module expands 4 network ports and uses the 4 output clocks from the PCI2050B. In PCB wiring, these 4 clock lines and the feedback clock line must be equal in length.
2.3.2 Interrupt Design and IDSEL Mapping
PCI2050B supports 9 slave devices. When initializing the configuration space read and write, PCI2050B, as the operation object of the upper-level PCI bus, provides an IDSEL pin for device selection. This pin can be connected to any one of the high 24-bit PCI buses. At the same time, in order to reduce the capacitive load of the address line, a 1kΩ resistor needs to be connected in series on the signal line. This module only extends the primary bus. The IDSEL pin on the PCI2050B master side is directly connected to the IDSEL of the CPCI socket J1. For the PCI device on the secondary bus side (INTEL82551 in this module), its IDSEL pin is connected to any one of the S_AD31S_ADl6 pins of PCI2050B through a 1kΩ resistor. The INT line from the device on the slave side does not pass through the bridge. If the bridge is located on an inserted card, the interrupt line of the slave device is directly connected to the interrupt pin (INTA#~INTD#) of the connector. In this module, PCI2050B is a bridge device, and the interrupt pin of INTEL82551 is directly connected to the interrupt pin of J1. The connection of the interrupt line of all slave devices is bound to the device number (that is, the connection of the IDSEL line), and the corresponding relationship is shown in Table 1. The IDSEL pins of the four INTEL82551s are connected to S_AD28, S-AD29, S_AD30 and S_AD31 respectively, and the corresponding device numbers are 12, 13, 14, and 15. The interrupt pin INT# of the device is connected to INTA#, INTB#, INTC#, and INTD# of J1.
2.3.3 PCI2050B working mode selection
PCI2050B has three working modes to choose from: TICPCI hot-swap mode, power management mode and INTEL21150 compatible mode. The selection pins are MSO and MS1 respectively, and the mode selection definition is shown in Table 2.
According to the needs of CPCI bus application design, the author selected TICPCI hot-swap working mode. When PCI2050B selects TICPCI hot-swap working mode, in order to ensure the normal operation of hot-swap logic, it is required to pull up the HS_SWICH/GPI03 pin and HSENUM pin. At the same time, since the GPI0 pin of PCI2050B is not used and these pins are defined as input pins under default conditions, in order to avoid false triggering, all these pins are pulled up.
3 Ethernet ports
This network card uses 4 INTEL82551, 4 EEPROM93C46 and 4 PE68515 to realize 4-way Ethernet network interface. INTEL82551 is a highly integrated Ethernet controller of Intel. Its main function is to realize the sending and receiving of Ethernet frames. It integrates 10Base-T/100Base-TMAC controller and 10Base-T/100Base-TPHY controller, supports full-duplex or half-duplex transmission of data, supports automatic negotiation, supports 10/100Mb/s transmission rate, and supports flow control mechanism.
3.1Interface design between INTEL82551 and PCI bridge
The CPCI bus signal of each INTEL82551 is connected to the slave side of PCI2050B. It should be noted that the signal IDSEL and INT# correspond one to one according to Table 1. Otherwise, the system cannot drive the module correctly when the module is inserted into the system slot. The circuit connection of 1 device is shown in Figure 3. The IDSEL of the device is connected to S_AD31, and the interrupt INT# of the device is connected to INTD# of J1.
3.2 Intel82551 and transmission medium interface
Four PE68515s and four RJ-45s are used to implement the transmission medium interface. Each interface circuit is connected as shown in Figure 4.
3.3 Network card debugging
After the PCB is assembled, check whether there is any cold soldering in the components and other circuits. Insert the network card into the CPCI chassis slot. You can see the module properties in the system device manager. For example, if IDSEL is connected to AD31, the property is PCISLOT1 (PCI bus N, device 15, function O) (N is the bus number). After configuring the network card with EEUPDATE, the module can send and receive data normally.
4 Conclusion
This four-port module complies with PCI2.2 specification and has been successfully applied to the Windows platform of 3UCPCI chassis. It can be expanded to eight-port CPCI card according to needs. This series is based on CPCI multi-port card and can be widely used in various test equipment, wired communication and other fields.
Previous article:Design of communication protocol for intelligent building monitoring system based on CAN bus
Next article:Design of Intelligent Control System Based on Agent
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- IoT architecture and technology protocols
- Review Weekly Report 20221010: Sipeed GW2A FPGA development board and Renesas ultra-low power MCU RA2L1 are here~
- Why can a Zener diode break down with a reverse current of just a few volts, but a rectifier diode cannot break down with a reverse current of more than 200 volts?
- Semiconductor Recruitment-Shanghai, Shenzhen, Hangzhou
- Things to note when configuring 4G router ports
- Four major reasons for the heating of power modules
- [Erha Image Recognition Artificial Intelligence Vision Sensor] 3. Serial communication with the processor
- (Paid Purchase) SSRP-7.25 Motherboard PCB
- LCR parallel resonance
- How to implement the 0-10V circuit of the inverter and motor speed control interface?