Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi Support team,
Currently I am working on MSPM0C1104 SOT-8 (DDF) package,
I am trying to control PA27, which is PIN 1, based on the input received at FCC_IN (PA0), which is PIN 5; however, I am unable to obtain the FCC Value. What am I missing to enable the FCC_IN
The frequency on the FCC_IN Pin is as mentioned below,
MIN Frequency: 3 Hz
MAX Frequency: 300 Hz
Below is the code for review.
#include "ti_msp_dl_config.h"
volatile uint32_t fccVal;
int main(void)
{
SYSCFG_DL_init();
DL_SYSCTL_startFCC();
while (false == DL_SYSCTL_isFCCDone())
;
fccVal = DL_SYSCTL_readFCC();
if (fccVal > 55)
{
DL_GPIO_setPins(Head_Lamp_PORT, Head_Lamp_P1_PIN);
}
else
{
if (fccVal < 35)
{
DL_GPIO_clearPins(Head_Lamp_PORT, Head_Lamp_P1_PIN);
}
}
DL_SYSCTL_disableSleepOnExit();
while (1)
{
__WFI();
}
}