Many other components use SMCLK.  So if you change SMCLK then the drivers
need to compensate.

Also, the timing system is clocked off SMCLK and it is assumed that the
basic tick is 1uis (binary micro second).

In other words you have to make the appropriate modifications through out
the system if you change SMCLK.

eric


On Sat, Jul 24, 2010 at 4:28 PM, <jostar...@alum.us.es> wrote:

> Hi to all!
> I want to change the SMCLK clock frequency in TelosB. I know this freq is
> 1MHz, because it selects the DCOCLK frequency (4MHz) and divides by 4
> (DIVSx bits).
> I've seen this file:
>
> http://openwsn.berkeley.edu/browser/tinyos-2.x/tos/chips/msp430/timer/Msp430ClockP.nc
> In line 83 it selects DIVSx bits to value 2 (divides by 4).
> My idea is to change the SMCLK freq to use the "Msp430Adc12ClientAutoRVGC"
> component at 4MHz (i.e. I'd have 1sec=4000000jiffies), by putting DIVSx=0
> (divider=/1).
> But there is a problem: there are other components that use this clock,
> like Flash, UART, I2C... and with this new frequency they don't work
> correctly !!
> My question: Is there any form to change SMCLK to use the ADC12 converter
> at 4MHz, but without modify behaviour of rest of components?
>
> Thanks!!
>
>
> ╔══════════════════════════════════════╗
> ║                José A. Tarifa Galisteo
> ║
> ║  Estudiante Ingeniería de Telecomunicación
> ║  Escuela Superior de Ingenieros - U. Sevilla
> ║  http://alumno.us.es/j/jostargal/
> ╚══════════════════════════════════════╝
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to