I have the msp430f169 controller. I have a LFXT12768hz, ACLK=LFXT1CLK/8 and MCLK=SMCLK=UCLK0CLK. BCSCTL1 |= XT2OFF + DIVA_3; BCSCTL2 = 0; TACCTL2 = CM_1 + CCIS_1 + CAP; TACTL = TASSEL_2 + MC_2 + TACLR; CCIS_1 define the CCI2B as input signal for capture. What is CCI2B signal? Best regards, MFER
CAPTURE mode
Started by ●February 17, 2004
Reply by ●February 17, 20042004-02-17
Look on the Port definitions chapter of the data sheet, or family user
guide, there are pictures of the various inputs and outputs for the
timers for each micro.
Al
marcoferrari72 wrote:
> I have the msp430f169 controller.
>
> I have a LFXT12768hz, ACLK=LFXT1CLK/8 and MCLK=SMCLK=UCLK0CLK.
>
> BCSCTL1 |= XT2OFF + DIVA_3;
> BCSCTL2 = 0;
> TACCTL2 = CM_1 + CCIS_1 + CAP;
> TACTL = TASSEL_2 + MC_2 + TACLR;
>
> CCIS_1 define the CCI2B as input signal for capture. What is CCI2B
> signal?
>
> Best regards,
> MFER
>
>
>
> .
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
Reply by ●February 17, 20042004-02-17
Thanx Al, but I don't understand if CCI2B is an internal or external signal. I've seen the example in the TI website, to generate a stable MCLKCLK48576hz corrected using the LFXT12768hz: BCSCTL1 |= XT2OFF + DIVA_3; BCSCTL2 = 0; TACCTL2 = CM_1 + CCIS_1 + CAP; TACTL = TASSEL_2 + MC_2 + TACLR; // Set_DCO needs to be called to configure DCO // Target DCO = DELTA*(4096) = 1048576 while (1) { while (!(CCIFG & CCTL2)); CCTL2 &= ~CCIFG; Compare = TACCR2; Compare = Compare - Oldcapture; Oldcapture = TACCR2; if (DELTA == Compare) { break; // Break loop } else if (DELTA < Compare) { DCOCTL--; if (DCOCTL == 0xFF) { if (BCSCTL1 & 0x07) BCSCTL1--; else break; } } else { DCOCTL++; if (DCOCTL == 0x00) { if ((BCSCTL1 & 0x07) != 0x07) BCSCTL1++; else break; } } } CCTL2 = 0; // Stop CCR2 TACTL = 0; // Stop Timer_A } in this example: Is the capture used for acquire the LFXT1? or need I an external input to generate capture events? thank you. best regards, Marco
Reply by ●February 17, 20042004-02-17
Thanx Al, but I don't understand if CCI2B is an internal or external signal. I've seen the example in the TI website, to generate a stable MCLKCLK48576hz corrected using the LFXT12768hz: BCSCTL1 |= XT2OFF + DIVA_3; BCSCTL2 = 0; TACCTL2 = CM_1 + CCIS_1 + CAP; TACTL = TASSEL_2 + MC_2 + TACLR; // Set_DCO needs to be called to configure DCO // Target DCO = DELTA*(4096) = 1048576 while (1) { while (!(CCIFG & CCTL2)); CCTL2 &= ~CCIFG; Compare = TACCR2; Compare = Compare - Oldcapture; Oldcapture = TACCR2; if (DELTA == Compare) { break; // Break loop } else if (DELTA < Compare) { DCOCTL--; if (DCOCTL == 0xFF) { if (BCSCTL1 & 0x07) BCSCTL1--; else break; } } else { DCOCTL++; if (DCOCTL == 0x00) { if ((BCSCTL1 & 0x07) != 0x07) BCSCTL1++; else break; } } } CCTL2 = 0; // Stop CCR2 TACTL = 0; // Stop Timer_A } in this example: Is the capture used for acquire the LFXT1? or need I an external input to generate capture events? thank you. best regards, Marco --- In msp430@msp4..., onestone <onestone@b...> wrote: > Look on the Port definitions chapter of the data sheet, or family user > guide, there are pictures of the various inputs and outputs for the > timers for each micro. > > Al > > marcoferrari72 wrote: > > > I have the msp430f169 controller. > > > > I have a LFXT12768hz, ACLK=LFXT1CLK/8 and MCLK=SMCLK=UCLK0CLK. > > > > BCSCTL1 |= XT2OFF + DIVA_3; > > BCSCTL2 = 0; > > TACCTL2 = CM_1 + CCIS_1 + CAP; > > TACTL = TASSEL_2 + MC_2 + TACLR; > > > > CCIS_1 define the CCI2B as input signal for capture. What is CCI2B > > signal? > > > > Best regards, > > MFER > > > > > > > > . > > > > > > Yahoo! Groups Links > > > > > > > > > > > >
Reply by ●February 17, 20042004-02-17
CCI2B means input B of the possible inputs to the particular timer B
channel, it could be an internal or an external signal. The diagram in
the ports section of the manual will show you this, as will the hardware
diagram of Timer B. Got to SLAS368, the tech data sheet for the 169,
page 26 in the Oct 2002 version. This clearly shows that both CCIxA and
CCIxB are pins P4.x.
Cheers
Al
marcoferrari72 wrote:
> Thanx Al, but I don't understand if CCI2B is
an internal or external
> signal.
>
> I've seen the example in the TI website, to generate a stable
> MCLKCLK48576hz corrected using the LFXT12768hz:
>
> BCSCTL1 |= XT2OFF + DIVA_3;
> BCSCTL2 = 0;
> TACCTL2 = CM_1 + CCIS_1 + CAP;
> TACTL = TASSEL_2 + MC_2 + TACLR;
>
> // Set_DCO needs to be called to configure DCO
> // Target DCO = DELTA*(4096) = 1048576
> while (1)
> {
> while (!(CCIFG & CCTL2));
> CCTL2 &= ~CCIFG;
> Compare = TACCR2;
> Compare = Compare - Oldcapture;
> Oldcapture = TACCR2;
> if (DELTA == Compare)
> {
> break; // Break loop
> }
> else if (DELTA < Compare)
> {
> DCOCTL--;
> if (DCOCTL == 0xFF)
> {
> if (BCSCTL1 & 0x07)
> BCSCTL1--;
> else
> break;
> }
> }
> else
> {
> DCOCTL++;
> if (DCOCTL == 0x00)
> {
> if ((BCSCTL1 & 0x07) != 0x07)
> BCSCTL1++;
> else
> break;
> }
> }
> }
>
> CCTL2 = 0; // Stop CCR2
> TACTL = 0; // Stop Timer_A
> }
>
> in this example:
> Is the capture used for acquire the LFXT1?
> or need I an external input to generate capture events?
>
> thank you.
> best regards,
> Marco
>
>
>
>
>
>
> .
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
Reply by ●February 18, 20042004-02-18
Dear marcoferrari72,
is msp430f169 released from TI?
if relesed tell me the cost details of the same.
Venkat
onestone <onestone@ones...> wrote:Look on the Port definitions chapter of
the data sheet, or family user
guide, there are pictures of the various inputs and outputs for the
timers for each micro.
Al
marcoferrari72 wrote:
> I have the msp430f169 controller.
>
> I have a LFXT12768hz, ACLK=LFXT1CLK/8 and MCLK=SMCLK=UCLK0CLK.
>
> BCSCTL1 |= XT2OFF + DIVA_3;
> BCSCTL2 = 0;
> TACCTL2 = CM_1 + CCIS_1 + CAP;
> TACTL = TASSEL_2 + MC_2 + TACLR;
>
> CCIS_1 define the CCI2B as input signal for capture. What is CCI2B
> signal?
>
> Best regards,
> MFER
>
>
>
> .
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
.
Yahoo! Groups Links
Yahoo! India Insurance Special: Be informed on the best policies, services,
tools and more.
Reply by ●February 18, 20042004-02-18
Hi Venkat, as you can see in the TI website there is no release for msp430f169. I have to ask to my distributors to have a confirm. I'll tell you something in a few days. bye, mfer --- In msp430@msp4..., Venkateswarlu Palle <venkatmsp430@y...> wrote: > Dear marcoferrari72, > > is msp430f169 released from TI? > if relesed tell me the cost details of the same. > > > Venkat > > > > > > > > onestone <onestone@b...> wrote:Look on the Port definitions chapter of the data sheet, or family user > guide, there are pictures of the various inputs and outputs for the > timers for each micro. > > Al > > marcoferrari72 wrote: > > > I have the msp430f169 controller. > > > > I have a LFXT12768hz, ACLK=LFXT1CLK/8 and MCLK=SMCLK=UCLK0CLK. > > > > BCSCTL1 |= XT2OFF + DIVA_3; > > BCSCTL2 = 0; > > TACCTL2 = CM_1 + CCIS_1 + CAP; > > TACTL = TASSEL_2 + MC_2 + TACLR; > > > > CCIS_1 define the CCI2B as input signal for capture. What is CCI2B > > signal? > > > > Best regards, > > MFER > > > > > > > > . > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > . > > > Yahoo! Groups Links > > > > > > > Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more. > >
Reply by ●February 18, 20042004-02-18
What I need to know is if CCI2B is connected with ACLK. I'm using Timer_A for Reference Frequency Measurement as shown in the SLAA074 - page 3. In the MSP430x11x there is an internal connection from ACLK and CCI2B (see for example msp430f1132.pdf - page 14). Is there the same connection in the msp430f169? Thank you, Marco --- In msp430@msp4..., onestone <onestone@b...> wrote: > CCI2B means input B of the possible inputs to the particular timer B > channel, it could be an internal or an external signal. The diagram in > the ports section of the manual will show you this, as will the hardware > diagram of Timer B. Got to SLAS368, the tech data sheet for the 169, > page 26 in the Oct 2002 version. This clearly shows that both CCIxA and > CCIxB are pins P4.x. > > Cheers > > Al > > marcoferrari72 wrote: > > > Thanx Al, but I don't understand if CCI2B is an internal or external > > signal. > > > > I've seen the example in the TI website, to generate a stable > > MCLKCLK48576hz corrected using the LFXT12768hz: > > > > BCSCTL1 |= XT2OFF + DIVA_3; > > BCSCTL2 = 0; > > TACCTL2 = CM_1 + CCIS_1 + CAP; > > TACTL = TASSEL_2 + MC_2 + TACLR; > > > > // Set_DCO needs to be called to configure DCO > > // Target DCO = DELTA*(4096) = 1048576 > > while (1) > > { > > while (!(CCIFG & CCTL2)); > > CCTL2 &= ~CCIFG; > > Compare = TACCR2; > > Compare = Compare - Oldcapture; > > Oldcapture = TACCR2; > > if (DELTA == Compare) > > { > > break; // Break loop > > } > > else if (DELTA < Compare) > > { > > DCOCTL--; > > if (DCOCTL == 0xFF) > > { > > if (BCSCTL1 & 0x07) > > BCSCTL1--; > > else > > break; > > } > > } > > else > > { > > DCOCTL++; > > if (DCOCTL == 0x00) > > { > > if ((BCSCTL1 & 0x07) != 0x07) > > BCSCTL1++; > > else > > break; > > } > > } > > } > > > > CCTL2 = 0; // Stop CCR2 > > TACTL = 0; // Stop Timer_A > > } > > > > in this example: > > Is the capture used for acquire the LFXT1? > > or need I an external input to generate capture events? > > > > thank you. > > best regards, > > Marco > > > > > > > > > > > > > > . > > > > > > Yahoo! Groups Links > > > > > > > > > > > >
Reply by ●February 18, 20042004-02-18
Yes for Timer_A only page 23 of slas361
marcoferrari72 wrote:
> What I need to know is if CCI2B is connected with
ACLK.
> I'm using Timer_A for Reference Frequency Measurement as shown in the
> SLAA074 - page 3. In the MSP430x11x there is an internal connection
> from ACLK and CCI2B (see for example msp430f1132.pdf - page 14).
> Is there the same connection in the msp430f169?
>
> Thank you,
> Marco
>
> --- In msp430@msp4..., onestone <onestone@b...> wrote:
>
>>CCI2B means input B of the possible inputs to the particular timer
>
> B
>
>>channel, it could be an internal or an external signal. The diagram
>
> in
>
>>the ports section of the manual will show you this, as will the
>
> hardware
>
>>diagram of Timer B. Got to SLAS368, the tech data sheet for the
>
> 169,
>
>>page 26 in the Oct 2002 version. This clearly shows that both CCIxA
>
> and
>
>>CCIxB are pins P4.x.
>>
>>Cheers
>>
>>Al
>>
>>marcoferrari72 wrote:
>>
>>
>>>Thanx Al, but I don't understand if CCI2B is an internal or
>
> external
>
>>>signal.
>>>
>>>I've seen the example in the TI website, to generate a stable
>>>MCLKCLK48576hz corrected using the LFXT12768hz:
>>>
>>>BCSCTL1 |= XT2OFF + DIVA_3;
>>>BCSCTL2 = 0;
>>>TACCTL2 = CM_1 + CCIS_1 + CAP;
>>>TACTL = TASSEL_2 + MC_2 + TACLR;
>>>
>>>// Set_DCO needs to be called to configure DCO
>>>// Target DCO = DELTA*(4096) = 1048576
>>>while (1)
>>>{
>>> while (!(CCIFG & CCTL2));
>>> CCTL2 &= ~CCIFG;
>>> Compare = TACCR2;
>>> Compare = Compare - Oldcapture;
>>> Oldcapture = TACCR2;
>>> if (DELTA == Compare)
>>> {
>>> break; // Break loop
>>> }
>>> else if (DELTA < Compare)
>>> {
>>> DCOCTL--;
>>> if (DCOCTL == 0xFF)
>>> {
>>> if (BCSCTL1 & 0x07)
>>> BCSCTL1--;
>>> else
>>> break;
>>> }
>>> }
>>> else
>>> {
>>> DCOCTL++;
>>> if (DCOCTL == 0x00)
>>> {
>>> if ((BCSCTL1 & 0x07) != 0x07)
>>> BCSCTL1++;
>>> else
>>> break;
>>> }
>>> }
>>> }
>>>
>>> CCTL2 = 0; // Stop CCR2
>>> TACTL = 0; // Stop Timer_A
>>>}
>>>
>>>in this example:
>>>Is the capture used for acquire the LFXT1?
>>>or need I an external input to generate capture events?
>>>
>>>thank you.
>>>best regards,
>>>Marco
>>>
>>>
>>>
>>>
>>>
>>>
>>>.
>>>
>>>
>>>Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
> .
>
>
> Yahoo! Groups Links
>
>
>
>
>
>