There are many ways of communication between single-chip microcomputer and PC. The following program mainly uses the asynchronous serial communication of 51 single-chip microcomputer.I. 51 Serial Communication pins of Single-chip Microcomputer
P3.1 is the txd pin (Transfer Data) of the microcontroller, and p3.2 is the rxd pin (receive data) of the microcontroller ).
The txd pin can be used to output data fr
arm processors, such:
Uses 5-level pipeline operations: Command prefetch, decoding, execution, data buffering, and write-back. ARM9. it sets 16-character data buffering and 4-word address buffering. These 5 levels of streamline have been used by many of the RISC processors and are seen as the "classic" of the RISC structure ".3. Hardware Design3.1 S3C2410A MicrocontrollerThe ARM microcontroller S3C2410A on the circuit board uses ARM920T core, which c
LED and does not return a value.
This can be implemented in two ways: Query and interrupt.
A. First use query. It is better to judge, because it is implemented by using if judgment.
# Include
B interrupt method
# Include
In addition to the Code, these two operators feel that they are allowed to enable the interrupt. Because Ri is set to 1, it is automatically executed by hardware. You can use if to determine whether to enable the interrupt bits.
The above two are single-direction, and then
MSComm. commp ORT = 3' set COM1 as the serial portMSComm. nulldiscard = falseMSComm. portopen = true' open the serial port
MSComm. settings = "9600, M, 8, 9th" '11-bit serial communication mode, sending Address mode (mark, indicating that the mark is the address data, will automatically send position 1)Buffer (0) = moduleaddress // sends the channel address first. Note that the ninth bit of the data is 1 (address bit ID, used for MCU identification)MSComm. Output = buffer // output data. If the
Practical AT commands
The single-chip microcomputer and the GSM Engine Use at commands to communicate with each other. Therefore, it is necessary to understand the AT command format and several common commands. For more information, see the gsm07.05 and gsm07.07 specifications.
The at Command issued by the microcontroller is used to establish a communication link. The AT Instruction Set Command Format frames start with at. Below are several common at
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
, we do not recommend that you do this because it increases the possibility of misoperations to overwrite the ISP startup code. Datasheet:
Note that some menu options may be different in the new flashmagic version. This article uses the 1.74 version of flashmagic. By the time of the deadline, flashmagic has been upgraded to version 2.07.
2. Conclusion
Philips P89LPC932 is a high-speed 51 compatible microprocessor with comprehensive functions, simple use, reliable performance, and high cost per
I2C bus principle and application example
The I2C (Inter-Integrated Circuit) bus is a two-line serial bus developed by Philips to connect the microcontroller and its peripheral devices. The I2C bus was originally developed for audio and video devices in 1980s and is now mainly used in server management, including communication in the status of a single component. For example, the administrator can query each component to manage system
Widgeduino-unveiled on Kickstarter recently-is a smart and easy-to-configure window-based on Microsoft Windows platform and Microcontroller System Communication applications based on Atmel-based Arduino board.
Essentially, widgeduino communicates with the Microcontroller System through the serial port protocol or TCP/IP.
"This includes, among others, keyboard, LED light, pressure gauge, knob, Slider, therm
This article is original by purplesword (jzj1993). For more information, see. Original web site http://blog.csdn.net/jzj1993
Everyone has used calculators. Have you ever wondered how they are implemented? Here, I will not elaborate on the principle of the calculator, but will just give a brief introduction to the idea. After learning the microcontroller, you can also create a calculator. What should I do if I use a circuit for mathematical calculati
ProcessorIt is a low-power processor featuring low number of doors, short interrupt latency, and low debugging costs. The Cortex-M4F processor has the same functionality as the Cortex-M4 and includes floating point functionality. These processors are dedicated to applications that require digital signal processing.
Arm Cortex-M3 ProcessorIt is a low-power processor featuring low number of doors, short interrupt latency, and low debugging costs. It is designed for deep embedded applications tha
execution. In addition, if you place a breakpoint in such a condition block, even if the status is false, it may still be executed.
Even so, in my limited test, the compiler seems to refuse to generate conditional execution commands in the debugging configuration. Therefore, it should only happen after debugging and optimization code. Unfortunately, sometimes you have no choice but to do so.
Thumb
The thumb instruction set is a subset of the arm instruction set. After compression, the command i
of Freescale microcontroller. The book consists of three chapters and 24 chapters:
The first part is the basic knowledge. It briefly introduces the hardware structure and working principle, command system, C Language Development basics and common development tools of Freescale single chip microcomputer, and guides readers to familiarize themselves with the hardware features of Freescale single chip microcomputer, get started with programming.
The sec
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 diagram is as follows:650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/8C/A7/wKiom1
In the actual application, will encounter the host computer to a single-chip computer to send data, this time need to configure a microcontroller for the slave device, ready to accept dataTurn on event and cache interrupts when using hardware I²c I2c_itconfig (SLAVER_I2C, I2C_IT_EVT | I2c_it_buf, ENABLE);Then accept the data in the Interrupt service functionvoidSlaver_i2c_ev_irq_handler (void){ Switch(I2c_getlastevent (SLAVER_I2C)) {//ev1:addr=1
return) or two branches of if-else. This is because, although the Code passes through the processor as much as possible, some of the Code is not actually executed, that is, conditional execution. In addition, if you place a breakpoint in such a condition block, even if the status is false, it may still be executed.
Even so, in my limited test, the compiler seems to refuse to generate conditional execution commands in the debugging configuration. Therefore, it should only happen after debugging
sensors, intelligent actuators, and intelligent controllers. They are installed on the measurement and control site, it is used to directly obtain the parameters of the on-site equipment or perform relevant operations and functions. Compared with traditional devices, intelligent measurement and control units are equipped with CAN controller modules that support the CAN bus communication protocol. Therefore, Unit 3 can not only communicate with the host computer system, but also receive data fro
I will not talk much about it. I will first copy an introduction from the official website. The new atmel avr Studio 5
Atmel avr Studio 5 is the integrated development environment (IDE) for developing and debugging embedded atmel avr applications. the AVR Studio 5 ide gives you a seamless and easy-to-use environment to write, build, and debug your C/C ++ and your er code.
Introducing atmel avr Studio 5
Creating a new C Project for GCC in atmel avr Studio 5
How to build a project in atmel avr
nrf903. The circuit structure 2 is shown in.
The Atmel-based 8-bit low-power CMOS Proteus microcontroller, developed by ATMEL, features 1 MIPS/MHz performance, 16 K flash, 512-byte EEPROM, and 1 K-byte memory, 35 General I/O Ports, 32 general-purpose registers, three timers, internal and external interrupt sources, two programmable UART ports, SPI ports, and three power-saving modes that can be selected through software.The WGM-12864B module is a m
1 I2C communication protocol and S3C2410 chip Introduction
I2C (Inter Integrated Circuit) bus was launched by Philips in 1980. The I2C bus transmits information between the bus and the device using two wires (SDA and SCL), serial communication between the microcontroller and external devices, or bidirectional data transmission between the master device and the slave device. The two communication lines are pulled up to + 5 V through the pull-up resisto
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.