Pookie 0 Posted August 28, 2017 Share Posted August 28, 2017 Hey everyone, I am trying to reduce the power consumption of my msp430FR4133 by reducing the clock speed from 8MHZ. I am using the http://annem.github.io/ADXL362/ example code as a base which sets the default clock speed to 8MHZ. I have read that the Wiring.c file defines the clock speed but I cannot find where F_CPU is defined. Any help would be greatly appreciated thanks. Quote Link to post Share on other sites
B@tto 51 Posted August 28, 2017 Share Posted August 28, 2017 Hi, If I'm not wrong, F_CPU is defined in boards.txt energia 1 Quote Link to post Share on other sites
energia 485 Posted August 28, 2017 Share Posted August 28, 2017 Correct. F_CPU configuration in boards.txt defines the clock speed the MSP430 runs at. With that said, reducing the clock speed to 8 MHz is probably not going to do much in term s of power consumption. In your Sketch try calling sleep() or sleepSeconds() instead of delay. This will put the MSP430 in it's lowers power mode. Also make sure that you are not driving any LED's etc that consume considerable power. Also for optimal power set al unused I/O's to OUTPUT HIGH in setup using pinMode(). Do this unless it is driving an LED or some other enable pin that turns on a high power consumer peripheral of course. Robert Quote Link to post Share on other sites
Pookie 0 Posted August 28, 2017 Author Share Posted August 28, 2017 Thanks guys, Very helpful. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.