The only suggestion that I can give is to double check how you are calibrating your clock speed. To set your clock you use the function:
void set_clk( void )
{
DCOCTL = CALDCO_1MHZ;
BCSCTL1 = CALBC1_1MHZ;
BCSCTL2 = SELM_0 + DIVM_3;
}
In the msp430f2131.h file where these variables are defined, it says that DCOCTL is the clock frequency control variable and you set it to the variable CALDCO_1MHZ. I think that the varaible CALDCO_1MHZ might be setting the default speed of your clock to 1 MHz instead of 1 MHz/8. It would make sense because according to your calculations a clock speed of 1 MHz/8 would mean that the LED would take 200 seconds to cycle. But if you clock speed is really 1 MHz then your LED would take 25 seconds to cycle.
That is my best guess of what the problem is. Anyone else have suggestions?
-Rich
On Wednesday, July 25, 2012 10:38:44 PM UTC-4, Viet Tran wrote:
hi everybody!i come to asean, so i write english not well, hope every ignore my error grammar. thank!
so have a problem, can you visit this link and help me, please!
i really need your help!
good luck for all!
On Wednesday, July 25, 2012 10:38:44 PM UTC-4, Viet Tran wrote:
hi everybody!i come to asean, so i write english not well, hope every ignore my error grammar. thank!
so have a problem, can you visit this link and help me, please!
i really need your help!
good luck for all!
On Wednesday, July 25, 2012 10:38:44 PM UTC-4, Viet Tran wrote:
hi everybody!i come to asean, so i write english not well, hope every ignore my error grammar. thank!
so have a problem, can you visit this link and help me, please!
i really need your help!
good luck for all!
On Wednesday, July 25, 2012 10:38:44 PM UTC-4, Viet Tran wrote:
hi everybody!i come to asean, so i write english not well, hope every ignore my error grammar. thank!
so have a problem, can you visit this link and help me, please!
i really need your help!
good luck for all!