Intelligent power cabinet based on single chip microcomputer C8051F060

Publisher:和谐的24号Latest update time:2012-03-16 Source: 国外电子元器件 Keywords:C8051F060 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.

References
[1]CYGNAL Company. C8051F06X Data Sheet. 2002.
[2]Wu Kuanming. CAN Bus Principle and Application System Design[M]. Beijing: Beijing University of Aeronautics and Astronautics Press, 1996.
Keywords:C8051F060 Reference address:Intelligent power cabinet based on single chip microcomputer C8051F060

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

Design of CAN communication between embedded WinCE device and LPC935 microcontroller
    With the continuous development of information technology, embedded WinCE is increasingly used in the field of industrial control. It is mainly used as the operating system of the host computer. As an industrial-grade single-chip microcomputer chip, the LPC935 microcontroller is widely used in various industrial c
[Microcontroller]
Design of vehicle fault diagnosis instrument based on CAN bus
This paper proposes a design scheme of vehicle-mounted CAN bus fault diagnosis instrument . This scheme is low-cost, easy to carry, and has strong flexibility and adaptability. 1. Solution Design The overall design block diagram of the system is shown in Figure 1. The system is divided into two parts: the transmitte
[Microcontroller]
Design of vehicle fault diagnosis instrument based on CAN bus
The simulation of the quad redundant communication board requires the assistance of CAN bus technology
With the continuous development of electronic technology, computer application technology and EDA technology, the development of digital systems using FPGA has been widely used in the fields of communications, aerospace, medical electronics, industrial control, etc. FPGA has become one of the preferred methods of hard
[Power Management]
The simulation of the quad redundant communication board requires the assistance of CAN bus technology
Application of DSP and CAN bus in DC motor test system
With the rapid development of the electronics industry, the demand for small DC motors is increasing. This type of DC motor often needs to be tested for its current and speed before leaving the factory. The specific method is to provide the motor with PWM control signals with multiple duty cycles, and test the motor's
[Test Measurement]
Application of DSP and CAN bus in DC motor test system
PIC18F**K80 CAN communication program
Microcontroller: PIC18F45K80 About the frame ID setting CAN frame ID is divided into flag frame and extended frame, and the configuration register is as follows (here only the configuration of the send ID register (TXBnSIDH) is pasted, and the configuration of the receive frame ID register (RXBnSIDH) is the same):
[Microcontroller]
PIC18F**K80 CAN communication program
Analysis of the similarities and differences between fault-tolerant CAN and high-speed CAN
With the rapid development of automotive electronic technology, the choice of internal automotive communication protocols has become particularly important. Among the numerous communication protocols, fault-tolerant CAN (Controller Area Network) and high-speed CAN (High-Speed ​​CAN) are two common protocols that are
[Embedded]
Software and hardware design of elevator main control system based on CAN bus
  1 Introduction   With the rapid development of urbanization, the emergence of high-rise buildings and intelligent buildings has put forward many new requirements for elevator control. At the same time, the development of MCU and fieldbus technology has provided conditions for the continuous improvement of elevator
[Microcontroller]
Software and hardware design of elevator main control system based on CAN bus
Design of program downloader and communication debugger based on CAN
1. Introduction Among the various communication methods of electronic products, the CAN (Controller Area Network) bus has been widely used for its high reliability, real-time performance, and long transmission distance. It has become the bus standard for the electrical systems of many high-end cars (such as Merc
[Analog Electronics]
Design of program downloader and communication debugger based on CAN
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号