So, after searching the forum & Google about running the LC at 8 MHz I couldn't find anything so I figured it must be easy to set the LC to run at lower speeds and it turns out that it is! (I think).
*EDIT Added 4 & 2 MHz, If you want these speeds add them to the teensy boards.txt.
All I did was a little copy-past job within the teensy boards.txt.
I simply added:
and:
I uploaded the blink sketch as a basic test and also took some current measurements using an separate UNO & a Adafruit INA219 DC current sensor and compared it to a Teensy 3.1 also running the blink sketch (tested at 24 MHz optimized and 8 MHz speeds):
*Edit Added 4 & 2 MHz tests
I don't know if the setup above is the 'right' way to do it and why it was not just added to begin with but it seems to work OK, I'm using this LC in my clock project where every uA counts and have been running it for a few days now and its been running the same as when I was using a 3.1.
I hope these speeds can be added as and option in future teensyduino releases as I think its a good option for the Teensy LC in low power applications when clock speed helps the overall power use, as the LC uses less power than a 3.1.
*EDIT Added 4 & 2 MHz, If you want these speeds add them to the teensy boards.txt.
All I did was a little copy-past job within the teensy boards.txt.
I simply added:
Code:
teensyLC.menu.speed.16=16 MHz (No USB)
teensyLC.menu.speed.8=8 MHz (No USB)
teensyLC.menu.speed.4=4 MHz (No USB)
teensyLC.menu.speed.2=2 MHz (No USB)
Code:
teensyLC.menu.speed.16.build.fcpu=16000000
teensyLC.menu.speed.16.build.flags.optimize=-Os
teensyLC.menu.speed.16.build.flags.ldspecs=--specs=nano.specs
teensyLC.menu.speed.8.build.fcpu=8000000
teensyLC.menu.speed.8.build.flags.optimize=-Os
teensyLC.menu.speed.8.build.flags.ldspecs=--specs=nano.specs
teensyLC.menu.speed.4.build.fcpu=4000000
teensyLC.menu.speed.4.build.flags.optimize=-Os
teensyLC.menu.speed.4.build.flags.ldspecs=--specs=nano.specs
teensyLC.menu.speed.2.build.fcpu=2000000
teensyLC.menu.speed.2.build.flags.optimize=-Os
teensyLC.menu.speed.2.build.flags.ldspecs=--specs=nano.specs
*Edit Added 4 & 2 MHz tests
Code:
Teensy LC - No USB - Blink Sketch
2 MHz : LED off: 3 mA
2 MHz : LED on: 5 mA
---
4 MHz : LED off: 4 mA
4 MHz : LED on: 7 mA
---
8 MHz : LED off: 5 mA
8 MHz : LED on: 8 mA
---
24 MHz opt : LED off: 9 mA
24 MHz opt : LED on: 12 mA
---
Teensy 3.1 - No USB - Blink Sketch
8 MHz : LED off: 7 mA
8 MHz : LED on: 9 mA
---
24 MHz opt : LED off: 17 mA
24 MHz opt : LED on: 19 mA
I don't know if the setup above is the 'right' way to do it and why it was not just added to begin with but it seems to work OK, I'm using this LC in my clock project where every uA counts and have been running it for a few days now and its been running the same as when I was using a 3.1.
I hope these speeds can be added as and option in future teensyduino releases as I think its a good option for the Teensy LC in low power applications when clock speed helps the overall power use, as the LC uses less power than a 3.1.
Last edited: