Dear All!
I meet the MSP430F448 now.
I beginner in the them.
Can you help me?
How to do it in C source program, the following task?
( I need use the process in command line.)
We have MSP430 GANG programmer.
Quartz correction
1st step : take out the ACLK through the JTAG (P1.5) to measure the frequency F_ACLK. : this value will be the base for the calculation. Once this is done, one must calculate and flash the corrective values To measure frequency we use a universal frequency counter AGILENT 53132 with option 010 Highstability timebase.
Processor register coding by JTAG :
a/FLL programmation:
SCFI0 Configuration => SCFI0 = 0x10
SCFQCTL Configuration => SCFQCTL = 0xFF
FLL_CTL0 Configuration => FLL_CTL0 = 0x31 b/ ACLK output Programmation:
Periphery function of P1.5 selected => BIT5 of P1SEL position
P1.5 in output => BIT5 of P1DIR position ACLK measurement use in the tester:
• If the accuracy of the quartz frequency is above 50ppm from the theoretical 32768:
• The PCBA is to be rejected. Frequency > 32770 OR <32766 • If 32767,5 Hz • quartz frequency • 32768,5 Hz
• No quartz calibration. (Frequency is OK).
• If not, the tester should calibrate the quartz.
Correction of the time drift:
The calculation of the time drift is the following:
(F_ACLK in Hz, measured value)
Then flash ACLK correction : The round up of the absolute value from the correction at the address 0xFFDA-0xFFDB (the value is on 2 bits) And the sign at the address 0xFFDC : if the sign is +, record 0x01 if not record 0x00.
• after loading binary software (see below paragraph 2) Master clock MCLK correction:
In order to have a master clock (MCLK) at 4,194304 MHz, the following calculation is needed:
(F_MCLK in Hz, measured value)
Round up at the unit in order to put it in one bit.
Flash Master clock correction N at 0xFFD6 address
Thank you for your help in advance.