Other Parts Discussed in Thread: SYSCONFIG
Hi,
I implement a BLDC motor application with three digital hall sensors and I use the MSPM0G3507 microcontroller. I like to trigger an interrupt on every hall sensor edge (rising and falling) and measure the time between it (60°el).
For this reason, I configured the "Hall Input Mode (XOR)" as described in the reference manual. Unfortunately, it seems that it's only possible to cofigure a time capture on rising or falling edge, but not on both edges. However, according to the reference manual it looks like it should be possible (CCCTL_01/LCOND=3). Is there a way to capture the time on both edges? I'm using the newest SDK mspm0_sdk_2_00_00_03.
DL_Timer_CaptureConfig captureConfig;
captureConfig.edgeCaptMode = DL_TIMER_CAPTURE_EDGE_DETECTION_MODE_RISING; // Both edges not possible
...
DL_TimerG_initCaptureMode(TIMG8, &captureConfig);
Additionally, after configuring the inputs as "Hall Input Mode (XOR)", reading the digital value from these hall sensor pins with DL_GPIO_readPins(...) isn't possible anymore. Is there another possibility to read the value of this pins?
Best Regards,
Daniel