Forum Rule: Always post complete source code & details to reproduce any issue!
Page 4 of 4 FirstFirst ... 2 3 4
Results 76 to 80 of 80

Thread: Discussion about a simple way to change the sample-rate

  1. #76
    Junior Member
    Join Date
    Jan 2019

    I just tried the code out in message #44 and received the following error message when. compiling.

    'clkArr' was not declared in this scope

    Any ideas?


  2. #77
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Looking at the code its definition is based on the value of the F_PLL.

    What Teensy and clock speed is in use?

    Write a short sketch using the same compile params and speed and Serial.print( F_PLL ) and Serial.print( F_CPU )

  3. #78
    Junior Member
    Join Date
    Jan 2019
    Thanks for replying so quick!

    I'm using T3.5 running at 168MHz. I just changed it to 120MHz and it compiled OK!!

  4. #79
    Hi Frank,
    I wanted to tryout your sample rate changing code for the Teensy 4, which I pulled from CorBee's Bat Detector repo on github. It seems that it's not perhaps compatible with the Teensy 4 as I2S0_MCR & I2S_MCR_DUF are showing up as undefined during compilation. On a more recent thread Paul mentioned that the 3.6 and 4 have different ways of using the MCLK as seen here. What changes should be needed for the Teensy 4? Any resources I should look into?

  5. #80
    Good day,

    I encounter the same issue as mentioned in the last post. How can we adapt the code for the Teensy 4.1?

    Thank you,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts