.program pio_FastDAC ; Repeatedly get one word of data from the TX FIFO, stalling when the FIFO is ; empty. Write the data to the OUT pin group. .wrap_target ; Get data bits from DMA via Output Shift Register (OSR) to PINS. out PINS, 8 ; 1 machine cycle ; =================== ; 1 machine cycle ; =================== .wrap ; Loop back to wrap_target % c-sdk { // This is a raw helper function for use by the user which sets up the GPIO output, and configures the SM // to output on a particular pin. // Note: No divider is specified for the SM, so it will default to the same speed as the CPU. void pio_FastDAC_program_init(PIO pio, uint sm, uint offset, uint pin) { for (uint i=0; i