Jump to content

MSP430 reduce clock speed

Recommended Posts

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    


Link to post
Share on other sites

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.


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...