In this design, the single chip selects 80C196KCo from MCS-% series products, which is especially suitable for the real-time control occasions with high requirements. At present, it has been successfully applied to automobiles, such as ignition and fuel control [[52, 53, 55]The CHMOS chip consumes less power and can work in two power-saving modes in addition to normal operation: standby mode and power-down mode, which further reduces the power consumption of the chip. All members of the MC-196 family enjoy a set of command system, There is a common CPU organizational structure. According to different application occasions, various circuits that used to be considered as "peripheral devices" were "embedded" inside the MCU, so various types of MCUs were formed.The internal EPROM / ROM of 8OC196KC is 8K bytes, and the internal RAM is 232 bytes. Both can be used as general-purpose registers. Adding 24-byte special registers is equivalent to 256 bytes of internal registers. In the software compilation of ABS's main control system design, it makes full use of its internal general registers. Because ABS is a real-time control, and the entire braking process must be completed in just a few seconds, it requires very high time; by analyzing the required collected data, it is found that the distribution of several parameters is relatively concentrated, only It is necessary to expand the dimension of each type of parameter by 100 times and put it into the general register for analysis and calculation. The algorithm is more concise, the real-time response speed is faster and more reasonable.In practical applications, the car has four wheel speed signals input at the same time, and there are not enough counters in the digital controller, so an 8253 chip needs to be expanded. 8253 has three 16-bit down counters with the same function. The working mode and counting constant of each counter are selected by software programming. In this way, when the program is initialized, the value of the counting position and the mode control word are set. In the interrupt service program, four wheel speed signals can be read at the same time, because each instruction takes very short time (in microseconds) Relative to the interruption time (generally tens of milliseconds) is almost negligible. Therefore, using this method can achieve synchronous speed measurement of the four-wheel signal.The main control software program flow of this article is mainly based on the idea of HSO generating software timer interrupt. First determine the interrupt vector: GSEG AT 200AH; Timer T1 as the system real-time clock source, every 8 state cycles, its count value increases by 1, each time interval counted (8M crystal) :; Assume the interrupt time is T , Then the initial value of the interruption time
In this design, the single chip selects 80C196KCo from MCS-% series products, which is especially suitable for the real-time control occasions with high requirements. At present, it has been successfully applied to automobiles, such as ignition and fuel control [[52, 53, 55]<br>The CHMOS chip consumes less power and can work in two power-saving modes in addition to normal operation: standby mode and power-down mode, which further reduces the power consumption of the chip. All members of the MC-196 family enjoy a set of command system, There is a common CPU organizational structure. According to different application occasions, various circuits that used to be considered as "peripheral devices" were "embedded" inside the MCU, so various types of MCUs were formed.<br>The internal EPROM / ROM of 8OC196KC is 8K bytes, and the internal RAM is 232 bytes. Both can be used as general-purpose registers. Adding 24-byte special registers is equivalent to 256 bytes of internal registers. In the software compilation of ABS's main control system design, it makes full use of its internal general registers. Because ABS is a real-time control, and the entire braking process must be completed in just a few seconds, it requires very high time; by analyzing the required collected data, it is found that the distribution of several parameters is relatively concentrated, only It is necessary to expand the dimension of each type of parameter by 100 times and put it into the general register for analysis and calculation. The algorithm is more concise, the real-time response speed is faster and more reasonable.<br>In practical applications, the car has four wheel speed signals input at the same time, and there are not enough counters in the digital controller, so an 8253 chip needs to be expanded. 8253 has three 16-bit down counters with the same function. The working mode and counting constant of each counter are selected by software programming. In this way, when the program is initialized, the value of the counting position and the mode control word are set. In the interrupt service program, four wheel speed signals can be read at the same time, because each instruction takes very short time (in microseconds) Relative to the interruption time (generally tens of milliseconds) is almost negligible. Therefore, using this method can achieve synchronous speed measurement of the four-wheel signal.<br>The main control software program flow of this article is mainly based on the idea of HSO generating software timer interrupt. First determine the interrupt vector: GSEG AT 200AH; Timer T1 as the system real-time clock source, every 8 state cycles, its count value increases by 1, each time interval counted (8M crystal) :; Assume the interrupt time is T , Then the initial value of the interruption time
正在翻译中..