Hi...
I am using TSM320f28035 controller for one of my application.
I am using a structure for my variables and want to extract 8-bit data from it in different register in a optimized way.
I have declared the variable as follows.
typedef struct DATA
{
Uint16 A1;
Uint16 A2;
Uint16 A3;
}Parameters;
typedef union DATA
{
Parameters B1;
Uint16 ARRAY16[ 3];
Uint8 ARRAY8[6];
}extract;
When compiled and try to extract data from the ARRAY16, the data of the element of the structure reflects in the buffer.
But I get some garbage value in the ARRAY8.
Will you please suggest what should I do to get the 8-bit data in the register in a optimized way?
Regards,
Kamal
