How Many SPI Devices Can Be Connected to a 51 Microcontroller?

How Many SPI Devices Can Be Connected to a 51 Microcontroller?

Recently, a student asked me: “How many SPI chips can I connect to my 51 microcontroller board? Is it not mentioned in the chip manual, or did I miss it? Moreover, I want to connect a screen, a memory card, a temperature sensor, and a wireless module.” Today, let’s discuss this topic. First, let’s talk … Read more

Getting Started with PIC16 Microcontroller from Scratch

Getting Started with PIC16 Microcontroller from Scratch

Get the demo source code file at the end of the article ↓Software Platform: MCC v5.5.2, MPLAB X IDE v6.25Hardware Platform:PIC16F685Basic settings for configuring the microcontroller startup – Configuration WordSet system clock source and other parameters through the microcontroller configuration wordSet relevant configuration words in the configuration word interface and generate codeSet system clockFOSCto internal … Read more

Understanding Microcontroller IO Ports

Understanding Microcontroller IO Ports

Bidirectional IO Port Output: Complementary Push-Pull In the 51 microcontroller, the P0 port operates in standard IO mode as a quasi-bidirectional IO port. When in the second functional state, it becomes a standard bidirectional IO port. Due to the output requirements of bidirectional IO ports needing to output high and low levels, complementary push-pull circuits … Read more

Input and Output Impedance of Microcontroller Ports

Input and Output Impedance of Microcontroller Ports

➤ 01 Background In the analysis of the power switch circuit in the electronic assistant circuit[1], the internal description of the output ports of the ATmega series microcontrollers was introduced[2]. Specifically, when the port is used as an IO output, it can be equivalently represented as being pulled up to VCC through resistors of 19Ω … Read more

The Truth Behind IO Port Damage and System Failures in Embedded Systems

The Truth Behind IO Port Damage and System Failures in Embedded Systems

Introduction This article will continue to delve into the issue of current backflow, analyzing the root causes of IO port damage and system stability problems in embedded systems. In the previous engineering notes, we learned about current backflow and discussed a series of problems it may cause, including IO port damage, system crashes, failure to … Read more