Key Concepts of Cortex-M3

Key Concepts of Cortex-M3

Operating Modes Thread mode: This mode is active when the processor is reset or exits from an exception. The code in this mode can be either privileged or user code, controlled by CONTROL[0]. Handler mode: This mode is entered when an exception (including interrupts) occurs, and all code in this mode has privileged access. Code … Read more

Comprehensive Guide to ARM Cortex-M3 GPIO Interface

Comprehensive Guide to ARM Cortex-M3 GPIO Interface

1、GPIO Structure and Registers GPIO includes multiple 16-bit I/O ports, each of which can independently set 3 types of input modes and 4 types of output modes, and can be independently set or reset. GPIO consists of registers, input drivers, output drivers, and other components, as shown in the figure below. GPIO operates through 7 … Read more