永发信息网

STM32串口有第9位设置么

答案:2  悬赏:30  手机版
解决时间 2021-04-04 04:06
  • 提问者网友:玫瑰园
  • 2021-04-03 12:31
STM32串口有第9位设置么
最佳答案
  • 五星知识达人网友:酒醒三更
  • 2020-09-22 21:42
看你们通讯格式,一般的话是8位的,8N1.
全部回答
  • 1楼网友:话散在刀尖上
  • 2020-02-20 02:34
usart_initstructure.usart_baudrate = 9600; usart_initstructure.usart_wordlength = usart_wordlength_9b; usart_initstructure.usart_stopbits = usart_stopbits_1; usart_initstructure.usart_parity = usart_parity_no; usart_initstructure.usart_hardwareflowcontrol = usart_hardwareflowcontrol_none; usart_initstructure.usart_mode = usart_mode_rx | usart_mode_tx; usart_initstructure.usart_clock = usart_clock_disable; usart_initstructure.usart_cpol = usart_cpol_low; usart_initstructure.usart_cpha = usart_cpha_2edge; usart_initstructure.usart_lastbit = usart_lastbit_disable; usart_init(usart1, &usart_initstructure); usart_cmd(usart1, enable); usart_setaddress(usart1, 0x1); 请问上面一句是否就是设置usart1的第9位,就是地址码 如果我要把地址位置0,是否就是usart_setaddress(usart1, 0x0);
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