hi everyone,
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.
thanks
nehal
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.
Brandon
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.
thank you,
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
regards: