2, first look at 805 1 single chip microcomputer: Taiwan Province Hongjing STC89C5 1-DIP40/ or others such as Ruxinmao, buy development boards online, the price will not exceed 200 yuan.
3. Look at the functions of MCU: replacing internal FLASH, RAM, timer, INT, ADC, USB, ISP/IAR, etc.
4. Compilation environment and programming software KEIL.
5. Open the sample program of the development board, compile it in KEIL and download it to the development board to see if the result is consistent with the instruction. You must be very excited when you achieve this effect. At this time, you really learned the microcontroller, and you succeeded! ! ! ! ! .
6, microcontroller C language example:
sbit speak = p 1^5; //IO port is defined as buzzer control.
Unsigned char temperature; //Define TEMP as a single-byte variable.
sfr PORTA p 1; //define port P 1 as PORTA.
Summary: First, go to the bookstore to buy a single-chip C language book, and then do the experiment. You should participate more in such project development, and you will get it slowly.