|
|
|
@ -11,11 +11,11 @@
|
|
|
|
|
// 10'000'000 Hz = 52 kSPS
|
|
|
|
|
#define TRANSFER_HZ (27000000)
|
|
|
|
|
|
|
|
|
|
// TODO: minimize 45us delay between xfers
|
|
|
|
|
|
|
|
|
|
// 24-11-23: We're hitting 130 kSPS initially, but are eventually slowed down
|
|
|
|
|
// to 87 kSPS. Need to investigate high-priority workers, forcing a high SPI
|
|
|
|
|
// clock speed, and/or minimizing overall latency.
|
|
|
|
|
// TODO:
|
|
|
|
|
// - Require max CPU clock speed so 130 kSPS can be achieved
|
|
|
|
|
// - Minimize ~30us delay between transfers
|
|
|
|
|
// - Figure out how to get sample data out
|
|
|
|
|
// - Create configuration interface
|
|
|
|
|
|
|
|
|
|
struct ads1278
|
|
|
|
|
{
|
|
|
|
|