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.

MSP430F5529 CBOUT as TimerA1 CLK

Other Parts Discussed in Thread: LMT01, MSP430F5529

I am sure this is very easy to do.

I am using a F5529 to read a LMT01 temperature sensor using the "Single Timer Sync Comparator Mode".

I have the Comp_B set up and it works perfectly, and the CBOUT output of the comparator switches at the hysteresis levels I set.

I can also set TimerA1 in counter mode with clock being TACLK input.

What is the C-Code to connect the Comparator CBOUT to the Timer1 TACLK?

I see on the MSP430F5529 Launch Pad that P1.6 is labeled CBOUT and TA1CLK but I do not think that means they are automatically connected internally?

Also not that the F5529 Dirver Library states that "GPIO_setASPeripheralModuleFunctionInputPin" ...or OutputPin is not supported on the F5xxx and F6xxx family.

Question #2

The LMT01 specification sheet Fig 33 to turn off the LMT01 set the GPIO output to "High Impedance State" as setting it Low would cause the LMT01 to be reversed bias.  I want to set the GPIO Pin driving the VP of the LMT01 either to 1 for Power Applied (GPIO-setOutputHighOnPin......), or "High Impedance" for power removed (ie not to 0.) What is the command for High Impedance?

Thanks,

Lorne

  • See table 49 of the datasheet.
    Use the port mapper to route the comparator output to another pin, then you can connect these two pins externally.

    A pin has high impedance when it is an input. So instead of the PxOUT bit, change the PxDIR bit.
  • Thanks Clemens.
    I found that the F5xxx 6xxx Driver Library Users Guide is WRONG on page 204 and 206 and the "GPIO_setASPeripheralModuleFunctionInputPin" ...or OutputPin " IS supported" on the F5xxx . This wrong documentation is what confused me.
    I was thinking of changing the Output to an Input when I want to switch from High Out to High Impedance Out. Thanks for confirming this is the only way this can be done.
    Thanks,
    Lorne

**Attention** This is a public forum