A few days ago, the teacher gave us a few people a small task to write drivers for the new lab board. Haha,Datasheet5After downloading the datasheet of the corresponding model on the website, it will start! The first half is datasheet, and the second half is Keil C (as follows ):
I have done a lot of MCU-related things in my junior year:ADuC812, ZigBeeCc2430And photoelectric Course DesignC8051F310. From the beginning of pure Chinese to the later adaptation of pure English, I also accumulated some experience in reading Datasheet and share it with me:
Just read it
First, the Morale should not be compromised, and never be intimidated by "English. In fact, there is almost no syntax obstacle in a datasheet (the company that writes datasheet by writing poetry/novels is not far from bankruptcy). It is basically a very easy-to-understand statement. Most of the difficulties lies in the professional vocabulary, but when you read it, you will find that there are dozens of specialized words. The effect of memorizing new words is related to the comments you encounter. As long as you read a few more pages and work diligently to learn about the new words, you can remember them easily ~ So the first and most important point is just read it!
Make good use of Foxit
The Datasheet format is almost 100% pdf. The PDF reading software I use is Foxit. It feels very good. The following are some common functions:
- Set background color
Datasheet has been around for a long time, so of course you need to protect your eyes. It will be very tiring to see the contrast between white and black characters for a long time. You can set the text background color:I chose a very pale blue color, which looks quite comfortable and not dazzling.
- Learning to use the search function
Some datasheet files provide links to each other, which makes it very convenient to reach the destination (the blue part can be clicked ~) :However, many manuals do not exist. If you want to find an SFR, you can use the search function quickly (provided that the PDF text is not printed -_-):
- Learn to use bookmarks
Bookmarks are generally provided by the original manufacturer and can reflect the overall framework of the manual. After reading the bookmarks, you can quickly locate the bookmarks ~If the content in the bookmarks is frequently viewed, you can also set the style of the bookmarks, right-click and choose properties:
After the settings, the following results are displayed:
- Diligence mark
Some important notes will be highlighted:Of course, Foxit also provides some other tagging tools, one by one:
Not just read, but write
This is important. The window of human consciousness is very small, so there are only a few things to pay attention to at a certain time, and it is impossible to remember the details of the residence. In datasheet, a certain thing may involve many things. For example, A/D may involve I/O, clock, crossbar, and so on. To Make A/D finally run, all the relevant details must be converted into idioms when writing a program. Therefore, when you look at datasheet, you must not only see, but also write. Take out an A4 paper and a pen, take notes while reading a module, and record the related SFr. When programming, you can compare the content on the paper with ease, and the failure rate will be much lower!
Note the things highlighted in Datasheet, which are often the most easily overlooked and critical:
SFr table
Reading datasheet cannot be completely correct. In order to confirm that there are no omissions, you can browse the related SFr one by one and perform the final check. Usually this step can check out 1 ~ Two missing points:
The above are some of my small tips. If we do this, and make good use of the simulation function of Keil C, we can greatly improve the success rate. It is not impossible to hit each time!