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.

Getting 5 Buttons on MSP430G2153 Help

I want to use the cheaper G2153 with only 1KB memory.  My project is for five buttons, no slider function needed. Based on reading around the various docs using anything above the API calls of TI_CAPT_Raw() will put me over the 1KB mark.  I plan on using the fRO_PINOSC_TA0_TA1 method if that matters.  Is this configuration possible?

Thanks,

  • Use any old-fashioned open-close buttons, you will be fine.

  • It shouldn't be a problem to implement a touch-sense for 5 buttons (or more, depending on available port pins) within 1k of code. However, using a library for this will always add some code overhead, since the library is designed to provide support for any combination and configuration. So it has lots of superfluous code that could be replaced with direct instructions that match your specific configuration.

    You can analyze the the library code and create your own, stripped-down version, after you understood how it works.

**Attention** This is a public forum