登录
首页 » C/C++ » FreeRTOS实验15-1 FreeRTOS软件定时器实验

FreeRTOS实验15-1 FreeRTOS软件定时器实验

于 2020-06-24 发布
0 74
下载积分: 1 下载次数: 2

代码说明:

说明:  硬件资源: 1,DS0(连接在PA8),DS1(连接在PD2上) 2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面) 3,ALIENTEK 2.8/3.5/4.3寸LCD模块(仅支持MCU屏) 4,按键KEY0(PC5)/KEY1(PA15)/KEY_UP(PA0,也称之为WK_UP) 实验现象: 通过按键KEY_UP可以控制定时器AutoReloadTimer_Handle的开启,这个是 周期定时器,一旦开启就会不断的运行,直到按下KEY1将其关闭。按下KEY0 可以打开定时器OneShotTimer_Handle,这是个单次定时器,只会运行一次, 运行周期到了以后就会停止运行,除非按下按键KEY0将其再次开启。(Hardware resources: 1, DS0 (connected to PA8), DS1 (connected to PD2) 2. Serial port 1 (baud rate: 115200, PA9/PA10 connected on board USB to serial chip CH340) 3, ALIENTEK 2.8/3.5/4.3 inch LCD module (only supporting MCU screen) 4. Keyboard KEY0 (PC5)/KEY1 (PA15)/KEY_UP (PA0, also known as WK_UP) Experimental phenomena: The timer AutoReloadTimer_Handle can be turned on by keying KEY_UP. This is The periodic timer will run continuously once it is turned on until KEY1 is pressed to turn it off. Press KEY0 You can turn on the timer OneShotTimer_Handle, which is a single timer and only runs once. The run cycle will stop after that unless KEY0 is pressed to turn it on again.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104269会员总数
  • 31今日下载