1481 views|1 replies

9

Posts

0

Resources
The OP
 

stm32f103rct6 serial port 485 can receive, send error [Copy link]

Please help. I am facing such a problem. The 485 communication can be received and the receiving interrupt can be entered. However, an error occurs when sending the array. The sending is not executed or the sending is incorrect. The control pin also changes state. There is also a delay after the sending function. The TX pin frequency is also set during initialization. There is no problem with the hardware design. The pin is only used in 485.

The initialization code is as follows:

Interrupt

Main function call

This post is from stm32/stm8

Latest reply

Your receiving and sending do not seem to be closely related. You only allow sending after receiving a data of 0xb5. You can focus on sending to see if there is any problem. First turn off the receive interrupt, and then send periodically to see if it works properly.   Details Published on 2022-11-1 16:16
 

6069

Posts

4

Resources
2
 

Your receiving and sending do not seem to be closely related. You only allow sending after receiving a data of 0xb5.

You can focus on sending to see if there is any problem.

First turn off the receive interrupt, and then send periodically to see if it works properly.

This post is from stm32/stm8
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Basic concepts of antenna

Complete Antenna Manual Basic Concepts -------------------------------------------------------------------------------- ...

DIY RF Power Amplifier - Record the whole process

This post was last edited by RF-刘海石 on 2018-9-10 11:05 I haven't written a post here for a long time. I've been eithe ...

After upgrading and maintenance, we are working hard for three years

This post was last edited by philips_lu on 2020-3-24 22:19 Recently a friend gave me an old Dell computer, but he was i ...

The magnetic field formed by a wire in a vacuum

The formula B=μH can be found in various materials, but the calculation relationship between the current of a single id ...

Smart MM32 eMiniBoard Review Summary

There are also development boards available for application. Interested users can apply for them here: https://bbs.eewor ...

Sound detection system

# Sound Detection System##Sound Detection System###The sound detection system is used to capture sound and display the t ...

Single Channel Sonar Receiver - Active Butterworth Filter

This post was last edited by bqgup on 2021-6-21 09:58 #ActiveButterworthFilter##ButterworthFilterCharacteristics545082 ...

[Flower carving DIY] Interesting and fun music visualization project (11) --- WS2812 fantasy light strip

I had the urge to do a series of topics on sound visualization. This topic is a bit difficult and covers a wide range of ...

Award-winning topic: Talk about the most powerful domestic instruments and meters

Domestic products are just in time. Come and tell us about the domestic instruments and meters you know, and give them a ...

Digital Signal Processing Based on FPGA (2nd Edition)

This book focuses on Xilinx's new generation 28nm process chip 7 series FPGA, combined with Xilinx's new generation deve ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list