SPRAD24 august 2023 AM2631 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1 , AM263P4 , AM263P4-Q1
As the time spent on communication between SoC and CCS is not deterministic, it is necessary to have a log recording values from the interrupt at a given sample rate. This is critical for observation data via graph window. A simple log is implemented. There are 16 pointers available to 16 global variables. Before the hardware interrupt starts, the pointers need to be assigned to either global variables or NULL. The following lines need to be called. Line 1 is called after the assignment of pointers. Line 2 is called after all computation is completed every interrupt. There is a scale, named gLogScaler, implemented in the line 2 function. It represents how many interrupts are skipped between two logging points. By setting the global variable, data can be logged at frequencies lower than or equal to the interrupt frequency.