Raspberry Pi 3 Function Mode Matrix
Raspberry Pi 3 函数模式矩阵
The following modes in each table are mutually exclusive on the Raspberry Pi 3.
以下每个表格中的模式在 Raspberry Pi 上都是互斥的
UART modes
UART 模式
The Raspberry Pi has a single full-speed UART (UART0) and a mini UART (MINIUART); see the official docs for information on their differences. These UARTs are multiplexed between various board functions and cannot be used simultaneously. The following modes are supported:
Raspberry Pi 有一个全速单 UART (UART0) 和一个迷您 UART (MINIUART);更多关于它们不同的细节可以参照 官方文件。这些 UART 模式支持多路板载功能,但多个 UART 之间不能同时使用。以下是所有支持的模式:
Mode 模式 | Activated By 开启方式 | Bluetooth 蓝牙 | Pin Functions 串口功能 |
---|---|---|---|
Debug console 调试控制台 | Default mode; no PIO connections 默认模式; 无 PIO 连接 | Enabled 打开 | Pins BCM14/BCM15 expose RX/TX of the serial debug console BCM14/BCM15 引脚为 串口调试控制台 的 RX/TX 接口 |
UART0 | UART0 opened by PIO 由 PIO 打开的 UART0 | Disabled 关闭 | Pins BCM14/BCM15 expose RX/TX of UART0 BCM14/BCM15 引脚为 UART0 的 RX/TX 接口 |
MINIUART | MINIUART opened by PIO 由 PIO 打开的 MINIUART | Enabled 打开 | Pins BCM14/BCM15 expose RX/TX of MINIUART BCM14/BCM15 引脚为 MINIUART 的 RX/TX 接口 |
BCM14 or BCM15 BCM14 或 BCM15 | Pin opened by PIO 由 PIO 打开的 串口 | Enabled 打开 | Named pin (BCM14 or BCM15) is GPIO , other pin is idle BCM14/BCM15 引脚为 GPIO 接口, 其它的引脚空闲 |
An IOException
error is thrown if you try to open an active pin (from above) using a different UART mode.
当您尝试用一个不同的 UART 模式打开以上的串口时会出现 IOException
报错
Audio modes
音频模式
The Raspberry Pi uses a shared clock signal for the PWM drivers and the audio subsystem (I2S and analog). Analog audio is transmitted through the 3.5mm audio jack. The following modes are supported:
Raspberry Pi 上的 PWM 驱动和音频系统 (I2S 和模拟)使用一个共享的时钟信号。模拟音频信号通过3.5毫米的音频接口输出。以下是所有支持的音频模式:
Mode 模式 | Activated By 开启方式 | Analog Audio 模拟音频 | Pin Functions 串口功能 |
---|---|---|---|
Audio 音频 | Default mode; no PIO connections 默认模式;无 PIO 连接 | Enabled 打开 | N/A |
PWM0 | PWM0 opened by PIO 由 PIO 打开的 PWM0 | Disabled 关闭 | Pin BCM18 enabled as PWM BCM18 引脚为 PWM 接口 |
I2S1 | I2S1 opened by PIO 由 PIO 打开的 I2S1 | Enabled 打开 | Pin BCM18 enabled as I2S BCLK BCM18 引脚为 I2S BCLK 接口 |
BCM18 | Pin opened by PIO 由 PIO 打开的串口 | Enabled 打开 | Named pin (BCM18) is GPIO BCM18 是 GPIO 接口 |
Note: Switching from PWM0 mode to Audio mode requires a device reboot due to limitations of the hardware.
注意: 由于硬件局限,从 PWM0 模式切换到音频模式需要设备重启。