【实例简介】
利用GPIO、EXTI外部中断、TIM定时器实现URAT串口,该例子来自21IC网,未做改动,明天自己调试,看看效果
完全是根据UART协议编写
【实例截图】
【核心代码】
STM32的GPIO口模拟串口通信
└── STM32的GPIO口模拟串口通信
└── Ex006-IO模拟串口
└── Ex006-ADC采样和滤波例程 - 副本
├── Libraries
│ ├── CMSIS
│ │ ├── CM3
│ │ │ ├── CoreSupport
│ │ │ │ ├── core_cm3.c
│ │ │ │ └── core_cm3.h
│ │ │ └── DeviceSupport
│ │ │ └── ST
│ │ │ ├── STM32F10x
│ │ │ │ ├── Release_Notes.html
│ │ │ │ ├── startup
│ │ │ │ │ ├── TrueSTUDIO
│ │ │ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ │ │ ├── startup_stm32f10x_hd_vl.s
│ │ │ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ │ │ ├── startup_stm32f10x_ld_vl.s
│ │ │ │ │ │ ├── startup_stm32f10x_md.s
│ │ │ │ │ │ ├── startup_stm32f10x_md_vl.s
│ │ │ │ │ │ └── startup_stm32f10x_xl.s
│ │ │ │ │ ├── arm
│ │ │ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ │ │ ├── startup_stm32f10x_hd_vl.s
│ │ │ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ │ │ ├── startup_stm32f10x_ld_vl.s
│ │ │ │ │ │ ├── startup_stm32f10x_md.s
│ │ │ │ │ │ ├── startup_stm32f10x_md_vl.s
│ │ │ │ │ │ └── startup_stm32f10x_xl.s
│ │ │ │ │ ├── gcc_ride7
│ │ │ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ │ │ ├── startup_stm32f10x_hd_vl.s
│ │ │ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ │ │ ├── startup_stm32f10x_ld_vl.s
│ │ │ │ │ │ ├── startup_stm32f10x_md.s
│ │ │ │ │ │ ├── startup_stm32f10x_md_vl.s
│ │ │ │ │ │ └── startup_stm32f10x_xl.s
│ │ │ │ │ └── iar
│ │ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ │ ├── startup_stm32f10x_hd_vl.s
│ │ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ │ ├── startup_stm32f10x_ld_vl.s
│ │ │ │ │ ├── startup_stm32f10x_md.s
│ │ │ │ │ ├── startup_stm32f10x_md_vl.s
│ │ │ │ │ └── startup_stm32f10x_xl.s
│ │ │ │ ├── stm32f10x.h
│ │ │ │ ├── system_stm32f10x.c
│ │ │ │ └── system_stm32f10x.h
│ │ │ └── STM32L1xx
│ │ │ ├── Release_Notes.html
│ │ │ ├── startup
│ │ │ │ ├── TrueSTUDIO
│ │ │ │ │ └── startup_stm32l1xx_md.s
│ │ │ │ ├── arm
│ │ │ │ │ └── startup_stm32l1xx_md.s
│ │ │ │ ├── gcc_ride7
│ │ │ │ │ └── startup_stm32l1xx_md.s
│ │ │ │ └── iar
│ │ │ │ └── startup_stm32l1xx_md.s
│ │ │ ├── stm32l1xx.h
│ │ │ ├── system_stm32l1xx.c
│ │ │ └── system_stm32l1xx.h
│ │ ├── CMSIS changes.htm
│ │ ├── CMSIS debug support.htm
│ │ ├── Documentation
│ │ │ └── CMSIS_Core.htm
│ │ └── License.doc
│ ├── STM32F10x_StdPeriph_Driver
│ │ ├── Release_Notes.html
│ │ ├── inc
│ │ │ ├── misc.h
│ │ │ ├── stm32f10x_adc.h
│ │ │ ├── stm32f10x_bkp.h
│ │ │ ├── stm32f10x_can.h
│ │ │ ├── stm32f10x_cec.h
│ │ │ ├── stm32f10x_crc.h
│ │ │ ├── stm32f10x_dac.h
│ │ │ ├── stm32f10x_dbgmcu.h
│ │ │ ├── stm32f10x_dma.h
│ │ │ ├── stm32f10x_exti.h
│ │ │ ├── stm32f10x_flash.h
│ │ │ ├── stm32f10x_fsmc.h
│ │ │ ├── stm32f10x_gpio.h
│ │ │ ├── stm32f10x_i2c.h
│ │ │ ├── stm32f10x_iwdg.h
│ │ │ ├── stm32f10x_pwr.h
│ │ │ ├── stm32f10x_rcc.h
│ │ │ ├── stm32f10x_rtc.h
│ │ │ ├── stm32f10x_sdio.h
│ │ │ ├── stm32f10x_spi.h
│ │ │ ├── stm32f10x_tim.h
│ │ │ ├── stm32f10x_usart.h
│ │ │ └── stm32f10x_wwdg.h
│ │ └── src
│ │ ├── misc.c
│ │ ├── stm32f10x_adc.c
│ │ ├── stm32f10x_bkp.c
│ │ ├── stm32f10x_can.c
│ │ ├── stm32f10x_cec.c
│ │ ├── stm32f10x_crc.c
│ │ ├── stm32f10x_dac.c
│ │ ├── stm32f10x_dbgmcu.c
│ │ ├── stm32f10x_dma.c
│ │ ├── stm32f10x_exti.c
│ │ ├── stm32f10x_flash.c
│ │ ├── stm32f10x_fsmc.c
│ │ ├── stm32f10x_gpio.c
│ │ ├── stm32f10x_i2c.c
│ │ ├── stm32f10x_iwdg.c
│ │ ├── stm32f10x_pwr.c
│ │ ├── stm32f10x_rcc.c
│ │ ├── stm32f10x_rtc.c
│ │ ├── stm32f10x_sdio.c
│ │ ├── stm32f10x_spi.c
│ │ ├── stm32f10x_tim.c
│ │ ├── stm32f10x_usart.c
│ │ └── stm32f10x_wwdg.c
│ └── 说明.txt
├── Project
│ └── MDK-ARM(uV4)
│ ├── CopyHex_CpuRAM.bat
│ ├── CopyHex_ExtSRAM.bat
│ ├── CopyHex_Flash.bat
│ ├── CpuRAM.ini
│ ├── ExtSRAM.ini
│ ├── project.uvopt
│ ├── project.uvproj
│ └── 说明.txt
├── Si
│ ├── IO模拟串口.IAB
│ ├── IO模拟串口.IAD
│ ├── IO模拟串口.IMB
│ ├── IO模拟串口.IMD
│ ├── IO模拟串口.PFI
│ ├── IO模拟串口.PO
│ ├── IO模拟串口.PR
│ ├── IO模拟串口.PRI
│ ├── IO模拟串口.PS
│ └── IO模拟串口.WK3
├── User
│ ├── bsp
│ │ ├── bsp_button.c
│ │ ├── bsp_button.h
│ │ ├── bsp_led.c
│ │ ├── bsp_led.h
│ │ ├── bsp_printf.c
│ │ ├── bsp_timer.c
│ │ ├── bsp_timer.h
│ │ ├── bsp_usart.c
│ │ └── bsp_usart.h
│ ├── main.c
│ ├── stm32f10x_assert.c
│ ├── stm32f10x_conf.h
│ ├── stm32f10x_it.c
│ └── stm32f10x_it.h
├── 例程说明(中文).txt
└── 删除目标文件(用于打包备份).bat
30 directories, 132 files