Mercurial > ~darius > hgwebdir.cgi > modulator
diff dac.pio @ 10:98880b18bcc1
Reset DAC PIO and use force trigger to do manual trigger.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 24 Feb 2025 12:12:09 +1030 |
parents | 3acdebd7eec7 |
children | f1e44afb41a3 |
line wrap: on
line diff
--- a/dac.pio Fri Feb 21 17:27:22 2025 +1030 +++ b/dac.pio Mon Feb 24 12:12:09 2025 +1030 @@ -6,15 +6,12 @@ .define TRIGGER_IRQ 0 ; Need 1 side set pin, the clock .side_set 1 -; Force load at address 0 so DMA handler can force a jump -; presumably we could calculate the address but this is easier. -.origin 0 ; Clock in a 0 byte -; mov pins, null side 0 -; nop side 1 -; Wait for start trigger -; wait 1 irq TRIGGER_IRQ side 0 + mov pins, null side 0 + nop side 1 +; Wait for start trigger and clear IRQ + wait 1 irq TRIGGER_IRQ side 0 ; Clock DAC and write data from the FIFO ; DAC clocks data in on the rising clock edge ; Autopull is enabled so no need to pull