【嵌入式系统实验】8 USART实验

1 开发环境

  • STM32F407ZGT6
  • Keil uVision 5

2 实验内容

  1. 按下计算机键盘按键能立即回显到串口调试助手的窗口中;
    串口助手不能使用定时发送和自动回显功能;
  2. 如果依次按下指定序列“123a456b789c”,则在按下“c”时点亮LED0,否则熄灭。

3 实验代码

[usart.c]

int pos=0;

void USART1_IRQHandler(void)

猜你喜欢

转载自blog.csdn.net/qq_44714521/article/details/108705364