Am 13.12.2002 18:42:36, schrieb Celso Providelo <[email protected]>:
>I've found problems to setup the timer B to use the pulse in the TBCLK 
>as the clock source
>       
>    P4DIR &= ~BIT7;
>    P4SEL |= BIT7;
>    TBCTL = TBSSEL0 + ID0 + TBCLR;

TBSSEL0 -> value of 1 -> ACLK
you can use TBSSEL_0 (underline!) to select TBCLK or leave at away as it has 
the value of 0 anyway.

and a GCC feature:
#define TBSSEL_TBCLK        TBSSEL_0
#define TBSSEL_ACLK         TBSSEL_1
#define TBSSEL_SMCLK        TBSSEL_2
#define TBSSEL_INCLK        TBSSEL_3
are defined, so that you can also write

TBCTL = TBSSEL_TBCLK + ID0 + TBCLR;


>    TBCTL |= MC0;

chris




Reply via email to