Embedded stm32 review (working with) --- external interrupt knowledge of the principles 2020.3.19

introduction

Embedded continue to update this series, again, this series I tend to use the register to write specific reasons:
First, compared to register more difficult to write to the library functions, the manual was written specifically according to the chip.
Second, so that everyone can be in the form of the register more clearly why each line of code written in this value, specifically how to write.

Principle components:

1. First ask you a question:
we should have used an inertial sensor: MPU-6050 / MPU6500, then you have not noticed IIC protocol used in addition to the VCC, GND, SCL, SDA of the four ports In addition, there is a port called the MPU-INT, then the port is what effect?

2. In fact, this is called the MPU-INT external interrupt pin. We articles among the former also learned IIC communications-related knowledge, such as: the master device to send and receive data are one-way, and we know IIC communication is half-duplex communication, that is sent and received data can not be performed simultaneously, but the device is provided from the data acquisition device, the data is collected, but there will be a problem in the communication process is generally used: If the master device to the slave device while transmitting data collected from the device data is full , then the time from the device wants to send data to the master device, the master and slave time should be coupled with a line for transmitting data between devices, this line is called the external interrupt.

Published 27 original articles · won praise 56 · views 4464

Guess you like

Origin blog.csdn.net/qq_40544107/article/details/104973520