Communication example of configurator and 51 or PIC microcontroller 10

Updated on technology 2024-02-09
19 answers
  1. Anonymous users2024-02-05

    First of all, it is recommended that you use a serial port.

    1. Simple hardware interface: find a MAX232 manual with a complete level translation interface circuit.

    2. The software of the single-chip microcomputer is simple: many single-chip microcomputers have UART logic circuits, which is very convenient to use, even if you don't have them, you can find two IO pins and use the timer to make a virtual one.

    Then, it's VB. Make a data segment for the data you want to wear, and use the same format for PC and single-chip microcomputer, so that there will be no bit errors.

    Then, save the data obtained by VB as a file in a certain format (such as Excel), and then call the data in it by Configurator, pay attention to the frequency not too fast, and pay attention to the file name and delete the old file regularly.

    Configurator does not currently support driver development, especially self-made boards. I've used this before, but in the lab. It is strongly recommended that you do not do this! It has no practical application value. Costly!!

  2. Anonymous users2024-02-04

    There is a single-chip microcomputer driver, but I don't know much about single-chip microcomputer, I have a document here:

    MCU HEX driver.

    Product Manual.

    1. Introduction to product functions.

    a) Overview of hardware functions (brief description of hardware device capabilities):

    b) Description of supported protocols (explain the supported protocols, especially for multi-protocol devices, be sure to indicate which protocols the driver supports and to what extent the protocols are supported).

    Manufacturer-specific agreements.

    c) Description of supported hardware models:

    2. How to add devices.

    a) When defining the device in Configurator, select:

    Smart Module] >MCU] >Fixed Verification MCU Hex] >com]b) Special Description of Device Wizard Page Options:

    Whether to select serial port Yes No.

    Is there an address selection page Yes No.

    Communication: rs232, rs422, rs485, special card, network card.

    Description com

    Communication card name (if you don't have one, you don't need to fill it in).

    c) The recommended settings for the communication parameters of serial port devices are as follows.

    Set items: baud rate, data bit length, stop bit length, parity bits.

    4. Description of the register column.

    Register Name Channel Range Data Type Read and Write Attributes Variable Type Register Description byte 0 65535 byte Read and Write i o Integer uint 0 65535 ushort Read and Write i o Integer Float 0 65535 Float Read and Write i o Integer Description: 1, For write-only registers, set the acquisition frequency to 0

  3. Anonymous users2024-02-03

    The configuration king doesn't know how to provide a development driver.,It doesn't seem to be provided.,So it seems that you can only change the protocol of the single-chip microcomputer.,It's OK to do a standard modbus.,Go to the next resource package on the Internet or something.,Or copy some ** yourself.,It's good to change it.。

  4. Anonymous users2024-02-02

    The common practice is to open a modbus communication interface in the microcontroller, and there is a modbus driver in the configuration king, which we have done with dsp.

  5. Anonymous users2024-02-01

    The configuration king doesn't know how to provide a development driver.,It doesn't seem to be provided.,So it seems that you can only change the protocol of the single-chip microcomputer.,It's OK to do a standard modbus.,Go to the next resource package on the Internet or something.,Or copy some ** yourself.,It's good to change it.。

  6. Anonymous users2024-01-31

    Configurator uses network or serial port to achieve communication, your development board should have rs232 serial port, then use serial port, and connect with the computer with serial port, however, you need to know the packet format sent by configurator, in order to receive and reply correctly.

  7. Anonymous users2024-01-30

    The common practice is to open a modbus communication interface in the microcontroller, and there is a modbus driver in the configuration king, which we have done with dsp.

  8. Anonymous users2024-01-29

    Generally, if you have other communication chips, you can customize the corresponding protocol!

    Of course you can develop with VB or VC.

  9. Anonymous users2024-01-28

    Generally, CAN or 485 communication interface is used.

  10. Anonymous users2024-01-27

    This is the 51 MCU routine communication routine on the official website of Weilun, I hope it will help you.

  11. Anonymous users2024-01-26

    The configuration software generally follows the modbus protocol. In fact, you can use software such as VB to define your own communication protocol and operate it through the serial port.

  12. Anonymous users2024-01-25

    It is converted by a d and then written to memory, and the configuration software reads it.

  13. Anonymous users2024-01-24

    Can the configuration king write the serial port directly? It doesn't seem to work!

    I've used modbus and config king communication.

    The lower computer can directly seal a protocol stack.

  14. Anonymous users2024-01-23

    Generally, the configuration king is the main station.

  15. Anonymous users2024-01-22

    It depends on what your project needs.

  16. Anonymous users2024-01-21

    According to the Configurator User Manual, users can develop their own drivers, that is, they can customize the communication. For details, please refer to Section 4 of Chapter 6 of the Configurator User Manual.

  17. Anonymous users2024-01-20

    Yes, as long as it is consistent with the communication protocol of the microcontroller.

  18. Anonymous users2024-01-19

    First of all, it depends on what drive equipment you need to use, select the right drive device, set the address, you can set the variable in the data dictionary, Gen Bixiao according to the agreement Jinghui Liangqing set the i o variable, set the frequency of the broadcast command, and then output it on the screen.

  19. Anonymous users2024-01-18

    Self-receiving configuration king and single-chip microcomputer communication instance. How can you say this three or two sentences clearly?>

Related questions
12 answers2024-02-09

Configuration King. The created projects are stored in the format of a folder, and the project name is the name of the folder under the storage path. file format inside. >>>More

14 answers2024-02-09

Estimate your IE controls and plugins, no change in it. port80, whether the inbound rule is turned on. Look closely at your DWS homepage and there is a question mark indicating that it is not configured correctly. >>>More

24 answers2024-02-09

Specifically, and are called surround sound systems, where the integers "5" and "7" refer to the specific number of speakers, and the decimal point "1" refers to the meaning of heavy bass. >>>More

17 answers2024-02-09

If you want to know which one is better, it is recommended that you can take your children to a trial class to see which one is more suitable for your child to study. >>>More

14 answers2024-02-09

Not married yet, nor have they broken up. I like Wang Lele very much, the two are a good match. >>>More