DS18B20 51 MCU programming problems

Updated on technology 2024-04-01
8 answers
  1. Anonymous users2024-02-07

    Tell me your email address and I'll send you the information.

  2. Anonymous users2024-02-06

    This means that the electrical structure needs to go through a sufficient resistor pull-up at this time, so as to ensure that the 18B20 has the ability to pull the bus down later.

    The bus master is obliged to generate an initialization sequence that meets the requirements, so it is necessary to write a program......

  3. Anonymous users2024-02-05

    DQ is actually the data pin that you connect to 18b20 on your microcontroller, but the name is changed with a macro definition.

    Since the first line of the program sets the pin low, it needs to be set high again so that the pull-up voltage of the external pull-up resistor can be transmitted to 18b20, otherwise it will always be low.

  4. Anonymous users2024-02-04

    Hardware, which does have a pull-up resistor.

    However, even with a pull-up resistor, the microcontroller can output 0.

    Required at 18b20High level(Release Bus), you write a program, and you have to write a statement that outputs 1.

    Required at 18b20Low level, when you write a program, you have to write a statement that outputs 0.

    Write the program however you want.

    You don't have to care, the resistors of the hardware.

  5. Anonymous users2024-02-03

    Just pull the resistor on the data line, keep it high, and the MCU will not operate.

  6. Anonymous users2024-02-02

    1. What is the function of the three pins of the DS18B20? Answer: The three pins of the DS18B20 are the positive terminal of the VCC power supply, the negative terminal of the GND power supply, and the DQ data terminal.

    2. What is the reset time of DS18B20? Answer: The reset time of the DS18B20 is 480us How can I tell if the DS18B20 is working properly?

    A: This feature does not exist. 4. How to realize the write 0 operation of DS18B20 on the single-chip microcomputer?

    A: This feature does not exist. (Are you saying how to start reading DS18B20, boot only need to keep the interface between the MCU and DQ to the low level for more than 1 subtle time) 5, what is the resolution of DS18B20?

    How do I set the number of resolution bits? A:"The resolution of the DS18B20 is at -55 degrees Celsius, and the resolution can be quantified as a bit corresponding to a unit of temperature for:

    Celsius, Celsius, Celsius, Celsius. 6. What is the temperature data of DS18B20? How will you distinguish between positive and negative temperatures?

    A: The temperature data of DS18B20 is a 16-bit binary number. The high 5 bits are used to determine the positive and negative positions (the temperature is negative when the high 5 bits are 1, and the temperature is positive when the high 5 bits are 0), and the method of data processing, because the negative data is stored in the form of complements, the complements should be converted into the original code accordingly when displayed.

    Still have any questions? You can follow up on the above hopefully helpful to you

  7. Anonymous users2024-02-01

    Power GND Ground DQ Data Transmission. 3.There is no reply pulse signal.

  8. Anonymous users2024-01-31

    Why don't you go and read its documentation.

Related questions
4 answers2024-04-01

The display temperature part is done, which means that you have completed the reading of the DS1820. In this case, you set a value in the program for comparison, greater than or less than a certain value output. >>>More

6 answers2024-04-01

The differences between 2DS and 3DS are: 3D display effect is different, distribution region is different, and inclusion is different. >>>More

5 answers2024-04-01

b2bb2b(business

tobusiness, 2 (two) is pronounced the same as to. ) refers to a market area. marketing >>>More

9 answers2024-04-01

B1B2 is downgraded to C1B2. If you hold a B1B2 combined driver's license, and the driver's license with 12 points deducted for driving a motor vehicle violation will be cancelled by the traffic department, the B1B2 driver's license will be downgraded to a C1B2 driver's license, and the motor vehicle driver will handle the downgrade and renewal business within 30 days. >>>More

13 answers2024-04-01

10Cr18Ni9NBCU3BN is stainless steel, which is stainless steel for ultra (super)critical boilers.