[C] 纯文本查看 复制代码 /*-------------------------------------------------------------------------------
pio 程序 CH1 单通道交错采集模式
-------------------------------------------------------------------------------*/
#define dso_ch1_wrap_target 0 // 循环入口
#define dso_ch1_wrap 1 // 循环末尾
static const uint16_t dso_ch1_program_instructions[] = {
// 0->1 时数据变化, 1->0时采样
C_IN | IN_SRC_PINS | 16 | SIDE_SET(0x10), // 16bit 输入移位
C_MOV | MOV_DEST_X | MOV_SRC_X | SIDE_SET(0x08),
// goto 0
};
static const struct pio_program dso_ch1_program = {
.instructions = dso_ch1_program_instructions,
.length = 2,
.origin = -1,
}; |