2021-11-06 15:10:52 索炜达电子 1307
项目编号:E2172
文件大小:7M
源码说明:带中文注释
开发环境:C编译器
简要概述:
设计思路
本实验采用stm32f103r6为主控芯片,及led-red、led-yellow、led-green;时钟源为晶振为8M的系统内部时钟;
实现效果
绿灯先亮4秒,再一秒为快闪(亮暗各0.1秒,闪烁5次),然后黄灯亮2秒,绿灯黄灯亮闪期间,对方红灯保持亮状态(共7秒)然后对方绿灯黄灯重复上述过程,交替不断。
环境
操作系统: Window10 专业版
使用软件:Keil uVision5、Proteus 8
开发语言:C语言
目录│文件列表:
└ 交通灯
└ prj1
│ Project 1.pdsprj
└ prj1
│ .mxproject
│ prj1.ioc
├ Drivers
│ ├ CMSIS
│ │ ├ Device
│ │ │ └ ST
│ │ │ └ STM32F1xx
│ │ │ ├ Include
│ │ │ │ │ stm32f100xb.h
│ │ │ │ │ stm32f100xe.h
│ │ │ │ │ stm32f101x6.h
│ │ │ │ │ stm32f101xb.h
│ │ │ │ │ stm32f101xe.h
│ │ │ │ │ stm32f101xg.h
│ │ │ │ │ stm32f102x6.h
│ │ │ │ │ stm32f102xb.h
│ │ │ │ │ stm32f103x6.h
│ │ │ │ │ stm32f103xb.h
│ │ │ │ │ stm32f103xe.h
│ │ │ │ │ stm32f103xg.h
│ │ │ │ │ stm32f105xc.h
│ │ │ │ │ stm32f107xc.h
│ │ │ │ │ stm32f1xx.h
│ │ │ │ └ system_stm32f1xx.h
│ │ │ └ Source
│ │ │ └ Templates
│ │ │ │ system_stm32f1xx.c
│ │ │ ├ arm
│ │ │ │ │ startup_stm32f100xb.s
│ │ │ │ │ startup_stm32f100xe.s
│ │ │ │ │ startup_stm32f101x6.s
│ │ │ │ │ startup_stm32f101xb.s
│ │ │ │ │ startup_stm32f101xe.s
│ │ │ │ │ startup_stm32f101xg.s
│ │ │ │ │ startup_stm32f102x6.s
│ │ │ │ │ startup_stm32f102xb.s
│ │ │ │ │ startup_stm32f103x6.s
│ │ │ │ │ startup_stm32f103xb.s
│ │ │ │ │ startup_stm32f103xe.s
│ │ │ │ │ startup_stm32f103xg.s
│ │ │ │ │ startup_stm32f105xc.s
│ │ │ │ └ startup_stm32f107xc.s
│ │ │ ├ gcc
│ │ │ │ │ startup_stm32f100xb.s
│ │ │ │ │ startup_stm32f100xe.s
│ │ │ │ │ startup_stm32f101x6.s
│ │ │ │ │ startup_stm32f101xb.s
│ │ │ │ │ startup_stm32f101xe.s
│ │ │ │ │ startup_stm32f101xg.s
│ │ │ │ │ startup_stm32f102x6.s
│ │ │ │ │ startup_stm32f102xb.s
│ │ │ │ │ startup_stm32f103x6.s
│ │ │ │ │ startup_stm32f103xb.s
│ │ │ │ │ startup_stm32f103xe.s
│ │ │ │ │ startup_stm32f103xg.s
│ │ │ │ │ startup_stm32f105xc.s
│ │ │ │ └ startup_stm32f107xc.s
│ │ │ └ iar
│ │ │ │ startup_stm32f100xb.s
│ │ │ │ startup_stm32f100xe.s
│ │ │ │ startup_stm32f101x6.s
│ │ │ │ startup_stm32f101xb.s
│ │ │ │ startup_stm32f101xe.s
│ │ │ │ startup_stm32f101xg.s
│ │ │ │ startup_stm32f102x6.s
│ │ │ │ startup_stm32f102xb.s
│ │ │ │ startup_stm32f103x6.s
│ │ │ │ startup_stm32f103xb.s
│ │ │ │ startup_stm32f103xe.s
│ │ │ │ startup_stm32f103xg.s
│ │ │ │ startup_stm32f105xc.s
│ │ │ │ startup_stm32f107xc.s
│ │ │ └ linker
│ │ │ │ stm32f100xb_flash.icf
│ │ │ │ stm32f100xb_sram.icf
│ │ │ │ stm32f100xe_flash.icf
│ │ │ │ stm32f100xe_sram.icf