Experiment 8 USART experiment
1 Development environment
- STM32F407ZGT6
- Wedge uVision 5
2 Experiment content
- 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; - 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)