|
From: Dingxin Xu <xdx...@gm...> - 2011-09-29 12:32:54
|
hi all.
i want to use the clock_set(clock, fclock) function in cpu/msp430/clock.c
to adjust the clock state.
but i found that the TAR register is not updated correctly.
it seems that TAR is not adjusted at all.
but the datasheet showed that TAR is R/W.
the code is as follows:
*void*
*clock_set(clock_time_t clock, clock_time_t fclock)*
*{*
* TAR = fclock;*
* TACCR1 = fclock + INTERVAL;*
* count = clock;*
*}
*
could somebody please tell me how to change the value of TAR register?
--
-----------------------------------------------------------------------------------------
Xu Dingxin
Graduate University of the Chinese Academy of Sciences
http://ieipi.wordpress.com/
-----------------------------------------------------------------------------------------
|