Part Number: MSP430FR6043
I'm capturing data using the SDHS module of USS. The SDHS is configured as "SDHS_REGISTER_CONTROL_MODE". and
"SDHS_ACQUISITION_DONE_INTERRUPT" is enabled so the DTC reset is done in the isr.
SDHSCTL5 is used to start the data conversion.
I want to reset the DTC buffer index to 0 after one time period of capturing data.
The reset is done as follows:
SDHSCTL4 &= ~(SDHSON);
SDHSCTL3 &= ~(TRIGEN);
SDHSDTCDA = 0x00;
SDHSCTL3 = TRIGEN_1;
SDHSCTL4 = SDHSON;
__delay_cycles(320);//settling time before SDHSCTL5.SSTART is set.
But the SDHSDTCDA continuous incrementing and I'm not able to change it to 0.
It is mentioned in the userguide (22.5, page 578, Note 5) that the SDHSDTCDA is unlocked when SDHSCTL4 and SDHSCTL3 are disabled.
Are there any other registers that need to be disabled to modify SDHSDTCDA register?
Thanks,
karthik