Hi Sebastian, [quote userid="558003" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1500108/tms570ls1227-examples-for-adc-tms570ls1227-tmds570ls12hdk/5764862#5764862"]Is the "Hercules Safety MCU Demos" folder the only location containing source code examples for the TMS570LS1227, or are there additional example files available elsewhere?[/quote] (+) [FAQ] TMS570LC4357: Examples and Demos available for Hercules Controllers (E.g. TMS570x, RM57x and RM46x etc) - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums In above FAQ, i mentioned how to access all the examples related to the Hercules devices. [quote userid="558003" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1500108/tms570ls1227-examples-for-adc-tms570ls1227-tmds570ls12hdk/5764862#5764862"] Regarding the reading of conversion results (single read, one channel, one group): a) When using the conversion results memory as a FIFO queue, identical results are repeatedly observed across BUF0, BUF1, and so on. b) When directly accessing the conversion results memory, identical values are observed in memory at different offsets. Could you please confirm my understanding? [/quote] Yes, your understanding correct. Regarding FIFO you can refer below thread once: (+) TMS570LS1224: ADC FIFO access - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums And regarding memory also you are correct, the conversions storage will happen in round-robin method. First it will store the first iteration of all the configured channels in memory and then this will be followed by the second iteration of results, and this will continuous until configured memory of the corresponding group gets fill. Once group memory filled then it will start store from starting address of group again. [quote userid="558003" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1500108/tms570ls1227-examples-for-adc-tms570ls1227-tmds570ls12hdk/5764862#5764862"]Specifically, is it correct to assume that if an analog value changes rapidly, the results captured in the memory would vary accordingly?[/quote] It depends on the conversion method you have chosen. If you choose single conversion mode, then all the configured channels will get conversion for one iteration only. and then we need to trigger again to do second iteration of conversion. Whereas in continuous mode the conversion happens repeatedly until we stop the conversion forcefully. [quote userid="558003" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1500108/tms570ls1227-examples-for-adc-tms570ls1227-tmds570ls12hdk/5764862#5764862"]Is it possible to somehow limit the number of results in case of reading directly from the memory?[/quote] Yes you can do it. Refer below section in TRM to understand it: . Based on above understanding you can configure at below tab in HALCoGen: -- Thanks & regards, Jagadish.
↧