Sfoglia il codice sorgente

Add SPI external memory timing comment

dds
PaulStoffregen 8 anni fa
parent
commit
b8cab1745d
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. +9
    -0
      effect_delay_ext.cpp

+ 9
- 0
effect_delay_ext.cpp Vedi File

@@ -157,6 +157,15 @@ static int16_t testmem[8000]; // testing only

#define SPISETTING SPISettings(20000000, MSBFIRST, SPI_MODE0)

// While 20 MHz (Teensy actually uses 16 MHz in most cases) and even 24 MHz
// have worked well in testing at room temperature with 3.3V power, to fully
// meet all the worst case timing specs, the SPI clock low time would need
// to be 40ns (12.5 MHz clock) for the single chip case and 51ns (9.8 MHz
// clock) for the 6-chip memoryboard with 74LCX126 buffers.
//
// Timing analysis and info is here:
// https://forum.pjrc.com/threads/29276-Limits-of-delay-effect-in-audio-library?p=97506&viewfull=1#post97506

void AudioEffectDelayExternal::read(uint32_t offset, uint32_t count, int16_t *data)
{
uint32_t addr = memory_begin + offset;

Loading…
Annulla
Salva