PSoC5LP DFB LoadDataRAMA API

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

cross mob
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Hi,

We use DFB assembler component.
So we would like to use the firmware to load any constant in DFB RAMA into any CLC in DATA RAMA.

DFB_LoadDataRAMA(int32 * ptr, uint32 *addr, uint8 size);

It is speculated to use the above API.

We read the data sheet but do not understand it.

-- uint32 * ptr : pointer on the data source to load.
-- uint32 * addr : Start address for loading data into DFB RAM A. Is this a CLC (Current Location Couter)?
-- uint8 size : The number of data words to load.

Is the above recognition correct?

Please tell us what int32 * ptr, uint32 * addr, uint8 size mean.

Do you have sample code for this API?

Regards,

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi user_236195066​,

Yes it is correct.

int32 * ptr is the pointer to the data (array) that you want to load into RAM A.

uint32* addr is the starting address  to load data in the RAM

uint8 size: no of data words to load

pastedImage_0.png

You can refer to the code example attached that uses this API to load a value into the RAM A.

Hope this helps!

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

2 Replies