switching volume, such as whether the Reading Display board has a button press, water flow switch state. 0x03: read one or more hold registers, such as reading one or more setting parameters 0x010: Write one or more hold registers, such as write set parameters 0x06: Write a single hold register, such as write a single set parameter 0x04: read one or more input registers, such as reading specific key values, ad-collected information, etc. Modbus protocol function codes and FAQs Pasted from
Basic principles and practice of Linux C programming (2018-06-16-19:12:15)Basic principles and practice of Linux C language programmingEfficient learning with Purpose: what to do and how to use itRe-knowledge of C language
C language is a universal, process-oriented programming language, which is widely used in the development of system and application software.
is a way of communication between humans and computers.
ANSI C: Is the standard of C language, in order to avoid the d
The so-called signal (Singal), in my understanding, in fact, and microcontroller development in the same as the interruption, but it is not provided by the system hardware, but the software operating system support a reminder mechanism.The processing method after receiving the signal, generally consists of three kinds:(1) The first is similar to the interrupt handler function, and for the signal to be processed, the process specifies a handler functio
net and media folders.Accessibility-These drivers provide support for some assistive devices. In Linux 3.9.4, only one driver in this folder is the Braille device driver.ACPI-Advanced Configuration and Power Interface (acpi:advanced configuration and Power Interface) drivers are used to manage power usage.Amba-Advanced Microcontroller Bus architecture (amba:advanced microcontroller bus Architecture) is a p
story,JVMcreated a new platform for allJavaThe program can only run on this platform, andCand theC + +code can be run on dozens of different platforms, from a source point of view,Cand theC + +is cross-platform, andJavaNo, No. The source code described here has been written and never compiled. So look at this.Javacross-platform is not really a little chicken? This argument is also biased, because Java and C are different in the direction, so the responsibility of cross-platform is different,C i
following figure is a socket relay module, the main function is used for switch sockets, the specific device is y14f-ss-105lmw-115
The following figure is a metering module for recording the use of electricity, the specific device is ATT7021CU
From the use of these several modules, basically we are able to identify some associations, microcontroller is the core of the control center, the management of WiFi modules for networking and communicati
In MP3 this project, in addition to the decoding module, the most important is the U disk read and write module, we need to send music through the U disk to the microcontroller, and then output, and in this module we choose the CH375 this chip.
Similarly, because the project is still in the hardware circuit production phase, today can only briefly introduce some of its functions and its connection, the specific software read and write in detail later.
bunch of crap is in front of you, and here's a little bit of something useful:① we choose the controller is Arduino Due. Because using it to develop simple and convenient fast, and clock frequency 84Mhz, compared to the ordinary stm32f1 is not inferior. Originally wanted to use the raspberry pie, but the idea of using raspberry pie may be illegal, so still forget.The ② camera chooses the Pixy. Using Pixy image recognition sensor to detect small ball position coordinates. Pixy supports multiple
while (1) is used in single chip microcomputer, while
(1);
Meaning: This is a dead loop, and the code no longer executes downward.
Application:
1. Generally in debugging code, in order to detect a part of the code is OK, to prevent the subsequent code interference execution results, will be in the observation point plus while (1);
2. Some code detects a run error, throws an error (printing, setting the error code), and then enters while (1);
3. when the machine needs to be reset, stop feeding t
Question: Send a 0-255 in 16 of any number, when the microcontroller received after the dynamic display on the digital tube, the baud rate is self-determined.
#include
Question: Send any byte data from the computer in 9600bps, when the microcontroller receives the data, add a sequence number before this data and send it together with this data to the computer, when the serial number exceeds 255 zero.
#in
operation.Modbus-rtuOne message analysisFirst of all to declare our purpose, we are to two devices communication, with the Modbus protocol. The above briefly describes: "Message" "CRC check" "function number".In the microcontroller to take out a portion of memory (RAM) for two device communication, such as:A comment following the array, explainingOX[20] represents the output coil, accessed with the function code 0x01,0x05,0x0f, the opening address is
operation, and can be simple processing of data, such as black and white recognition.FIFO Camera factory detection, the purpose is to ensure quality, to prevent problems to the two sides to bring a variety of trouble.Introduction of OV7670 with FIFO module1. Introduction:The OV7670 with FIFO module is a module with buffer storage space for slow MCU to realize image acquisition control. This module adds a FIFO (first-in, in-out) memory chip, also contains 30w pixels CMOS image sensor, 3.6mm foca
transmission rate. The maximum transmission rate in low-speed mode is 10.4 kbps. In medium-speed mode, the normal LIN transmission mode has a maximum transmission rate of 20 kbps. In high-speed mode, the maximum transmission rate is 40 kbps; the maximum transmission rate in Flash mode is 11 5 khps. to avoid interrupting the transmission process, the transmission rate cannot be changed in normal mode. The correct method is to disable the sending function first, then change the transmission rate,
Management Program interface of the PC.
2.1 software design for Single-Chip Microcomputer Control
The Management Unit is composed of a single-chip microcomputer and a serial port. It uses a PC to configure the EEPROM or the register of the switching chip. The single-chip microcomputer mainly reads and writes registers and communicates with the PC. The serial port serves as a connection to the PC. The microcontroller and the serial port also have a le
1. Use of MicrochipZigBee protocol stack
(1) Prepare hardware, install source files and development tools
You can purchase the PICDEMZ demo toolkit for the MicrochipZigBee protocol stack in China. You can purchase a set of tool kits to test the ZigBee protocol. In addition, you can also create an experimental board for the PIC microcontroller and wireless transceiver that comply with the MicrochipZigBee protocol stack interface.
You can download the c
on Wednesday. In general, the vendor will fix this vulnerability by adding a password to the Protocol in a new firmware version. However, this approach is not feasible for affected SimpliSafe products because currently running hardware microcontroller is a one-time programmable program. This means that it is impossible to simply upgrade the existing system; all existing buttons and base stations need to be replaced.
To connect a hacker to the Simpli
devices / circuit control, using a traditional serial port or parallel port is not appropriate. So on the microcontroller chip will generally provide a "universal programmable io Interface", that is gpio . The interface has at least two registers, namely "Universal IO Control register" and "Universal IO data register". All data registers are directed to the outside of the chip, and the function of each bit in this register, that is, the direction of
The stm32 standard peripheral library is a peripheral driver for the entire series of stm32 chips. With it, we can greatly accelerate the development of stm32.First, download the latest stm32 standard peripheral library from the website of st. The latest version is v3.5.0.
Decompress the ZIP file to obtain the following folders and files:Stm32f10x_stdperiph_lib_v3.5.0 \_ HtmrescLibrariesProjectUtilitiesRelease_notes.htmlStm32f10x_stdperiph_lib_um.chm
Among them, libraries contains the source cod
determine the category of the device, and then implement the Basic USB communication protocol and the category communication protocol of the device. For example, the USB flash disk belongs to the mass storage device. Therefore, in addition to the basic USB communication protocol, the UFI command specification in the large-capacity storage equipment specification must be implemented. Because Windows supports the mass storage protocol, the USB flash disk only needs to follow the mass storage prot
microcontroller, take 0.1 μF ~ Between 0.01 μF.
3. Add storage and capacitor when necessary
Each 10-piece integrated circuit requires a charge-discharge capacitor, or storage capacitor. The capacitance size can be 10 μF. The large capacitor is usually used as the electrolytic capacitor, but when the filtering frequency is high, it is best not to use the electrolytic capacitor. The electrolytic capacitor is rolled up by two layers of film. The structu
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.