C language learning secrets for embedded Linux development

Everyone knows that C language is an important language in the whole embedded development learning, so learning C language is also an important part of embedded development learning. How to learn C language? What is the secret of C language learning? Today, this is the answer to everyone. The secret of learning C language is "one word, two attitudes, three frameworks, four notes".

C language learning secrets for embedded Linux development

One, one word mantra

Learn C language, a word of truth, that is "editing."

(1) Edited.

Learning C language, and even learning all the language, pay attention to a hands-on - not to hit people, but to start programming. You must be familiar with knowledge and understanding by writing programs. If you only learn not to edit, just look at other people's programs, you can't write by yourself, you can't get from getting started to being proficient. You know, in the computer world, people who only say that they are not practicing are very embarrassed. Imagine, where you worked hard to compile the program, but he stood on the side, like the boss, chattering, giving you this opinion, that idea, even talking about how the programming will be, it seems very cowhide, But just don't make a line of code. It is estimated that everyone who encounters such a person will only have one action, that is, click "step on".

Can you learn C language with a "edit"? Is it really that simple? No, just "editing" is not enough, you still need "I am editing."

(2) I edited.

Please pay attention to the rhetoric, "I" edited! This "I" is actually just "you", that is, people who learn C language.

When you are learning C, you should write more programs. For example, when you are learning a linked list, you should write your own linked list program or even write a game program such as Tetris to practice. However, there is a precondition that you must write all these programs yourself to have an effect. If you download some source code from the network, or copy the classmate's program, if you say it yourself, then I only have it. I can tell you in a big way that this has nothing to do with the habit of stealing.

Some students will ask, then "personal" programming can always be proficient in C language, in fact, a little bit, just "editing" is not enough, but "I edit" is not enough to master, in order to reach the highest peak of C language You still need "I edit and edit".

(3) I edited and compiled.

The word "edit" is repeated three times. The "three" here means more, which means you have to write a lot of programs. Writing 10 lines of code in person is equivalent to not editing. It is not enough to write 1000 lines of code in person. Writing 10,000 lines of code in person is also a slap in the face, and you can write 100,000 lines of code in person. You are definitely a combatant among programmers.

At first glance, with 100,000 lines of code, it is estimated that some students will lie down straight and then stand up again - they think of bad ideas. "Isn't it 100,000 lines? It's easy! Now the programming tools have code generation functions. Just drag and drop a few times in the VC and make an MFC window program. The system will automatically generate hundreds of lines of code. A three-way control, thousands of lines of code are generated!"

Once again, the "editing" is prefixed, that is, "I", that is, the learner himself, is the code generated by the automatic code generation tool written by the "learner"?

If there is a policy, there are countermeasures. "Without the code generator, then copy it, just follow the input code!" Hey, people can't be shameless to that point! The 100,000 lines of code should be completed by "you", personally sprouting and rooting in your mind, and then enter it line by line. This is not a performance task, nor is it an image project. Deceiving others can only be self-deception.

Second, two attitudes

The average person mentions the C language, and often a word goes hand in hand, that is "difficult"! Fear, C language is really horrible, the legendary pointer is really too sharp, and the system is cut off without any attention, it is too normal to make a few crashes to restart.

In fact, there is no need to worry so much. The Taizu ancestors once said: "Develop the enemy strategically and attach importance to the enemy in tactics."

(1) Strategically despising C language

In fact, the C language is just an ordinary language. Don't imagine it too hard! Compared with Java, the C language is only a bit complicated, the code is verbose, the library function is less, the three-party control is hard to learn, the compilation tool is a bit simple, the pointer is a little troublesome, and the others are not much different. The programming idea is always The same, program builds are always the same, the program syntax is always similar, and the program logic is always the same.

There is no need to talk about the C language, and treat him as an ordinary language. You should know that even if C language is difficult, it is easier to master than assembly language, easier to remember than machine language, and easier to master than English. So be confident! Everything in C is a paper tiger.

(2) tactically attaching importance to C language

Although we have maintained a passionate spirit in front of the C language, we are not afraid. But in the process of learning, it is still necessary to maintain a modest and cautious attitude, to guard against arrogance and arrogance, not to be complacent because of one or two Tetris game programs, thinking that Laozi is the best in the world, even only 10 lines of code. Just go to the CSDN blog everywhere, and "step on" people's posts everywhere. You know, "Xiongguan Man Road is really like iron, but now you are moving from scratch." No matter how much you learn, as long as you have not yet taken up a job, the Long March is only the first step, and there is still a long way to wait. you.

600V DC Electronic Load can be switched quickly between different values in the same operating mode, including CC dynamic mode, CV dynamic mode, CR dynamic mode and CP dynamic mode, CC/CR high speed dynamic mode up to 50kHz. This function is suitable for transient test of Power Supply , test of battery protection characteristic and battery pulse charging etc. Dynamic mode test has continuous mode, pulse mode and toggle mode.

Additionally , programmable dc electronic load can also have 200V DC Electronic Load and 1200V DC Electronic Load for more options.

kindly check below features for your reference:


● Flippable front panel and color touch screen allow convenient access and operation
● Provides four kinds of basic working mode such as CV/CC/CR/CP, and CV+CC/CV+CR/CR+CC complex operating modes
● Adjustable current slew rate, adjustable CV loop speed
● Ultra high precision voltage & current measurement
● OCP/OPP testing function
● 50kHz high-speed CC/CR dynamic mode
● 500kHz high-speed voltage and current sampling rate
● Timing & discharging measurement for batteries
● Short circuit test mode
● Auto mode function provides an easy way to do complicated test
● Dynamic frequency sweep function for determining worst case voltage peaks*
● Non linear load mode function makes the simulated loading current more realistic*
● Supports external analog control function*
● V-monitor/I-monitor
● LED load simulation function
● Full protection: OCP, OPP, OTP, over voltage and reverse alarm
● Up to 20 units master/slave parallel control
● Front panel USB interface supports data import and export
● SCPI language and standard rack size make it ideal for ATE System integration
● Smart fan control with lower noise and better for environment
● Multi versions to meet the cost performance and different applications
* Only professional electronic load units support these functions


600V DC electronic load

600V DC Electronic Load,programmable dc load,adjustable electronic load,programmable DC electronic load

APM Technologies (Dongguan) Co., Ltd , https://www.apmpowersupply.com