Experimental Instructional Design of Code Slicing and Data Verification by Artificial Interruption

  •  Guoguan WEN    
  •  Mingliang ZHANG    
  •  Qingping DOU    


Students run code directly without any modification when doing programming experiments. They do not care about the process and do not understand the results. It has always been the pain of the electronic information experiment teaching mentioned by. This article, combines the previous teaching experience, proposes an artificial serial port interruption in the code. The result data returned by the interrupt upload to computer or mobile phone, combined with the experimental principle to allow students to explore the relationship between input and output, so that students can fully participate in the modification of code parameters, and verify the intermediate results. Students connect to the WIFI hotspot configured in the experiment box through their mobile phones, and lunch the online commissioning APP serial port configuration interface to complete the basic serial port settings. The slave MCU needs to download the firmware code compiled in C language in advance. The code contains the serial port output function to calibrate the running position of the code and upload the specified operation results. This article briefly describes the hardware functional chart and the functional flowchart of the interrupt code; focusing on the interface design and interrupt implementation method of online commissioning APP, as well as the test environment setup and specific test results with serial port tools.

This work is licensed under a Creative Commons Attribution 4.0 License.
  • ISSN(Print): 1913-8989
  • ISSN(Online): 1913-8997
  • Started: 2008
  • Frequency: quarterly

Journal Metrics

WJCI (2020): 0.439

Impact Factor 2020 (by WJCI): 0.247

Google Scholar Citations (March 2022): 6907

Google-based Impact Factor (2021): 0.68

h-index (December 2021): 37

i10-index (December 2021): 172

(Click Here to Learn More)