Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MSP430G2553] sleep() sleepSeconds() duration issue #66

Open
battosai30 opened this issue Jul 11, 2018 · 0 comments
Open

[MSP430G2553] sleep() sleepSeconds() duration issue #66

battosai30 opened this issue Jul 11, 2018 · 0 comments

Comments

@battosai30
Copy link
Contributor

Hi,

When I run a simple blink using sleep() or sleepSeconds() instead of delay(), the durations are not respected. I did not make a precise measure, but the factor seems to be 10x ( sleepSeconds(1) seems to lead to a 10s pause, sleep(500) seems to lead to a 5s pause ...).

I just re-installed 1.0.3 msp430 core to be sure (I will try with previous versions). Not tested on other microcontroller. Original lauchpad 32768 Hz crystal is soldered. Windows 10

Code :

void setup() {
 pinMode(P1_0,OUTPUT);
}

void loop() {
digitalWrite(P1_0,HIGH);
sleepSeconds(1);
  digitalWrite(P1_0,LOW);
sleepSeconds(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant