What are the characteristics of I2C and SPI?

Publisher:DazzlingSpiritLatest update time:2013-04-07 Source: 21icKeywords:I2C  SPI Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

What are the characteristics of I2C and SPI?

Answer: The I2C bus is a two-wire system that uses a hardware setting method for device addresses. Software addressing completely avoids the chip select line addressing method of the device, making the hardware system have a simple and flexible expansion method. The I2C bus is simple, compact, and easy to implement modularization and standardization.

SPI is a synchronous serial communication method introduced by Motorola. It is a three-wire synchronous bus. When there are multiple SPI interface microcontrollers, there should be one master and multiple slaves. At a certain time, only one microcontroller can be the master device; when multiple SPI peripheral devices are expanded, the microcontroller should use the I/O port lines to time-share the peripheral devices.

Keywords:I2C  SPI Reference address:What are the characteristics of I2C and SPI?

Previous article:IEEE802.11b wireless measurement and control system based on EPA protocol
Next article:Brief Introduction of Principle of Multi-machine Communication of Single-chip Microcomputer

Recommended ReadingLatest update time:2024-11-17 00:07

First look at I2C with STM32
1. Communication protocol.   I2C is a two-wire serial bus developed by PHILIPS and is a synchronous half-duplex bus. Data is valid When transmitting data, the SDA line must remain stable during the high level period of the clock. The high or low level state of SDA can only change when the clock signal of the SCL line
[Microcontroller]
First look at I2C with STM32
LED driver based on I2C interface
  LED is undoubtedly the hottest application at present. Whether it is handheld devices, game consoles, neon lights, billboards, etc., the dazzling colors and high-quality light can always attract people's attention at the first time. In front of the current numerous LED controllers, how to choose a product with rich
[Power Management]
LED driver based on I2C interface
Microcontroller I2C operation notes - taking AT24C04 as an example
1 Introduction     For most engineers, I2C is always a headache. Compared with UART and SPI, I2C timing is more complicated and I2C combination changes are more abundant. Here we take AT24C04 as an example to explain some points to pay attention to when using I2C. 2. AT24C04 operation diagram Figure AT24C04 opera
[Microcontroller]
Research on SPI communication between ARM and RF chip TRF796x
Introduction SPI (Synchronous Serial Peripheral Interface) was first proposed by Motorola and appeared in its M68 series microcontrollers. It is a full-duplex synchronous serial interface that adopts a master-slave mode architecture and supports multiple slave mode applications, but generally only supports a single M
[Microcontroller]
Research on SPI communication between ARM and RF chip TRF796x
Teach you how to use the LPC54102 dual-core kit firmware library SPI
  Progress has been a bit slow lately. Now let me share this part of my SPI. This time I used the two modules SPI0 and I2C2. I2C2 is responsible for collecting the data of the MPU6050, and then refreshing the data with OLED.   SPI is the abbreviation of Serial Peripheral Interface. SPI is a high-speed, full-duplex,
[Microcontroller]
Teach you how to use the LPC54102 dual-core kit firmware library SPI
51 MCU Introduction - IIC (I2C) Bus
UART is an asynchronous communication. For example, when a computer sends data to a microcontroller, the computer is only responsible for sending the data through TXD, and receiving the data is the responsibility of the microcontroller. I2C is a synchronous communication. The SCL clock line is responsible for the cloc
[Microcontroller]
51 MCU Introduction - IIC (I2C) Bus
STM32 fast read and write AT24C16 code simulation I2C
This post is only applicable to chips AT24C16 and below. The reading and writing methods of chips AT24C32 and above are different, so it is not applicable!!! If your code can read and write 24C01/02 normally, you can use it to read 24C16 directly, but it can only read 256 bytes. AT24C16 is different from AT24C01/0
[Microcontroller]
STM32 fast read and write AT24C16 code simulation I2C
Oscilloscope analysis of I2C timing waveform
For friends who are into embedded development, the I2C protocol is very familiar to them. There are too many devices that use I2C for their settings. Today, let's just talk about the I2C protocol. The most important point in the I2C protocol is the I2C address. This address has two forms: 7 bits and 10 bits. 7 bits
[Test Measurement]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号