Retrieve and manipulate data from memory.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
gppdk
Level 1
Level 1
25 sign-ins 5 questions asked 5 likes given

Hi Guys!

I am trying to create a tracking algorithm capable of reading and operating on ADC converted values to implement such an algorithm.
My questions are


1) Where in memory is it best to place the data converted by ADC? Is the LMU a good option?


2) How do I retrieve these memory values within my code to perform operations on them? Do you have any lines of code I can use as an example?

Thank you in advance to all of you who will try to help me!

0 Likes
1 Solution
Meet_T
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

Hi @gppdk ,

 

1. Yes LMU can be an option. If you want faster memory access you can also use DSPR (memory location: 0x70000000 for CPU0 DSPR) memory locations.

2. You can access these values in memory by using a pointer variable and point it to the address that you want to access. 

 

Best Regards,

Meet.

View solution in original post

1 Reply
Meet_T
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

Hi @gppdk ,

 

1. Yes LMU can be an option. If you want faster memory access you can also use DSPR (memory location: 0x70000000 for CPU0 DSPR) memory locations.

2. You can access these values in memory by using a pointer variable and point it to the address that you want to access. 

 

Best Regards,

Meet.