Simple record of competition experience
Be able to check the value of registers, create function header files and function files, and add function files of existing modules. You must master the use of CCS and do the following:
Can create and modify projects, download programs to TI development boards and perform online debugging, and watch related projects [this is crucial for fast on-site programming, which basically involves calling function libraries for programming]
Before the competition, you need to search for a lot of relevant Chinese and English information about the TI development platform you have decided to use, including but not limited to:
Related data manuals, library function packages, related project source code and project reports, related Chinese learning materials, especially experimental tutorials written by some universities.
For example, you can search for "MSP430+12864 display", "MSP430+OLED", "MSP430+I2C routine", "MSP430+UART", "MSP430 ADC routine", etc. Be familiar with the interfaces of these codes, and be able to understand and draw the connection relationship between the hardware module and the development board by looking at the code, and specifically to which I/O port. The simplest one, even OLED, has 4 interfaces and 8 interfaces. We cannot predict which one the competition will provide. Therefore, even if you get the source code, you must determine the hardware corresponding to the source code and learn to use the source code. And make sure that the source code can work properly.
Recommended pre-game learning:
Because TI only mailed 6 development platforms. It is recommended to install CCS before mailing. It is not recommended to install the latest version. Personally, I think that the version TI uses for the competition [in the USB flash drive distributed for the competition will be a stable version]. For example, if the latest version is CCS8, then the USB flash drive given for the competition is CCS7. So it is best to install a stable version.
In addition, when looking for code, determine in advance whether the code you find is a project created using CCS or IAR, which can reduce a lot of useless work. Of course, if you use CCS, you can also refer to IAR code, but you need to modify and transplant it.
Before the game, use the keyboard to control the LED on and off [using the development board resources is enough]. Master the configuration of the I/O port, which is about 8 registers. This is relatively simple, that is, learn keyboard input and I/O port output.
Realize PWM output [if you want to do well in control competitions, you must use it], and try all the I/O ports that can output PWM. This experiment can be achieved using the development board issued by TI and the oscilloscope provided by the laboratory on the third floor of the north building. Try to modify the duty cycle, frequency, etc. In addition, you must learn simple PID control, which is very important for stability. Learn how to use
TI's development platform plus an OLED display [buy one, it's not expensive] to display. Requirements: It can display all numbers, uppercase and lowercase letters, and ".", and it is best to display some Chinese. It would be even better if you can learn to create a Chinese character library yourself.
The Chinese font library we created at the time was created on site. The font library for OLED is still very easy to create. However, OLED is 64*128, so the font height needs to be determined. Our font height at the time was 16, which displayed 4 lines.
Learn how to measure the ADC of the development board provided by TI, use the internal ADC to measure the voltage [combined with the signal generator and OLED to complete the experiment], and try to display the measurement results on the OLED display
Learn UART communication and I2C communication, because many external ADC chips or other chips communicate with the development board using UART communication and I2C communication [combining OLED display and computer or oscilloscope can realize the experiment]
Learn to write and use delay function, the following is a delay function we wrote by ourselves
void delay(unsigned int t) //delay function
{
unsigned int i,j;
for(i=0;i<t;i++)
for(j=0;j<10;j++);
}
As for interrupts, timing and so on, it goes without saying that you also need to understand and use them.
Overall preparation ideas
The focus of the competition is measurement circuit design or control/drive circuit design. The other parts should be mastered in advance. If you don't master them in advance, you will basically not be able to participate in the competition unless you can master them quickly within one day.
|