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

BasicClockModule.java does not support 'Basic Clock Module+' for MSP430x2xx well. #35

Open
jsjeong opened this issue May 5, 2014 · 1 comment

Comments

@jsjeong
Copy link

jsjeong commented May 5, 2014

In 'Basic Clock Module+', RSELx is 03 bits of BCSCTL1. It's not equal to Basic Clock Module for MSP430x1xx that RSELx is 02 bits of BCSCTL1.

The se.sics.mspsim.core.BasicClockModule get RSELx value only for Basic Clock Module in write(). It causes wrong DCO configuration on Z1 mote simulation.

@jsjeong jsjeong changed the title BasicClockModule.java does not support 'Basic Clock Module+' for MSP430x2xx. BasicClockModule.java does not support 'Basic Clock Module+' for MSP430x2xx well. May 5, 2014
@atiselsts
Copy link
Member

I second this.

There is also another problem: the maximum DCO frequency in BasicClockModule is limited by the MAX_DCO_FRQ constant, which at the moment is set to 4915200 (~4.9 MHz).

This is clearly insufficient for msp430 Series-2 devices that can run up to 16 MHz according to the MSP430x2xx Family User's Guide. For instance, the default MCU speed of Z1 motes in Contiki is 8 MHz.

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

2 participants