Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Porting a project from 3.6 to 4.1: what should I look out for?

  1. #1
    Senior Member
    Join Date
    Nov 2012
    Location
    Boston, MA, USA
    Posts
    1,120

    Porting a project from 3.6 to 4.1: what should I look out for?

    I'm about to resurrect a project I started on 3 or 4 years ago and abandoned (health issues, other priorities) a couple of years ago. Meanwhile, supply-chain issues mean that the original target, Teensy 3.6, seems unavailable so I am changing to 4.1 (no ethernet needed).

    I'm aware of some pin assignment differences, which seem easy to accommodate. The power draw from Teensy 4.1 worries me a bit, though I hope to drop the clock down to mitigate that. The memory layout seems a bit more complicated but also seems to be mainly handled automatically by the compiler. I see that the onboard ADC has a lower ENOB but I think that 10 bit will be fine in this application. Anything else I should be aware of?

    In case it helps, the project will include:

    1. Two SPI 18-bit DACs (AD5781ARUZ) and a Vref (MAX6226_50)
    2. Two 14-bit octal SPI DACS (DAC8168C, with 74AHCT125 for level shifting)
    3. FreqMeasure and FreqCount (different pins, now)
    4. A few RGB LEDs
    5. A small screen plus encoder and some buttons. I2C, because it is mainly for setup and calibration
    6. Four pots connected to onboard ADC
    7. USB Host

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    27,658
    Welcome back Nantonos! Good to see you again.

    If you're using the ordinary SPI library and analogRead(), odds are pretty good it will "just work".

    You could set Tools > CPU Speed for 396 or 150 MHz to get lower power.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Location
    Boston, MA, USA
    Posts
    1,120
    Hi Paul! Yes, I planned to use the ordinary SPI library, with transactions.

Posting Permissions

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