《Micro-controller Unit Technology》practical trai
《Micro-controller Unit Technology》practical trai
Gu Song Edit
2023 年 6 月
【Practical training name】
Micro-controller Unit Technology
【Training ability goal】
1. Be able to use IO ports to control the leds.
2. Be able to use interrupt routine to arrange the tasks.
3. Be able to use timer to synchronize multi-tasks.
4. Be able to capture the external interrupt.
5. Be able to communicate with the other system by serial communication.
1 Controlling of LED 4
3 Keyboard 4
4 Serial communication 4
5 Comprehensive exercise 4
Page 1
2、 All used electrical components should be placed back to the original storage position after training.
3、 Keep the training room clean, and pay attention to electricity safety.
【Practical training evaluation】
1、 Task results(60%)
Evaluation content Evaluation standards Value Scores Remarks
Controlling of LED Switch on/off the specified leds 25
Timer and interrupt 3-4 kinds of water leds 25
Display different kinds of water
Keyboard 25
leds by pressing different keys
Communicate with computer by
Serial communication 25
serial communication
Switch on/off the specified led by
Comprehensive exercise
different AT instruction
Total scores 100
2、 Commissioning process and safety specifications(20%)
Evaluation content Evaluation standards Value Scores Remarks
Clear task goals,be able to collect 10
Goal cognition relevant information quickly and
accurately .
Concentrated attention, positive 10
Attitude
working attitude.
Have a certain organization and 10
coordination ability, actively
Teamwork cooperate with others, consider
the overall situation, and complete
the work tasks together.
Knowledge and skill Knowledge is well prepared, use 20
application skill correctly
Clear thinking, standard operation 20
Page 2
specified format
Document binding Bind the book in the specified 10
format
Document content The process description is 70
detailed, and the technical content
is detailed
Total scores 100
Students' practice training results(More than 2 absenteeism, practice training performance scores will be
zero)
Commissioning
process and Training
Task results Total
Evaluation indicator safety report Grade
(60%) scores(100)
specifications( (20%)
20%)
Page 3
Task I
Controlling of LEDs
【Goal】
1. Make L1 switch on for about 2 seconds. Then switch off L1 and switch on L2 for about 2
seconds, and so on. (from L1 to L8)
2. Display the digital number “0” on all digital numerical leds for about 2 seconds. Then
display number “1” for another 2 seconds, and so on. (from number “0” to number “9”)
Page 4
Task II
【Goal】
Write different codes to complete different kinds of water leds, such as
1. Kind I ---- Make L1 switch on for about 2 seconds. Then switch off L1 and switch on L2
for about 2 seconds, and so on (from L1 to L8, and repeat). Implement it by timer interrupt.
2. Kind II ---- Display the digital number “0” on all digital numerical leds for about 2
seconds. Then display number “1” for another 2 seconds, and so on (from number “0” to number
“9” and repeat). Implement it by timer interrupt.
3. Kind III ---- Make all leds (from L1 to L8) switch on for 1 second, then switch off for 1
second, and repeat. Implement it by timer interrupt.
4. Kind IV ---- Your own kind.
Page 5
Task III
Keyboard
【Goal】
Write different codes to check the button’s pressing. All buttons can be either regarded as
some individual buttons or matrix keyboard. If you like challenge, the latter is preferred.
1. If K4 is pressed, Kind I is displayed.
2. If K8 is pressed, Kind II is displayed.
3. If K12 is pressed, Kind III is displayed.
4. If K16 is pressed, Kind IV is displayed.
Page 6
Task IV
Serial Communication
【Goal】
Write codes to transmit/receive the data to/from the computer.
【Note】
The computer with serial tools application is connected with the board by the usb wire.
1. If Kx is pressed, “Kx is pressed” is transmitted to computer.
2. “OK” is received, L1 is switched on for 2 seconds and then off.
Page 7
Task VI
Comprehensive Exercise
【Goal】
Switch on/off the specified led by different AT instruction.
For example:
1. “AT+L1=1” is received, L1 is switched on, then “OK” is transmitted.
2. “AT+L1=0” is received, L1 is switched off, then “OK” is transmitted.
3. “AT+L1?” is received, check the status of L1, then “+L1:0” or “+L1:1” is transmitted.
Page 8
附:实训报告封面及格式
成都航空职业技术学院
实习报告书
Training report
(2022 ~ 2023 学年第 2 学期)
Course name:
Academy: Major:
Finish time:
Page 9
Following contents should be included in the training report :
Page 10
实训报告文档格式说明及要求
实训报告的内容依次为封面、目录、系统方案、原理图、流程图、传感器的用途/接线/技术参数说明、设计小结和参考资料等内容,全班统一
格式(含字体),具体规定如下:
论文的书写
1、层次和标题
(1)层次要清楚:标题要重点突出,简明扼要。
(2)层次代号的格式如下:
第一章 ××××(居中书写)
1.1 ××××
1.1.1 ××××
2、字体、字型及字号要求
(1)大标题 第一章 黑体小三
(2)一级节标题 4.1 实验装置和试验方法 黑体四号
(3)二级节标题 4.2.2 实验装置 黑体四号
(4)三级节标题 1.3.4.1 协商系统 黑体小四
(5)正 文 PFOODR 实验取得预期效果 宋体小四
(6)表题与图题 表 2-1 语言的语法 宋体五号
(7)参考资料 Herzberg G and Sprinks.J. 宋体五号
3、段落及行间距要求
(1)正文段落和标题均取 20 pt 的行间距。
(2)按照标题的不同,分别采用不同的段前段后间距:
标题级别 段前段后间距
大标题 30 磅
一级节标题 18 磅
二级节标题 12 磅
三级节标题 6磅
(3)用纸及打印规格
页边距(mm)
纸张规格(mm) 页眉距边界(mm) 页脚距边界(mm)
左、右 上、下
A4(210×297) 30 35 27.5 27.5
Page 11