This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR2355: TB1.1 compare output in conflict with COMP0 at P2.0 pin

Part Number: MSP430FR2355
Other Parts Discussed in Thread: MSP-EXP430FR2355,

Tool/software:

Hi,

I´ve got a project where measure a frequency at P1.0 with the comparator activated and output another frequency at P2.0.

When no frequency is present the output looks like that: P2.0 is yellow and P1.0 is green.

This is ok. It outputs 100 Hz as set.

When I start feeding a sinus 100 Hz into P1.0 the output frequency at P2.0 starts modulating the pulse width.

I think that the comparator threshold is setting when to toggle between high and low. I´ve detached the comparator from P2.0 by setting the correct PXSEL bits. But maybe I`m doing something wrong here

I`ve broken done the problem in this project which can be run on a MSP-EXP430FR2355 Evalboard to check it on your end. You have to pull the jumper on P1.0 to disconnect it from the LED.

Fout_MSP430Fr2355.zip

Thanks a lot!

Best regards

Steffen

  • Try setting [Ref data sheet (SLASEC4D) Table :6-20]

    > SYSCFG2 |= TB1TRGSEL;  // External pin (P2.3) as TB1OUTH

    Since P2SEL.3=00 (!=TB1TRG), this effectively de-activates the TB1OUTH function [Ref User Guide (SLAU445I) Sec 14.2.5]

**Attention** This is a public forum