Home > other >  For help microcontroller 51 code and the summary to realize the following content
For help microcontroller 51 code and the summary to realize the following content

Time:10-26

Experiment 1 interrupt and counter
1. The experiment purpose
(1) to understand and master the interrupt principle and programming method of use;
(2) understand the interrupt priority, and interrupts the corresponding number, can also learn to change the interrupt priority;
(3) to a serial port interrupt, and watchdog reset;
(4) master the working principle and realization of the counter, understand each counter several working mode, while requiring understand the distinction between counter and timer, the source of count pulse,
2. The experiment content
(1) using the timer interrupt of MCU, external interrupt, a serial port interrupt and watchdog reset control of digital tube display;
(2) by IAP programming store count parameters, from the last power to continue running out;
(3) using digital tube display content via a serial port to send, coding buttons, control display content;
(4) the experimental procedures can be divided into key input module, a serial port to send module, display module, the main program module module,
3. The experimental requirements
(1) master TMOD SCON, TCON, IE the use of such as register;
(2) to understand the function of the register your mark, flexible use of you to interrupt operation, through the digital tube to observe the phenomenon;
(3) understanding of IAP technology, familiar with the single chip microcomputer internal storage structure;
(4) the principles of timing, know how to pack the initial value, understanding the timer interrupt overflow flag,
4. The experiment equipment
(1) 1 PC sets, on STC SCM experiment board a;
(2) the other cable, software development environment and related software code, etc.,
  • Related