1 Introduction
With the continuous increase in the capacity of generators, the requirements for excitation systems are getting higher and higher. The various types of excitation regulators currently used in China are very advanced, but the manufacturing level of power cabinets is not satisfactory, which is bound to affect the improvement of the overall performance of the excitation system, and thus hinder the improvement of the overall power generation system performance.
At present, domestic excitation power cabinets generally have problems such as incomplete detection functions, backward information transmission technology, control and detection technology. In order to solve this problem, this paper gives a communication method between the intelligent excitation power cabinet and the CAN bus by using a highly integrated single-chip microcomputer C8051F060. This solution has complete detection, control and communication functions.
2 Features of C8051F060 single-chip microcomputer
The C8051FXX series of single-chip microcomputers are single-chip microcomputers launched by the American CYGNAL company that are compatible with the 51 series of single-chip microcomputer cores. Based on my experience with C8051F060, I would like to introduce its new features:
(1) The core adopts a pipeline structure, with a speed of up to 25MIPS (25MHz crystal), which is 10 times faster than ordinary 51 microcontrollers; its instructions
are compatible with the standard series 51 microcontrollers, so it is very easy to master the development process; the JTAG debugging mode of this chip supports in-system, full-speed, non-insertion debugging and programming, and does not occupy on-chip resources.
(2) The chip integrates 64kBFlash, 4352B internal RAM (256+4kB, which can be expanded to 64kB), 59 I/O ports, 2-channel 16-bit 1MSPS programmable gain ADC, 8-channel 10-bit 200kSPS programmable gain ADC, 2-channel 12-bit DAC, 3-channel analog comparator, internal voltage reference, and on-chip power supply monitoring, voltage drop detection and watchdog functions. Due to the high integration of C8051F060, there is no need for external ROM, RAM, AD, DA, watchdog, programmable I/O port and EEPROM (implemented with on-chip Flash), which greatly simplifies the hardware circuit and creates conditions for the construction of a single-chip microcomputer system with C8051F060 as the core, while also improving the reliability of the system.
(3) There are 2 UARTs, 1 SM (compatible with I2C) and 1 SPI integrated on the chip. Most conveniently, C8051F060 integrates a CAN bus controller, which makes the CAN bus have the characteristics of low development cost, strong anti-interference, and suitable for industrial field applications. It can be widely used in various industrial field measurement and control fields with very serious interference environments. C8051F060 only needs to add a CAN bus transceiver circuit to connect to the CAN communication network, which greatly simplifies the design of the communication system and reduces the probability of communication nodes being interfered with.
(4) The programmable 16-bit counter array (PCA) has 6 capture/compare modules and 5 general 16-bit counter/timers, which provides convenience for timers/counters with more measurement and control nodes.
(5) C8051F060 can meet the requirements of most industrial measurement and control nodes, and can form a single-chip microcomputer system with C8051F060 as the core. If equipped with a peripheral measurement unit, it can also form a complete measurement and control node.
3 System structure of intelligent excitation power cabinet
The principle block diagram of the intelligent power cabinet system is shown in Figure 1. The most critical component in the power cabinet is the three-phase full-controlled bridge. The core parameter for controlling this bridge is the trigger angle, which can be sent by the CAN bus through the regulator and sent to the current value to be sent by the local cabinet at the same time. The output current obtained by detection is compared with the given current of the regulator and the PI operation is completed to generate a new fine-tuning trigger angle. The trigger angle forms a trigger pulse through the PCA and then drives the three-phase full-controlled bridge, thereby realizing current sharing between cabinets. At the same time, the temperature inside the cabinet, the on/off status of the thyristor, and the output current value can be sent to the microcontroller through the signal detection module to calculate and analyze each parameter and compare it with the set threshold value. Finally, the measurement results are displayed in real time and an alarm is issued at the same time.
3.1 Digital phase-shift triggering based on PCA module
The working principle of the three-phase thyristor fully controlled bridge and the phase sequence relationship of the trigger pulses of the six thyristors are shown in Figure 2.
[page]
The PCA contains 6 capture/compare modules based on the same 16-bit counter and can be used as a time base. Each module can form 6 modes: positive edge capture, negative edge capture, positive and negative edge capture, software timer, high-speed output, pulse width modulator, etc. This design uses the high-speed output mode. When the PCA counter matches the module's 16-bit capture/compare register, the logic level of the CEX pin of the corresponding module will change and cause a corresponding interrupt.
The trigger signal starts timing from the zero crossing point of the synchronization signal, and the regulator sends the electrical angle value α of the trigger angle, the synchronization signal period value TSYN and the pulse width W to each power cabinet through the CAN network. The synchronization signal sampling circuit is shown in Figure 3. When the synchronization signal crosses zero and generates an interrupt, the PCA counter starts counting, and calculates the corresponding values of α Tα1~Tα6 and the corresponding values of the pulse trailing edge TW1~TW6 according to α, W, TSYN and PCA counting frequency, and then writes Tα1~Tα6 into the 16-bit capture/compare registers of the 6 modules. When the value of the capture register matches the value of the PCA counter, the CEX pin will become a high level to cause the corresponding module to generate an interrupt. At the same time, in the interrupt subroutine, the corresponding TWN is written into the 16-bit capture/compare register. When it matches the PCA counter value, the CEX pin becomes a low level, and one of the channels triggers a single pulse. The 6 single pulses can be combined into 6 double narrow pulses using a gate circuit. The following formula is the calculation method of Tα and TW:
In the formula, N can be 1, 2,... . , 6, TCLK is the counting cycle of the PCA counter.
3.2 Online modification of parameters through on-chip Flash
The address range of 0X0000 to 0X007F of the Flash in C8051F060 can be used for both the on-chip 64kB Flash and the additional 128B sector, which can be achieved by setting the SFLE bit of the PSCTL register. Since the on-chip Flash must be erased before writing, and it should be done in sectors of 512B, the additional 128B sector is more suitable for non-volatile data storage. In the power cabinet, the parameters that usually need to be modified online are P and I of the PI regulator. The following is
a procedure for modifying parameters online using the KEILC statement as an example:
[page]
4 Application of CAN bus in excitation device
CAN bus is one of the main field buses. Due to its low development cost and good anti-interference ability, CAN bus has been widely used in the field of industrial measurement and control [2]. There are many related contents about the basic concepts and interface circuits of CAN bus. This article only introduces how to use C8051F060 to realize CAN bus communication.
4.1 CAN controller structure of C8051F060
Figure 4 shows the internal CAN structure of C8051F060. Since MCU cannot directly access the information RAM, data must be exchanged with the information RAM through the IF register. The information RAM can store 32 frames of information. The IF register is divided into two groups, IF1 and IF2, which are defined as receiving and sending functions respectively. The CommandRequest register of IF can be used to define which frame of the 32 frames of information is accessed, and the CommandMask is used to define which part of a frame of information is transferred to the information RAM.
When the interrupt register IR is 0x0000, it means no interrupt occurs; when it is 0x0001~0x0020, it indicates which frame of the 32 frames of information caused the interrupt, and when it is 0x8000, it indicates that the state change (transmission completion, reception completion, error status, etc.) caused the interrupt.
4.2 CAN communication
The communication initialization process is similar to that of other CAN controllers. Figure 5 shows the block diagram of its transmission, information RAM and IF communication and reception interrupt subroutines.
4.3 Application of CAN bus in intelligent power cabinets
The CAN communication system consists of four nodes, including a regulator and three power cabinets. The power cabinet is completed by C8051F060 for communication, and the regulator is responsible for communication by the network card HT-1302B integrated with CAN protocol. The regulator can send the current value, trigger angle, synchronization signal cycle, pulse width and other parameters of a single cabinet to each power cabinet. The power cabinet feeds back the output current value, conduction monitoring results and temperature of each point in the cabinet to the regulator.
5 Conclusion
Due to the high integration of C8051F060, only a small number of peripheral measurement circuits are needed to form a single-chip system integrating control and communication functions, which can improve the overall reliability of the system. In addition, the C8051F060 core is compatible with the ordinary 51 series, and the instructions are simple and easy to learn, so the system development cycle can be shortened. The communication medium of this system is a shielded twisted pair cable. The maximum communication distance does not exceed 150 meters, and the communication rate can reach 250kbps. The actual operation proves that the communication effect is very good. It can be seen that this control scheme has high integration, simple hardware, reliable operation, and has good promotion value.
[2]Wu Kuanming. CAN Bus Principle and Application System Design[M]. Beijing: Beijing University of Aeronautics and Astronautics Press, 1996.
Previous article:Design of High-speed Serial Output Port of AT89C51 Single-chip Microcomputer
Next article:Touch screen coordinate algorithm in 51 single chip microcomputer system
Recommended ReadingLatest update time:2024-11-16 23:59
- Popular Resources
- Popular amplifiers
- New Energy Vehicle Control System Inspection and Maintenance (Edited by Bao Pili)
- Detailed explanation of big data technology system: principles, architecture and practice (Dong Xicheng)
- Automotive CAN embedded intrusion detection system based on deep learning
- Lightweight FPGA-based IDS-ECU architecture for automotive CAN networks
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- 4-20mA current output design
- How to calculate the inductance of a Helmholtz coil in maxwell3d?
- GD32L233 Early Review
- Discover Schottky diodes in daily life
- [RVB2601 Creative Application Development] Graphical display and simple recognition of sound (work submission)
- TCP protocol requires restarting the circuit board for each connection
- The world is moving towards 5G. Do you think it’s time to switch to a 5G phone?
- F28335 GPIO, timer and SCI
- The value of the key resistor of the transistor voltage amplifier
- EETALK: What products might be reshaped in the 5G era? (Give away 10-100 Chip Coins)