Commit graph

10 commits

Author SHA1 Message Date
Steve Markgraf
fd74049bf4 ext_adc: switch to sys_clk/1 for HSTX
For the 40 MHz example we are now running
with a very moderate, almost-in-spec 160 MHz
and no overvolting.
2025-01-05 22:49:28 +01:00
Steve Markgraf
708ead241c fix initial ringbuffer head value
As the first two DMA transfers have already been
submitted during init, the correct start value
is 2.
2025-01-05 01:11:47 +01:00
Steve Markgraf
07d3f58650 lib: fix idle line bug
After the recent change pipelining over three DMA transfers,
we obviously need two different idle line buffers, otherwise
the the metadata in the idle line currently in flight will
be overwritten in case we have two idle lines in a row.
When utilizing the full data rate, this cannot be observed,
as there won't be two idle lines in a row.
2024-12-27 22:36:46 +01:00
Steve Markgraf
bae93b3a87 improve performance by using three DMA channels
Previously when using an HSTX clock > sysclk/2,
there was a DMA underrun from time to time,
which limited the achievable data rate to
around 75 MByte/s. By using a third DMA channel
and employing some trickery to be still able to
use the DMA CRC sniffer, we now can achieve
128 MByte/s (or even more) by using sysclk/1
as HSTX clock.
The counter example has been updated to
generate those ~128 MByte/s.
2024-12-26 23:18:41 +01:00
Steve Markgraf
ae01224d0d lib: use struct for metadata
Streamline this with the host library.
2024-12-26 00:35:54 +01:00
Steve Markgraf
d9e7813ccf lib: correctly initialize FIFO tail
Otherwise we are doing a full wrap-around
of garbage data before we catch up
with the head.
2024-12-26 00:20:28 +01:00
Steve Markgraf
560ce9a6a1 add 16 bit logic analyzer example 2024-12-13 00:37:17 +01:00
Steve Markgraf
1835753852
README: add link to adapter PCB 2024-12-09 00:54:15 +01:00
Steve Markgraf
371c59fc28 external_adc: Switch to GP20 for ADC clock
..so that more consecutive pins are available for
attaching an additional audio ADC module.
2024-11-28 21:11:01 +01:00
Steve Markgraf
2e644a593b initial commit 2024-11-18 00:06:59 +01:00