This semester began to learn 51 single-chip microcomputer, I feel more simple than assembly, the key is that 51 compilation has a good ide, it is more convenient to practice, this series mainly records 51 learning experience. Below are the basic instruction exercises: Org 0000 h
Ljmp main
Org 0030 H
Main:
CLR C
;
Cy = 0
SETB C
;
Cy = 1
MoV A, #1111.
Limit B
Anl a, # 111111b
;
And
Orl A, #1
0101010b
;
Or
Xrl a, #1111.
Limit B
;
Exclusive or
CLR
;
Accu
-service development toolsThe software development of intelligent hardware is modularized, the self-service interface is provided in the cloud, the function of intelligent hardware is described as data point, and a product function is defined in the cloud by simple form operation, and the system automatically generates embedded development protocol document, mobile application SDK and cloud interface.Gokit Development KitSmart Cloud self-help development platform for the Internet of Things open-
Solutions to common warnings and error messages of the Keil C Compiler
1. Warning 280: 'I': unreferenced local variable
Note that local variable I does not perform any access operations in the functionSolution: Eliminate the declaration of the I variable in the function
2 warning 206: 'music3': missing function-Prototype
It indicates that the music3 () function is not declared or is not declared externally, so it cannot be called by other functions.The solution is to write void music3 (voi
opportunity to use, and later do OTT voice (app voice) used in the WEBRTC 3A algorithm. After doing the audio development on the Android mobile platform, I used the Neteq on the WEBRTC, but used the earlier C language version, not the C + + version, and only involved the DSP module in Neteq (Neteq has two modules, MCU (Micro control unit , Micro Control Unit) and DSP (digital signal processing, signal Processing unit), the
batches. Two production batches of CPUs run as a dual processor, it is possible that a CPU burden is too high, while the other burden of a small situation, unable to maximize performance, and worse, may lead to the crash, therefore, should choose the same batch of processors to build the SMP system.3. Asymmetric dual-core MCU basic knowledge and inter-core communication http://www.elecfans.com/emb/app/20120326265555.htmlThis paper begins with the com
control circuit board, interactive operation panel, handle, and power supply battery box. It is usually an active device and needs to use a power-driven motor to control the execution part in the lock. At the same time, in the installation process of the door lock, due to reasons such as inconvenient power supply and battery power supply, smart door locks have strict requirements on the power consumption of the entire device under the conditions of battery power supply. The power consumption of
Simulation of I2C bus multi-master communication research and Software Design
Author:■ Zheng Xuyang, Xi'an University of electronic science and technology, Li Bingbing, Huang Xinping
Abstract:This paper introduces the principle of multi-master communication simulating I2C bus, and proposes a new implementation method. This method uses delayed receiving comparison to implement arbitration, so that common Microcontroller (MCU) without I2C interfaces can
subject.
The example of this development is based on WinCE's interrupted development. The specific content is described below:
Hardware environment: 1. the toggle-Toggle potentiometer is used to trigger the interruption and generate some values (similar to the function of pressing keys );2. MCU, used to generate an interrupt and send the value to the arm subject;3. Arm, used to accept the subject of MCU in
Document directory
1.1.1 solution Selection
1.1.2 Analysis of Total Power Supply Control Scheme
1.1 power management circuit 1.1.1 solution Selection
When using the power generator, the power supply must be effectively managed to save power, reduce power consumption, and prolong the life of the battery. Common Power management solutions include low power consumption management solutions and system power failure management solutions.1. Low-Power Management Solution
The low-power solution is t
limit the number of concurrent H.323 connections in the network and the total amount of bandwidth that can be obtained by H.323 applications. H.323 provides a means to connect a video conference based on circuit switching or ISDN. H.323 supports multi-point conference and multi-point conference broadcast (Multicast. H.323 enables interoperability between multimedia products and applications of different vendors.
Composition of A Video Conferencing System
Array-to-struct conversion and combination of the Union and bit segments
When porting the driver code, we found that the following code is used in the project:
Typedef struct BlkTestTag {
Uint16_tm_u1Var1;
Uint8_t reserve [2];
Uint32_tm_u4Var2;
} BlkTest;
Uint8_t test_array [8] = {0x01,0x02,0x00,0x00,0x05,0x06,0x07,0x08 };
PblkTest = (BlkTest *) test_array;
U2Var1 = pblkTest-> m_u1Var1;
U4Var2 = pblkTest-> m_u4Var2;
The intention is to give the struct value in the form of an array constant.
1. OverviewThis design uses the FPGA technology, realizes the 8051 monolithic microcomputer soft core in the FPGA, the external SPI Flash code data loads into the FPGA internal RAM, then resets the MC8051, realizes the external flash startup MC8051.2. System Block Diagram8051 uses Oregano Systems Inc. open source MC8051 soft core. SPI Flash uses the W25Q16 chip to store 8051 of code programs. The system dia
How to improve the anti-jamming of single-chip microcomputer to make you less detours have made the product of friends have experience, a design seemingly simple, hardware design and code writing quickly done, but in the debugging process but more or less accidents, these are anti-jamming ability is not enough embodiment. Let's discuss how to make your design avoid detours: anti-interference embodied in 2 aspects, one is hardware design, the other is software writing. Here is the key to remind:
1.IIC2.SPI3.8080/86004.RGB interface5.mipi_dsi6.TFT interface7.MCU Working characteristics1.IIC
I²c bus, is the abbreviation of inter-integrated circuit. Inter-ic means the integrated circuit used for interaction, which consists mainly of two-way serial clock line SCL and bidirectional serial data line SDA two lines.
I²c Bus is a serial bus introduced by pHLIPs company, which is a high performance serial bus with multi-host system, includ
useless, we should fill them with 1.Then follow ff.
Below are several important marks--------------------
SoI = start of image = 'ffd8'This mark appears only once at the beginning of the fileEOI = end of image = 'ffd9'All JPG files end with ffd9
Rsti = ffdi (I = 0 .. 7) [rst0 = ffd0, rst7 = ffd7]= Reset markUsually interspersed in the data stream, I think it is a concern about JPG decoding problems (should be used with dRI ).However, many JPG files do not use it.
(SOS --- rst0 --- rst1 -- rst2
1. UART Communication Exception 1.1. PhenomenonFriday debugging CSR8670 encountered a serious problem: in the Xide environment debugging, CSR8670 received the data from the MCU will respond normally. Once running offline, the communication between CSR8670 and MCU is abnormal, which is as follows:
The MCU sends an X-byte command to the Csr8670,uart task t
Flash is the full name of Flash EEPROM, but it is different from the conventional EEPROM operation methodFlash and EEPROM The biggest difference is the flash by sector operation, EEPROM operation by Byte, the two addressing methods are different, the structure of the storage unit is also different, flash circuit structure is simpler, the same capacity for the chip area is small, the cost is naturally lower than EEPROM, Therefore, it is suitable for use as program memory, and EEPROM is more used
Keil the role of INTRINS.H in the header fileIn C51 microcontroller programming, the function of the header file INTRINS.H will make you as simple as when using the assembly.Intrinsic functionsDescribeCrol_ character Loop left shift_cror_ character Loop Right shift_irol_ integer Loop left shift_iror_ integer Loop Right Shift_lrol_ Long integer loop left shift_lror_ Long integer loop right shift_NOP_ null operation 8051 NOP instruction_testbit_ test an
evaluations, I decided to use the LD3320 chip for design at the beginning of the design. At the same time, I can also understand and evaluate speech recognition technology. After the prototype test is stable, we can entrust the speech recognition company to customize the program. This can save the product cost, reduce the price of product sales.
Using LD3320, the chip is the most popular speech recognition scheme on the market today.
Use a low-cost
1. Monitor machine without voltage
(1) Power failure: This is a very simple fault, the general LCD display extension inside the power supply and external power supply two, outside the common some. Regardless of that power supply, its structure is much simpler than the CRT monitor's power supply, and is usually vulnerable to a number of small components, such as the safety pipe, Rectifier bridge. 300V filter capacitor, power switch, power management IC, rectifier output diode, filter capacitor,
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.