不能热插拔。官方文档写明:搭配 Cap 系列产品时不支持热插拔。插入或移除模块前,先将设备关机。

5V 输出默认关闭

官方操作说明写明:右侧 Grove 接口与顶部 EXT 接口的 5V 输出默认关闭,可在 Settings > ExtPort 中开启。Grove 口通过 M5IOE1 的 PYG4_GROVE_EN 使能 5V,最大供电电流小于 500 mA。顶部 HAT 电源由 PYG13_HAT_EN 控制:低电平为关闭,高电平为开启。

EXT 2.54-14P(Cap-Bus)

顶部总线支持 SPI、UART、I2C、USB 和 GPIO。标有 D+*、D-* 的引脚支持功能切换,默认连接到对应 GPIO,可通过软件切换为 USB。下面这张表来自官方 CardputerZero 文档,是主机侧的管脚定义。

No hot-swapping. Official docs state that Caps cannot be hot-swapped. Power the device off before inserting or removing a module.

5V output is off by default

The official usage guide states that 5V output on the right-side Grove port and the top EXT port is off by default, and can be enabled in Settings > ExtPort. Grove 5V is enabled by PYG4_GROVE_EN on M5IOE1, with a maximum current of less than 500 mA. HAT power is controlled by PYG13_HAT_EN: low is off, high is on.

EXT 2.54-14P (Cap-Bus)

The top bus supports SPI, UART, I2C, USB, and GPIO. Pins marked D+* and D-* are switchable: they connect to the corresponding GPIO by default and can be switched to USB in software. The table below is the host-side pinout from the official CardputerZero documentation.

来源:docs.m5stack.com · CardputerZero · 管脚映射 · EXT 2.54-14P

Source: docs.m5stack.com · CardputerZero · Pin map · EXT 2.54-14P

FUNCPINLEFTRIGHTPINFUNC
USB4_D_P / G26HAT_P0125VIN
USB4_D_N / G23HAT_P134GND
G22565VOUT
SPI0_CLKG1178G2I2C1_SDA
SPI0_MOSIG10910G3I2C1_SCL
SPI0_MISOG91112G15UART_RXD
SPI0_CS1G71314G14UART_TXD

通过 M5IOE1 的 PYG1_HAT_SW 可切换 HAT_P0 / HAT_P1 的 USB 或 GPIO 功能,默认为 GPIO。

PYG1_HAT_SW on M5IOE1 switches HAT_P0 / HAT_P1 between USB and GPIO. The default is GPIO.

PYG1_HAT_SW 与 HAT_P0 / P1 功能

PYG1_HAT_SW and HAT_P0 / P1 function

PYG1_HAT_SWEXT HAT_P0/P1 FUNC
LOWGPIO26 / GPIO23
HIGHUSB Hub - USB4

HY2.0-4P(Grove)

默认功能为 UART。通过 CM0 的 G4_I2C/UART_SW 控制电子开关:低电平为 UART,高电平为 I2C1(G2 SDA / G3 SCL)。

HY2.0-4P (Grove)

The default function is UART. G4_I2C/UART_SW on the CM0 controls the analog switch: low selects UART, high selects I2C1 (G2 SDA / G3 SCL).

来源:docs.m5stack.com · CardputerZero · HY2.0-4P

Source: docs.m5stack.com · CardputerZero · HY2.0-4P

HY2.0-4PBlackRedYellowWhite
UART / I2CGND5VG14_UART_TXD / G2_I2C1_SDAG15_UART_RXD / G3_I2C1_SCL
G4_I2C/UART_SWGROVE FUNC
LOWUART
HIGHI2C1

USB Switch 对扩展口的影响

机身左侧 USB Switch 切到 Slave 模式时,会断开内部 USB Hub。此时左侧 USB-A、USB Type-C,以及顶部 EXT 的 HAT-P0/P1 USB 功能和以太网都无法使用。官方操作说明还写明:Slave(左 / 上)时 CM0 通过 USB-C2 作为 USB 设备连接电脑;Host(右 / 下)时 CM0 连接内部 Hub,扩展到 USB-A、USB-C1 和顶部 HAT-P0/P1,其中一路经 USB-ETH 提供以太网。

不要自行合并两套管脚表

各 Cap 文档另有一份模块侧的 Cap-Bus 信号表,以及一份标为 Cardputer-Adv 的 GPIO 对照。Zero 主机侧编号以本页和官方 Zero 文档为准。本站不把 Adv 的编号(例如 G40、G39)写成 Zero 的 GPIO,也不自行推断一份“Cap-Bus 对 Zero GPIO”的对照表。需要看模块侧信号时,请到对应 Cap 页查看官方原表。

How USB Switch affects the expansion ports

When the left-side USB Switch is in Slave mode, the internal USB hub is disconnected. The left USB-A and USB Type-C ports, USB on HAT-P0/P1 of the top EXT bus, and Ethernet are then unavailable. The official usage guide also states that in Slave mode (left / up) the CM0 connects to a host through USB-C2 as a USB device; in Host mode (right / down) the CM0 connects to the internal hub, which extends USB-A, USB-C1, and top-side HAT-P0/P1, with one hub port providing Ethernet through a USB-ETH chip.

Do not merge the two pin tables yourself

Each Cap page also publishes a module-side Cap-Bus signal table and a GPIO map labeled Cardputer-Adv. Host-side numbers for Zero follow this page and the official Zero documentation. This site does not treat Adv numbers such as G40 or G39 as Zero GPIO, and it does not invent a Cap-Bus-to-Zero GPIO map. For module-side signals, see the official table on each Cap page.