i m working with the migration process of code for msp430f149 to msp430f2416. i have a test code for the prototype board to turn on ACLK and put it on port P5.6. now this piece of code works fine on the eval kit which has external crystal attached. now if i put same code with my testing board it doesn't work.
on the testing board:
i m using square wave from RTC and put it only on the Xin pin. and the crystal is not anymore directly connect to controller. i can see 32kHz squarewave on the output but couldn't see ACLK on the P5.6
does anybody have an idea what is goin on? if somebody could help me then it would have been a greate help.
The MSP430F2416 will support the configuration you have on your own board, but you will not be able to run the same code. Meaning a couple of changes will be required.Section 5.2.3 of the MSP430x2xx Family User's Guide (SLAU114) discusses the possible configurations for the Basic Clock Module, speficially as it relates to the use of an external oscillator, or clock signal.The third paragraph indicates LFXT1 can be used with an external clock signal on the XIN pin in either LF or HF mode when LFXT1Sx=11, OSCOFF=0 and XCAPx=00. I suspect the code running on the eval kit configures LFXT1Sx=00, which selects a 32.768KHz crystal option. LFXT1Sx=11 selects a Digital External clock source, which is your stated condition. XTS must be 0, to select the low frequency mode. This should already be in your sample code.
Incidently, by default from reset, LFXT1Sx=00 using a 32.768KHz crystal option.
puttin more information:
i figured that if i put squarewave drive in msp430f149 on Xin pin(pin8). then it would give me ACLK.
if i put squarewave drive in msp430f2416 on Xin pin(pin8) then it wouldn't give me ACLK.
but if i put crystal across Xin and Xout of the msp430f2416 then it would give me ACLK.
if anybody knows what's going on then it would be a great help.
How do you have the Basic Clock Module configured for the F149 and the F2416?Would you be able to provide the register settings for each device?
This might provide some clues to understand the behavior your are observing.
thank you so much brandon... u were absolutely rite. my value for the lfxtsx were wrong.
thank you once again
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.