
Click the blue text Follow us
Table of Contents
Chapter 1 Overview
Video Explanation: 26 minutes, 2 episodes
1.1 Introduction to Embedded Systems
1.1.1 Operating Hardware Systems
1.1.2 Introduction to Practical Systems
1.2 Definition, Development History, Classification, and Characteristics of Embedded Systems
1.2.1 Definition of Embedded Systems
1.2.2 Origin and Development History of Embedded Systems
1.2.3 Classification of Embedded Systems
1.2.4 Characteristics of Embedded Systems
1.3 Learning Confusions, Knowledge System, and Learning Suggestions for Embedded Systems
1.3.1 Learning Confusions in Embedded Systems
1.3.2 Knowledge System of Embedded Systems
1.3.3 Learning Suggestions for the Basic Stage
1.4 Introduction to Microcontrollers and Application Processors
1.4.1 Introduction to MCUs
1.4.2 Basic Composition of Embedded Measurement and Control Products Based on MCUs
1.4.3 Introduction to MAP
1.5 Common Terminology in Embedded Systems
1.5.1 Hardware-Related Terminology
1.5.2 Communication-Related Terminology
1.5.3 Function Module-Related Terminology
1.6 Overview of C Language
1.6.1 Operators
1.6.2 Data Types
1.6.3 Control Flow
1.6.4 Functions
1.6.5 Compilation Preprocessing
Chapter Summary
Exercises
Chapter 2 RISC-V Instruction Set and Assembly Language Syntax
Video Explanation: 30 minutes, 1 episode
2.1 Overview of RISC-V Architecture
2.1.1 Explanation of RISC and ISA Terminology
2.1.2 Introduction to RISC-V
2.2 Registers and Addressing Modes
2.2.1 General Knowledge of Registers
2.2.2 Main Registers in RISC-V Architecture
2.2.3 Instruction Reserved Words and Addressing Modes
2.2.4 Methods for Obtaining Machine Code
2.3 Analysis of Basic Instruction Categories in RISC-V
2.3.1 Data Transfer Instructions
2.3.2 Data Operation Instructions
2.3.3 Jump Instructions
2.3.4 Control and Status Register Instructions
2.3.5 Other Instructions
2.4 Basic Syntax of RISC-V Assembly Language
2.4.1 Format of Assembly Language
2.4.2 Introduction to Common Pseudo Instructions
Chapter Summary
Exercises
Chapter 3 D1-H Minimum Hardware System
Video Explanation: 23 minutes, 1 episode
3.1 Overview of D1-H Microprocessor
3.1.1 Basic Functions of D1-H
3.1.2 Memory Mapping of D1-H
3.1.3 Interrupt Sources of D1-H
3.2 Minimum Hardware System of D1-H
3.2.1 Concept of Minimum Hardware System
3.2.2 Pin Functions of D1-H
3.2.3 Design of D1-H Minimum Hardware System
3.3 Building a General Embedded Computer with D1-H
3.3.1 Problems and Solutions in Embedded System Application Development
3.3.2 Timing for Proposing the GEC Concept, Definition, and Characteristics
3.3.3 GEC Constructed from D1-H
Chapter Summary
Exercises
Chapter 4 GPIO and Program Framework
Video Explanation: 61 minutes, 3 episodes
4.1 Basic Knowledge of GPIO
4.1.1 Concept of GPIO
4.1.2 Basic Wiring of Output Pins
4.1.3 Pull-up and Pull-down Resistors and Basic Wiring of Input Pins
4.2 Methods for Software Intervention in Hardware
4.2.1 GPIO Pins of AHL-D1-H
4.2.2 GPIO Component API
4.2.3 Output Testing Methods for GPIO Components
4.3 Understanding the Project Framework
4.3.1 Introduction to Project Framework and Included Files
4.3.2 Understanding Machine Code Files and D1-H Startup Process
4.3.3 Actual Startup Process of D1-H
4.4 Production Process of GPIO Components
4.4.1 Basic Programming Steps for GPIO and Lighting a Small Lamp
4.4.2 Design of GPIO Components
4.5 First Assembly Language Project: Controlling a Lamp to Blink
4.5.1 Organization of Assembly Project Files
4.5.2 Main Program of Assembly Language Lamp Testing Project
Chapter Summary
Exercises
Chapter 5 Basic Specifications for Embedded Hardware Components and Low-Level Driver Components
Video Explanation: 20 minutes, 1 episode
5.1 Embedded Hardware Components
5.1.1 Concept and Classification of Embedded Hardware Components
5.1.2 Brief Rules for Circuit Schematic Design Based on Embedded Hardware Components
5.2 Concept and Layered Model of Embedded Low-Level Driver Components
5.2.1 Concept of Embedded Low-Level Driver Components
5.2.2 Layered Model of Embedded Hardware and Software Component Integration
5.2.3 Classification of Components in Embedded Development
5.2.4 Basic Features and Forms of Components
5.3 Packaging Specifications for Low-Level Driver Components
5.3.1 Basic Principles of Low-Level Driver Component Design
5.3.2 Basic Specifications for Coding Style
5.3.3 Design Specifications for Header Files
5.3.4 Design Specifications for Source Code Files
5.4 Reuse and Porting Methods for Hardware Components and Their Driver Components
5.4.1 Reuse and Porting of Hardware Components
5.4.2 Porting of Driver Components
Chapter Summary
Exercises
Chapter 6 Serial Communication Module and First Interrupt Program Structure
Video Explanation: 45 minutes, 3 episodes
6.1 General Knowledge of Asynchronous Serial Communication
6.1.1 Basic Concepts of Serial Communication
6.1.2 RS-232 and RS-485 Bus Standards
6.1.3 TTL-USB Serial Conversion Chip
6.1.4 Serial Communication Programming Model
6.2 Component-Based Serial Communication Programming Methods
6.2.1 UART External Pins of D1-H Chip
6.2.2 UART Component API
6.2.3 Sending Test Methods for UART Component API
6.2.4 Setting and Using printf()
6.3 Production Process of UART Components
6.3.1 Overview of UART Registers
6.3.2 Serial Sending Program Using Direct Address Manipulation
6.3.3 Design of UART Components
6.4 Interrupt Mechanism and Interrupt Programming Steps
6.4.1 Basic Concepts and Processing of Interrupts
6.4.2 Interrupt Structure of RISC-V Architecture Xuantie C906
6.4.3 Interrupt Programming Steps for D1-H—Taking Serial Receive Interrupt as an Example
Chapter Summary
Exercises
Chapter 7 Timers, PWM, and Input Capture
Video Explanation: 32 minutes, 3 episodes
7.1 General Knowledge of Timers
7.2 Timers in D1-H
7.2.1 Machine Mode Timer MTIME of D1-H
7.2.2 Real-Time Clock Module of D1-H
7.2.3 Timer of D1-H
7.2.4 HSTimer of D1-H
7.3 Pulse Width Modulation
7.3.1 General Knowledge of Pulse Width Modulation
7.3.2 Component-Based PWM Programming Methods
7.4 Input Capture
7.4.1 General Knowledge of Input Capture
7.4.2 Component-Based Input Capture Programming Methods
Chapter Summary
Exercises
Chapter 8 Flash Online Programming, ADC, and DMA
Video Explanation: 30 minutes, 3 episodes
8.1 Flash Online Programming
8.1.1 General Knowledge of Flash Online Programming
8.1.2 Component-Based Flash Online Programming Methods
8.1.3 Brief Overview of Flash Component Production Process
8.2 ADC
8.2.1 General Knowledge of ADC
8.2.2 Component-Based ADC Programming Methods
8.3 DMA
8.3.1 General Knowledge of DMA
8.3.2 Component-Based DMA Programming Methods
Chapter Summary
Exercises
Chapter 9 SPI and I2C
Video Explanation: 34 minutes, 2 episodes
9.1 Serial Peripheral Interface Module
9.1.1 General Knowledge of Serial Peripheral Interface
9.1.2 Component-Based SPI Communication Programming Methods
9.2 Inter-Integrated Circuit I2C Module
9.2.1 General Knowledge of I2C
9.2.2 Component-Based I2C Communication Programming Methods
Chapter Summary
Exercises
Chapter 10 System Clock and Watchdog
Video Explanation: 15 minutes, 1 episode
10.1 Clock System
10.1.1 Overview of Clock Control Unit
10.1.2 Programming Registers of Clock Control Unit
10.1.3 System Clock Programming Example
10.1.4 Changing CPU Clock Frequency and Testing Methods
10.2 Watchdog
10.2.1 Registers of Watchdog Module
10.2.2 Production Methods for Watchdog Components
10.2.3 Component-Based Watchdog Programming Methods
Chapter Summary
Exercises
Chapter 11 Real-Time Operating Systems
Video Explanation: 41 minutes, 2 episodes
11.1 No Operating System vs. Real-Time Operating System
11.1.1 Program Execution Path Under No Operating System
11.1.2 Program Execution Path Under Real-Time Operating System
11.1.3 Real-Time Operating System vs. Non-Real-Time Operating System
11.2 Common Basic Concepts and Three Elements of Threads in RTOS
11.2.1 Basic Concepts Related to Threads
11.2.2 Three Elements of Threads and Four States
11.2.3 Three Basic Forms of Threads
11.3 Programming Framework for Applications Under RTOS
11.3.1 Basic Element Template List Under RT-Thread
11.3.2 Functionality and Operation of the First Sample Program
11.3.3 RT-Thread Project Framework
11.4 Synchronization and Communication Programming Methods in RTOS
11.4.1 Basic Concepts of Synchronization and Communication in RTOS
11.4.2 Events
11.4.3 Message Queues
11.4.4 Semaphores
11.4.5 Mutexes
Chapter Summary
Exercises
Chapter 12 Embedded Artificial Intelligence: Object Recognition System
Video Explanation: 18 minutes, 1 episode
12.1 Overview of Embedded Artificial Intelligence
12.1.1 Human Intelligence vs. Artificial Intelligence
12.1.2 General Artificial Intelligence vs. Embedded Artificial Intelligence
12.2 Design Goals of Object Recognition System
12.2.1 Basic Ideas
12.2.2 Goals of AHL-EORS
12.3 Basic Composition of AHL-EORS-D1-H
12.3.1 Overall Description
12.3.2 Hardware System
12.3.3 Related Resource Downloads and Software Installation
12.4 Operation Process of AHL-EORS-D1-H
12.4.1 Model Testing
12.4.2 Data Collection
12.4.3 Model Training
12.4.4 Component Generation
12.4.5 GEC Inference
12.4.6 Complete Process
12.5 PC Source Code for Running AHL-EORS-D1-H
Chapter Summary
Chapter 13 Further Learning Guidance
Video Explanation: 10 minutes, 1 episode
13.1 Related Materials for Further Reading
13.2 Stability Issues in Embedded Systems
Appendix A AHL-D1-H User Manual
Appendix B Experiment Guidance
References
Purchase Link