Super-brain hacker

Chapter 370 Single-chip microcomputer car

Hearing Zhou Tong's words, Lin Hong smiled apologies and said, "The software part is mainly operating system development for the time being."

"Operat system?"

It's not just Zhou Tong, but other people who are doing it are surprised by the news.

They originally thought that the initial software development should be application software or something, but they didn't expect that the development of the operating system would be carried out at the beginning.

They have been in their posts for so long. As IT practitioners, even if they are not technicians, they are making up for some knowledge in their spare time. After all, their work has to deal with computers. If they don't even know some basic things, they are too incompetent.

Basically, everyone probably knows the concept of the operating system, and also knows that this thing is a very complex software. It seems that this part is currently being done abroad. Except for the DOS system, there are companies involved in China, but I have never heard of anything else.

Zhou Tong still has some research on this area. He couldn't help saying, "Mr. Lin, we went directly to the development of the operating system at the beginning. Isn't it too fast?"

The operating system is indeed a good project, but it is also a big pit and a bottomless hole, and not everyone can jump in. There are many companies that want to make an operating system, but there are only a few that can really do well.

He is worried that the company will invest a lot of manpower and material resources in this regard, but will not get any results in the end. This is not an unfounded worry. After all, the technical content of developing operating systems is too high. As a start-up company, it is indeed unwise to venture into this field.

"The operating system I'm talking about is not general commercial operating systems, but embedded, dedicated to industrial control." Lin Hong explained, "In fact, I have started to develop in this area. The first kernel version has come out. Technically, it should not be a problem. I have had development experience in this area before."

This meeting mainly summarized some achievements of the company's early development, and then made a plan for the company's future development direction.

The compatible machine sales and wholesale business continues, and the focus is on providing a complete set of solutions for enterprises or individuals to avoid direct price competition with others.

The newly established department is led by Lin Hong himself, with hardware and software together, in both aspects.

Lin Hong's return to the company has a great encouraging effect on morale. Originally, there was a feeling of slack in the company, but now with the return of Lin Hong, this emotion has been swept away and replaced by a new and energetic spiritual outlook.

Other people don't know much about technology. Lin Hong thinks he can do the operating system, so do it. According to past experience, the boss will definitely not do anything uncertain, just follow him and rush forward.

Zhou Tong knew the difficulty of writing the operating system very well. After the meeting, he followed Lin Hong and strongly asked to see the first kernel version of the operating system mentioned by Lin Hong before.

Lin Hong did not refuse his request. After all, this system requires them to participate in the development together. Zhou Tong is the technical director, and he will have to carry out the overall scheduling planning at that time.

"This is a real-time operating system, mainly used in embedded devices, which I call INX."

As he spoke, Lin Hong started his computer and pulled out the source code.

Zhou Tong couldn't wait to open the source file directory for a while. Although he didn't see anything at all, he just looked at the general file directory structure, but he couldn't help but be excited and asked, "Is LINX7 a branch of UNIX or INUX?"

The file directory shows that this is indeed a relatively complete operating system source code directory. Seeing this, Zhou Tong completely believed that Lin Hong was not open-minded, but had really made something.

When Zhou Tong heard this name, he immediately remembered UNIX and LINUX. Moreover, these two systems have a lot of open source code. Development based on either of these two is the best choice for many operating system development companies.

"Neither. This is a brand-new real-time operating system. The purpose of the initial development is to obtain orders from the army for the military.

Zhou Tong turned his head and looked at Lin Hong in surprise. Seeing that he didn't seem to be joking, he thought about his words seriously.

"The real-time operating system is more demanding than the general system in some aspects. Can we be competent?"

Lin Hong said, "Take your time, the system is from simple to complex. I use a microkernel architecture, and I also hope to inherit the programming idea of UNIX. Simplicity is beauty.

Take the military route, Zhou Tong knows that it must be the domestic army.

However, before that, there seemed to be no such precedent. Zhou Tong originally wanted to continue to ask, but when he saw Lin Hong's confident face, he let go of his worries. He knew that this boss, who could not see through at all, must have a channel in this regard, and considered the difficulty in this regard.

Zhou Tong no longer paid attention to the situation outside the code and continued to ask, "What hardware devices can this 0.01 kernel run on?"

