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.

[参考译文] MSP430FR2522:G

Guru**** 1587215 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1021026/msp430fr2522-g

器件型号:MSP430FR2522

您好!

我将4个自电容用于两个触摸板。

我从电容式设计中心设计并创建了一个源代码、无需任何通信接口

现在、我要参考此内容来构建应用程序

但在调试期间、我遇到" 0x59e2没有可用源"错误和代码停止

请查找详细信息

WDTCTL = WDTPW | WDTHOLD;
PM5CTL0 &=~LOCKLPM5;

//步骤4a:
CAPT_initUI (&g_uiApp);
CAPT_calibrateUI (&g_uiApp);

//步骤4b:
MAP_CAPT_selectTimerSource (CAPT_TIMER_SRC_ACLK);
MAP_CAPT_writeTimerCompRegister (CAPT_MS_TO_CYCLES (g_uiApp.ui16ActiveModeScanPeriod));
map_CAPT_startTimer();
MAP_CAPT_enableISR (CAPT_TIMER_INTERRUPT);

Uart0_init();

_bis_SR_register (GIE);

//==================================================================================================

while (1)

if (g_BConvTimerFlag = true)

 G_bConvTimerFlag = false;
 CAPT_updateUI (&g_uiApp);
 button_check();

void button_check()




if (((BTN01.bSensorTouch == false)&&(BTN01.bSensorPrevTouch == true))

  UART_char_sent ('a');}