[Embedded system experiment] 8 USART experiment

1 Development environment

  • STM32F407ZGT6
  • Wedge uVision 5

2 Experiment content

  1. Press the computer keyboard key to immediately echo to the serial port debugging assistant window; the
    serial port assistant cannot use the timing sending and automatic echo functions;
  2. If you press the specified sequence "123a456b789c" in turn, LED0 will light up when you press "c", otherwise it will go off.

3 Experimental code

[usart.c]

int pos=0;

void USART1_IRQHandler(void)

Guess you like

Origin blog.csdn.net/qq_44714521/article/details/108705364