The difference between MCU hardware IIC and software IIC

Publisher:创新脑细胞Latest update time:2019-04-08 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. The usage of hardware IIC is more complicated, and the process of analog IIC is clearer.


2. Hardware IIC is faster than analog and can use DMA


3. Analog IIC can be on any pin, while hardware can only be on fixed pins.


4. Software i2c is a programmer using a program to control the SCL and SDA lines to output high and low levels, simulating the timing of the i2c protocol. Generally, it is more stable than hardware i2c, but the program is more complicated, but not difficult.


5. Hardware i2c programmers only need to call the i2c control function, without directly controlling the high and low level output of SCL and SDA. However, the hardware i2c of some microcontrollers is not very stable and there are many debugging problems.


Keywords:MCU Reference address:The difference between MCU hardware IIC and software IIC

Previous article:i2c bug
Next article:The difference between master-slave communication between standard IIC and IO port simulated IIC

Recommended ReadingLatest update time:2024-11-15 20:52

AT89C51 single chip microcomputer --2. Introduction to single chip microcomputer and C language
1. Microcontroller Overview 1.1 Computer components The computer host basically relies on the CPU, memory stick, and your bus controller (motherboard). The motherboard connects to these external hardware devices through its own hardware interface, such as the mouse and keyboard. The modem is the network MCU is com
[Microcontroller]
AT89C51 single chip microcomputer --2. Introduction to single chip microcomputer and C language
The single chip microcomputer adds a PCF8574 module to realize the IIC mode to drive LCD1602
The PCF8574 module makes it possible to realize IIC driving LCD1602. The following figure is the connection circuit diagram of PCF8574 module and 1602: The actual connection method is as follows: If you want to use the PCF8574 module to implement IIC driving LCD1602, it is very necessary to first understand the ti
[Microcontroller]
The single chip microcomputer adds a PCF8574 module to realize the IIC mode to drive LCD1602
Design of automobile drunk driving monitoring system based on single chip microcomputer
This article adopts a modular design idea. Its core circuit is the minimum system of the single-chip microcomputer, the sensing circuit is an infrared sensing circuit, the control circuit uses a relay, the detection circuit is an alcohol concentration detection module, and the wireless communication module uses a wifi
[Microcontroller]
Design of automobile drunk driving monitoring system based on single chip microcomputer
MCU serial communication program
Use serial interrupt to receive data and display it ;===========Predefined=====================  LED0 EQU 40H ;Predefined digital tube  LED1 EQU 41H ;Predefined digital tube  LED2 EQU 42H ;Predefined digital tube  LED3 EQU 43H ;Predefined digital tube LED4 EQU 44H ;Predefine digital tube  LED5 EQU 45H ;Predefine digit
[Microcontroller]
Design and Implementation of 80C196 Single Chip Microcomputer Simulation Software
  In order to improve the quality and reliability of embedded control software (hereinafter referred to as application software), it is usually necessary to conduct a comprehensive and detailed evaluation of the application software during the development process. However, the evaluation of application software based o
[Microcontroller]
Design and Implementation of 80C196 Single Chip Microcomputer Simulation Software
51 MCU beginner practice: using BME280 module to obtain temperature, humidity and air pressure data
I want to add environmental data monitoring function to the electronic clock, mainly the three items of temperature, humidity and air pressure. The BME280 module can measure these three data, which is a good choice. Today, according to the datasheet and the information shared by the forum friends before, I wrote
[Microcontroller]
51 MCU beginner practice: using BME280 module to obtain temperature, humidity and air pressure data
Design of a colorful smart coaster with temperature measurement function
  1. Brief Introduction   How to judge the temperature of a cup of water? Generally, we touch it with our hands. Depending on the season, it is not comfortable to touch if it is too hot or too cold. The use of a single-chip microcomputer can measure and control the water temperature, and add some fun to our lives. Thi
[Microcontroller]
Design of a colorful smart coaster with temperature measurement function
Arduino CEO interview: AI-enabled MCUs can help more people stop being technology “spectators”
Translated from MIT Technology Review Since its inception in 2005, the Arduino open source platform has revolutionized the world of electronic engineering, and innovation represented by open source has swept the entire technology development. Whether in the past, present or future, the goal of science
[Embedded]
Arduino CEO interview: AI-enabled MCUs can help more people stop being technology “spectators”
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号