正点原子485通信
所属分类:通讯编程
开发工具:C/C++
文件大小:4575KB
下载次数:12
上传日期:2020-02-15 21:26:56
上 传 者:
zglikely
说明: 正点原子的 stm32 485通信实验代码。
(STM32 485 communication)
文件列表:
实验26 485通信实验 (0, 2020-02-14)
实验26 485通信实验\CORE (0, 2020-02-14)
实验26 485通信实验\CORE\core_cm4.h (109142, 2014-07-17)
实验26 485通信实验\CORE\core_cm4_simd.h (22735, 2014-07-17)
实验26 485通信实验\CORE\core_cmFunc.h (17146, 2014-07-17)
实验26 485通信实验\CORE\core_cmInstr.h (20513, 2014-07-17)
实验26 485通信实验\CORE\startup_stm32f40_41xxx.s (29605, 2014-08-02)
实验26 485通信实验\FWLIB (0, 2020-02-14)
实验26 485通信实验\FWLIB\inc (0, 2020-02-14)
实验26 485通信实验\FWLIB\inc\misc.h (6924, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_adc.h (32880, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_can.h (27318, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_crc.h (2416, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_cryp.h (14481, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_dac.h (14946, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_dbgmcu.h (4296, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_dcmi.h (12977, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_dma.h (28882, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_dma2d.h (19692, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_exti.h (8012, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_flash.h (24467, 2014-08-04)
实验26 485通信实验\FWLIB\inc\stm32f4xx_flash_ramfunc.h (3275, 2014-08-04)
实验26 485通信实验\FWLIB\inc\stm32f4xx_fmc.h (44924, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_fsmc.h (27181, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_gpio.h (23548, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_hash.h (10084, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_i2c.h (31939, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_iwdg.h (4323, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_ltdc.h (21191, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_pwr.h (7728, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_rcc.h (30063, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_rng.h (3958, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_rtc.h (40546, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_sai.h (25470, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_sdio.h (22777, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_spi.h (21178, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_syscfg.h (8974, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_tim.h (51689, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_usart.h (17935, 2014-08-01)
实验26 485通信实验\FWLIB\inc\stm32f4xx_wwdg.h (3542, 2014-08-01)
... ...
实验器材:
探索者STM32F4开发板
实验目的:
学习RS485总线的使用.
硬件资源:
1,DS0(连接在PF9)
2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面)
3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A6接RS)
4,按键KEY0(PE4)
5,串口2(波特率:9600,连接在PA2/PA3)
实验现象:
本实验通过连接两个探索者STM32F4开发板的RS485接口,然后由KEY0控制发送,当按下一个开发板的KEY0
的时候,就发送5个数据给另外一个开发板,并在两个开发板上分别显示发送的值和接收到的值.本实验也可
以通过USMART调用RS485_Send_Data函数,实现指定数据的发送.
注意事项:
1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源).
2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!!
3,P9跳线帽的连接状态必须是:485_TX连接PA3,485_RX连接PA2.
4,RS485接口的A/B线不能接错,必须A接A,B接B.
正点原子@ALIENTEK
2014-10-25
广州市星翼电子科技有限公司
电话:020-38271790
传真:020-36773971
购买:http://shop62103354.taobao.com
http://shop62057469.taobao.com
公司网站:www.alientek.com
技术论坛:www.openedv.com
近期下载者:
相关文件:
收藏者: