Other Parts Discussed in Thread: CAPTIVATE-BSWP
Hi,
My customer is evaluating CapTIvate software based on FR2676_CAPTIVATE-BSWP demo.
Here are some question from the customer.
Q1) At line#172 in CAPT_BSP.c file, there are below codes.
CS_clearAllOscFlagsWithTimeout(1000);
// // Tune the DCO parameters // CS_initFLL((MCLK_FREQ/1000), FLL_RATIO); CS_clearAllOscFlagsWithTimeout(1000);
What is the reason you select '1000' as timeout value?
The customer changed it to '1' instead of '1000'. Is this a problem?
Q2) The customer measured while(1) background loop period in main.c.
(GPIO is toggled at the start and the end of the loop.)
Then they noticed the while loop took longer time when the counter value is 8191.
What is the reason the loop gets longer with 8191 count?
Q3) The customer changed main() and added CAPT_writeGeneralPurposeData(&BTN00_E00.pRawCount[0], 15); in while loop.
void main(void) { WDTCTL = WDTPW | WDTHOLD; BSP_configureMCU(); __bis_SR_register(GIE); CAPT_appStart(); while(1) { CAPT_appHandler(); CAPT_writeGeneralPurposeData(&BTN00_E00.pRawCount[0], 15); __no_operation(); CAPT_appSleep(); } // End background loop }
The customer expects CAPT_writeGeneralPurposeData() outputs &BTN00_E00.pRawCount which is stored in CAPT_appHander().
But the count CAPT_writeGeneralPurposeData() outputs is different than CAPT_writeElementData().
Are they different?
Q4)
CAPT_writeGeneralPurposeData outputs cvs data like below.
TimeStamp(ms) v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 32 1124 1087 1105 1083 1099 1113 1101 1105 1091 1115 32 1127 1088 1106 1080 1103 1116 1101 1102 1096 1116 32 1124 1089 1105 1093 1098 1114 1100 1106 1095 1113 32 1135 1088 1108 1086 1109 1120 1097 1102 1103 1114 32 1130 1085 1099 1084 1107 1117 1089 1102 1103 1115 47 1131 1084 1103 1079 1107 1111 1095 1102 1102 1110 47 1129 1093 1105 1083 1101 1119 1100 1104 1095 1120 64 1130 1080 1098 1093 1113 1115 1100 1106 1100 1111 79 1128 1088 1098 1090 1106 1113 1096 1105 1097 1108 79 1131 1089 1102 1088 1109 1110 1099 1105 1092 1110 95 1131 1082 1096 1089 1111 1117 1099 1103 1094 1109
What does TimeStamp(ms) exactly mean?
- The time when the target values are updated?
- The time when the target values are accessed?
- The time when the target values are output?
- or else?
Thanks and regards,
Koichiro Tashiro