Hearing his words, Lin Hong was a little embarrassed this time.

"The hardware platform has not been designed yet, but the code is basically almost done. According to my design, different hardware can be adapted after minor adjustments. This is the purpose of establishing the hardware department. At present, we do the hardware and software together. We will make the prototype first, then take it to the military to demonstrate, and get some resources from them for development.

According to Lin Hong's plan, we still need to take advantage of the military's "potential" so that the speed of research and development can be improved very quickly.

The current situation of the military is that there are talents everywhere, but there are few things that can be made. It would be great if we could dig some people from them.

Zhou Tong didn't say anything about this. He didn't read the code at all. He didn't know what functions Lin Hong had completed, so he didn't have the right to speak.

Next, the internal reorganization of Tricolor Fire Technology has been carried out, and many personnel from the previous technical department have been absorbed into a new department - the R&D department.

Only some basic personnel are left to provide supporting services for the sales department. Most of these people are newly graduated and even college students.

The first thing to do is to build a hardware platform for LINX so that it can be installed and run successfully.

The chip decided to be used in the initial test is the 8051 chip of the most common single-chip microcomputer chip MCS51 series on the market at present.

A single-chip microcomputer is a single-chip microcomputer. This is an integrated circuit chip that uses ultra-large-scale integrated circuit technology to integrate CPU random memory RAM read-only memory ROM, a variety of I/0 ports and interrupt systems, timer timer and other functions with data processing capabilities into a small and perfect microchip. Computer system.

It may also include display drive circuits, pulse width modulation circuits, analog multiplexers, A/D converters and other circuits.

To put it plainly, a chip is a computer with some common functions of the computer. Its earliest use was in the field of industrial control.

Usually, industrial control systems are very simple. For example, for an elevator, the simplest possibility is only three states: "up", "down" and "stop". If you use a computer to control it, it is completely unnecessary. Therefore, some engineers have specially designed special microcomputers for these scenarios, that is, single-chip microcomputers.

In the field of single-chip microcomputers, the best company is naturally the well-known INTEL company. They specialize in the production of a MCS51 series single-chip microcomputer, including many varieties, such as 803 "805" 875" 8032, 8052, 8752, etc., of which 8051 is The earliest and most typical products, other models of single-chip microcomputers are based on 8051 to add or reduce instructions.

It is also considered to choose the 8051 chip as the control chip, because this is basically the most common chip cluster in China. INTEL has authorized MCS51 to many chip manufacturers for production, resulting in many series of single-chip microcomputers. As long as this chip is done, other derivative chips can basically be matched with a slight modification of the code. At that time, the adaptation driver will be written, and special code will be used to detect the matching driver. The user does not even need to modify the code.

The LINX system should be burned to the ROM of the 8051 single-chip microcomputer, and then the external hardware is controlled through the pin of 8051.

In fact, the principle of this is the same as the principle of the previous game console. However, the chip of the game console controls the display, and the input signal is the controller. If this system is used for automatic artillery control, the input is the coordinates and the output is the elevation of the gun.

Of course, this is the simplest situation. A little more complicated is to control missiles, even rockets and spacecraft. Basically, the functions and general systems are almost the same, and even involve the judgment of artificial intelligence, such as determining whether a moving object is a vehicle or an organism. In the face of this situation, how to do it? Measures and so on.

Everything starts with the simplest.

Tricolor Fire Research and Development Department, the first hardware test platform, was modified from a remote control car.

Lin Hong has already had an abdominal manuscript on this point, mainly due to the influence of Arthur's uncle Mark's toy cars.

The control of the remote control car is very simple. The main control part is electric modulation, which receives the signal of the radio, so as to generate an on-off signal and control the car forward, backward and turning.

Lin Hong and others first designed a small motherboard, welded the 8051 single-chip microcomputer on it, and then introduced various circuits from the motherboard. Then remove the electric adjustment, replace the position of the electric adjustment on the motherboard, and control the car.

In addition, some other external input and output devices are connected to the motherboard, such as sensors such as infrared transmitters and receivers, step counters, temperature sensors, and a small scientific calculator, including LCD screens and character input buttons.