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.

Connecting comparator output to a pin.

Other Parts Discussed in Thread: MSP430G2553

I use Grace as a "manual" for MSP430G2xxx programming: Click a setup, and look at the registers. I do not use grace in the code written. Now I find that Grace gives output CAOUT options on the comparator including pins 1.1, 1.7 and 3.7. I can not find the register settings for this configuration. This is for an MSP430G2553 in particular.

Thanks

  • Hi Viking!

    Look at the datasheet starting at page 43, table 16 and following - it shows the connections between internal modules and the pins and the appropriate bits you have to set for each function. For example P1.3 and CAOUT (page 45, table 17):

    You will have to set 0x08 in P1DIR, in P1SEL and in P1SEL2. ADC10AE has to be cleared for that pin, same for CAPD.

    Dennis

**Attention** This is a public forum