Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

MSP430FR2512: Manually edited the evm430-capmini sample code

$
0
0

Part Number:MSP430FR2512

Hi TI Team,

We don't have the EVM430 CApmini development kit so, I cannot connect our board via HID to do tuning. 

However, I was able to adjust the threshold of touch by modifying the touch threshold manually.

Please  confirm this change is fine..

Regards,

Walter

-----------------

CAPT_UserConfig.c  

//*****************************************************************************
// Sensor: BTN00, Element: E00
uint16_t BTN00_E00_RawCnts[CAPT_SELF_FREQ_CNT];
tCaptivateElementTuning BTN00_E00_Tuning[CAPT_SELF_FREQ_CNT];
tElement BTN00_E00 =
{
.ui8RxPin = 0,
.ui8RxBlock = 0,
/* orig*/
//.ui8TouchThreshold = 10,
/* orig*/
/* AZTECH Modify */
.ui8TouchThreshold = 5,
/* end of AZTECH Modify */
.pRawCount = BTN00_E00_RawCnts,
.pTuning = BTN00_E00_Tuning,
};

// Sensor: BTN00, Element: E01
uint16_t BTN00_E01_RawCnts[CAPT_SELF_FREQ_CNT];
tCaptivateElementTuning BTN00_E01_Tuning[CAPT_SELF_FREQ_CNT];
tElement BTN00_E01 =
{
.ui8RxPin = 1,
.ui8RxBlock = 0,
/* orig*/
//.ui8TouchThreshold = 10,
/* orig*/
/* AZTECH Modify */
.ui8TouchThreshold = 5,
/* end of AZTECH Modify */
.pRawCount = BTN00_E01_RawCnts,
.pTuning = BTN00_E01_Tuning,
};

// Sensor: BTN00, Element: E02
uint16_t BTN00_E02_RawCnts[CAPT_SELF_FREQ_CNT];
tCaptivateElementTuning BTN00_E02_Tuning[CAPT_SELF_FREQ_CNT];
tElement BTN00_E02 =
{
.ui8RxPin = 2,
.ui8RxBlock = 0,
/* orig*/
//.ui8TouchThreshold = 10,
/* orig*/
/* AZTECH Modify */
.ui8TouchThreshold = 5,
/* end of AZTECH Modify */
.pRawCount = BTN00_E02_RawCnts,
.pTuning = BTN00_E02_Tuning,
};

// Sensor: BTN00, Element: E03
uint16_t BTN00_E03_RawCnts[CAPT_SELF_FREQ_CNT];
tCaptivateElementTuning BTN00_E03_Tuning[CAPT_SELF_FREQ_CNT];
tElement BTN00_E03 =
{
.ui8RxPin = 3,
.ui8RxBlock = 0,
/* orig*/
//.ui8TouchThreshold = 10,
/* orig*/
/* AZTECH Modify */
.ui8TouchThreshold = 5,
/* end of AZTECH Modify */
.pRawCount = BTN00_E03_RawCnts,
.pTuning = BTN00_E03_Tuning,
};


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>