stm32

所属分类:单片机开发
开发工具:Visual Basic
文件大小:911KB
下载次数:42
上传日期:2014-11-02 10:23:23
上 传 者zihaideshen
说明:  基于stm32的智能家居灯光控制c语言源程序
(C language source control based on the smart home lighting stm32)

文件列表:
stm32灯光控制 (0, 2014-11-02)
stm32灯光控制\boot (0, 2014-11-02)
stm32灯光控制\boot\cortexm3_macro.s (10308, 2008-07-14)
stm32灯光控制\boot\stm32f10x_vector.s (12871, 2008-07-14)
stm32灯光控制\cortexm3_macro.lst (26083, 2014-02-25)
stm32灯光控制\delay (0, 2014-11-02)
stm32灯光控制\delay\bin.txt (86, 2014-01-19)
stm32灯光控制\delay\delay.c (2007, 2014-01-19)
stm32灯光控制\delay\delay.h (638, 2013-03-23)
stm32灯光控制\delay\usart.h (861, 2014-01-24)
stm32灯光控制\init (0, 2014-11-02)
stm32灯光控制\init\RTX_Conf_CM.c (6017, 2011-12-02)
stm32灯光控制\init\STM32_Init.c (308257, 2011-09-20)
stm32灯光控制\init\STM32_Init.h (1185, 2010-02-25)
stm32灯光控制\init\STM32_Reg.h (8609, 2010-02-25)
stm32灯光控制\interrupt (0, 2014-11-02)
stm32灯光控制\interrupt\stm32f10x_it.c (46946, 2014-02-25)
stm32灯光控制\interrupt\stm32f10x_it.h (3842, 2008-07-14)
stm32灯光控制\lib (0, 2014-11-02)
stm32灯光控制\lib\inc (0, 2014-11-02)
stm32灯光控制\lib\inc\cortexm3_macro.h (2225, 2013-03-26)
stm32灯光控制\lib\inc\stm32f10x_adc.h (18854, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_bkp.h (6911, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_can.h (12279, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_conf.h (6194, 2013-03-26)
stm32灯光控制\lib\inc\stm32f10x_crc.h (1881, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_dac.h (9598, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_dbgmcu.h (2859, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_dma.h (17974, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_exti.h (5776, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_flash.h (13996, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_fsmc.h (19041, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_gpio.h (14820, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_i2c.h (15479, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_iwdg.h (3414, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_lib.h (3200, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_map.h (28290, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_nvic.h (19198, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_pwr.h (3865, 2008-07-14)
stm32灯光控制\lib\inc\stm32f10x_rcc.h (14783, 2008-07-14)
... ...

1.PC0-->KEY1--8 2.PC1-->KEY2--9 3.PC2-->KEY3--10 4.PC3-->KEY4--11 5.PB10-->USART3_TX-->RF_RXD--29 //串口3 6.PB11-->USART3_RX-->RF_TXD--30 7.PB12-->红外4--33 8.PB13-->红外3--34 9.PB14-->红外2--35 10.PB15-->红外1--36 11.PA8-->IO1--41 12.PC9-->IO2--42 13.PA15-->IO3--50 14.PA9-->USART1_TX-->STM32_TXD--42//串口1 15.PA10-->USART1_RX-->STM32_RXD--43 16.PB1-->DTR--27 17.PA0-->IO7--14 //IO口驱动继电器,点亮LED PB15-->接红外1检测球。串口3采用RF100无线通信。接受到无线的信号后,串口1发送数据给PC,同时。 同时,当接下按键PC0-->key1后,串口1同样发送据给PC。 首先要打开串口1,串口3的时钟 其次打开定时器,和IO口的时钟 再次配置串口中断,IO中断 工作流程:当9个中断(下降沿)中任何一个中断产生时,需要通过串口1发送数据给PC机,PC机控制相应 的灯亮起。下降沿之后会有上升沿,也通过上升沿发送一串数据给PC机。 同时能过串口3无线传输数据到小球,此时小球一闪一亮。 PC0--按键1 PC1--按键2 PC2--按键3 PC3--按键4 PC9--按键5 PB15--按键6 PB14--按键7 PB13--按键8 PB12--按键9 发送CC 88 66能量球一闪一亮

近期下载者

相关文件


收藏者