D
Reaction score
13

Latest activity Postings About

    • D
      DrM replied to the thread Basic SPI issue (glitches on CS).
      Yes, I just read the fine print in the OP. That sounds right. For me, the instrument of choice for something like this, is an oscilloscope.
    • D
      DrM replied to the thread Basic SPI issue (glitches on CS).
      Could you please provide a circuit diagram for your setup? Also, a picture. Pending that, two ways to generate glitches between lines are cross-talk and "ground bounce". There are others, but those are two of the most popular. But, let's...
    • D
      That is pretty much the same information. It is missing the same details, and it does not come to a bottom line. What is ADCK, before we select one of the free running clocks? What do the settings slow, fast, very fast, etc, correspond to...
    • D
      Hi, For this question, I am interested in the ADC settings in the ADC library, for both the T3 and T4. The ADC library provides settings for the sampling window in units of ADCK. Conversion time is specified there only as "SLOW" to "FAST" and...
    • D
      Hi, The SPI instrumentation project is getting a new controller, using the Teensy 4.1 As you can see, I am going to keyed connectors and separate connectors for the CCD devices and the SPI only devices. There is also a very low noise 3.3V...
      • Controller_T41_3D.jpg
    • D
      DrM replied to the thread Long contiguous SPI transfers (T4x).
      Okay, here it is, the corrected sketch. The open question; What should the mode setting be in 3-wire mode, and in daisy-chain mode? Any advice? Thank you
    • D
      DrM replied to the thread Long contiguous SPI transfers (T4x).
      Hi Paul, yes that is the chip. Attached is the schematic and a functioning sketch, and a simple python script that talks to it and logs the data to a file. The code is very preliminary, just simple and direct for testing. The readout from one...
    • D
      DrM replied to the thread Long contiguous SPI transfers (T4x).
      Here is my starting point for code, it compiles and runs. The question is, how to unpack the 18 bit words? IMXRT_LPSPI_t *lpspi = &IMXRT_LPSPI4_S; uint16_t spi_nbits = 8; static inline uint16_t get_framesz( ) { return (lpspi->TCR &...
    • D
      DrM replied to the thread NXP CMSIS FFT on Teensy4?.
      Incorrect. The last two bits in this case are not noise.
    • D
      DrM replied to the thread Long contiguous SPI transfers (T4x).
      I am not sure what that means. Let's say the TCR is set for a 36 bit transfer. What does 8 bit transfer have to do with this?
    • D
      DrM replied to the thread NXP CMSIS FFT on Teensy4?.
      Actually, the raw data is from an 18 bit ADC.
    • D
      DrM replied to the thread Teensy 4.0 and CMSIS + SDK.
      Wonderful, what do I need to install and/or include to have the functions available? Thank you
    • D
      DrM replied to the thread Long contiguous SPI transfers (T4x).
      Like this: static inline void retrieve36( uint32_t *rcvd ) { uint32_t u32a; uint32_t u32b; lpspi->TDR = 0xFFFFFFFF; // output 32 bit data lpspi->TDR = 0xF; // output 4 bits while (lpspi->RSR &...
    • D
      DrM replied to the thread Long contiguous SPI transfers (T4x).
      Or may be I need to write out the entire 18 or 36 bits, and then start reading?
    • D
      DrM replied to the thread Long contiguous SPI transfers (T4x).
      Actrually trhat is a goof, i need to do it like this, (writing too many bits will start another transfer) IMXRT_LPSPI_t *lpspi = &IMXRT_LPSPI4_S; uint16_t spi_nbits = 8; static inline uint16_t get_framesz( ) { return (lpspi->TCR &...
    • D
      DrM replied to the thread Long contiguous SPI transfers (T4x).
      Thank you. So the first bits are in the lower bits of the word? In other words, for a 36 bit transfer (two 18 bit datum), I read 32 bits and then 4 bits. But the code is going to look like reading a 32 bit register twice. The bits I need...
    • D
      DrM replied to the thread NXP CMSIS FFT on Teensy4?.
      Thank you. I will try find it in the T4 core
    • D
      DrM replied to the thread Teensy 4.0 and CMSIS + SDK.
      The above link is a "404 Not Found" Any updates on this topic? I am not so much interested in an image built outside of the arduino ide, but rather an FFT that is optimized for the MCU. The crossover processors are purportedly designed for...
    • D
      Hi, Are there instructions and examples, or some form of documentation specifically on how to use the NXP CMSIS, and in particular the FFT, on the Teensy 4 with the Aduino IDE? The use case is data is read from an external 18 bit ADC, using...
    • D
      DrM replied to the thread Long contiguous SPI transfers (T4x).
      No help?
    • D
      Hi, I am contemplating using an ADC with a "daisy chain" capability. There are now quite a few of these; as examples. see the ADS 8881 for 18 bits and the ADS 8861 for 16 bits. How this works: To form the daisy chain, the clocks and convert...
  • Loading…
  • Loading…
Back
Top