Tool/software: Code Composer Studio
Hello Champs,
One of my customer is designing CapTIvate MCU for their application.
Currently they asked that initialization code seems to take longer time than they expected.
So I checked their code and found some library function take long clock cycles than expected. the function is :
- CS_initFLL( (MCLK_FREQ/1000), FLL_RATIO);
==> it takes 3,105,298 cycles
- CAP_MANAGER_CALIBRATE_SENSOR(pApp->pSensorList[ui8SensorID]);
==> it takes 2,344,927 cycles
For their HW,
- they removed external 32.768kHz oscillator and currently use internal REFO 32.768kHz.
- 3 or 4 button cap touch is used with single button group.
For their SW,
- their software is based on the CapTIvate Design Center 1.8.0.
- they modified codes for GPIO setting and REFO setting for CS for the initialization.
- they use 16MHz MCLK
Issue1)
I'd like to know that these above two library functions need several million cycles at the initialization?
Issue2)
If this is normal, then I have one more question.
If I press the touch button right after the power on, then the LED response for touch is delayed than normal.
For example, I expect I can touch 3sec later after reset in normal state, but I press the button rapidly after reset, there's no LED response and should wait additional several seconds to LED response.
Can you explain why it happens and how to prevent this issue?
Best Regards,
Ernest Cho