Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Dear TI support Team,
i just started to work with Microcontrollers ( STM32 and Hercules ) and want to calculate Power as fast as possible by reading Current values via ADC.
Because of that, i try to configure a DMA transfer of the converted ADC values ( 2 channels, e.g. I1 and I2 ) without generating any interrupts that will stop my main program temporarly. Thus, if the ADC is also configured in continous mode, the last converted current values should always be available for my main program.
I managed to realize this ADC DMA configuration with the STM32, but i struggle with the Hercules. I already read multiple threads, like
for example, but it still doesn't work. I also didn't understand the source adress value, also the element source offset, that was given in the copied thread above. If I understand it correctly, the base source address of the Group1 RAM should be 0xFF30000 + (numberofChannelsEvent ( BNDA) + Result )*4. For example my first result from channel 0 is always at 0xFF30000 + 4*16 ( if BNDA = 8 ) + 0 ( first result). This can also be seen in my dma_configuration in the attachement.
Also, if I try to read the ADC data without DMA, it seems to work just fine.
The sys_main ( I only wrote code there ) and the HalCoGen configurations can be found in the attachements.
Thank you,
Sebastian 0310.PowerCalc_simple.zip