In-depth analysis of 485 not receiving string problems

Source: Internet
Author: User

Problem Description:

Recently encountered a problem, stm32 with 485 output, but only the output, the input data Stm32 received:

Test Description:

The dir port of test 485 is 3.3v, the general pin level is 0 or 1 level when dangling, and the pc6,pc6 of Dir-stm32 is low-level set with Gpio_resetbits ().

However, after the next, the measurement is 3.3v, so the board can only send, can not receive

Solution:

After checking to find pc6-9 not initialized, how to do it, so I initialize the push-pull output, also known as the drop-down output, the open-drain output is the pull-up output,

Push-Pull output: internal to a 0, equivalent to the GND, give a 1 equivalent to connect VCC

Open-Drain output: internal to 0, connect GND, to 1 if the external pull-up resistor is required to be 1

And then it's solved, but one problem is that the output is a bit less than a byte, and then I delay a byte of time. Dir set 0;

It over, in fact, a lot of problems to know how to do, more brain, and smart people play, this will become more intelligent.

In-depth analysis of 485 not receiving string problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.