Tool/software: TI C/C++ Compiler
Hi,
I am working on tms320c6713 PLL. instead of ORing and ANDing each bit in PLL registers, I wrote bit fields for each PLL register like:
struct PLL_XYZ_REG {
unsigned int w:5;
unsigned int x:1;
unsigned int y:10;
unsigned int z:16;
}
I have written a linker script to map these structures to appropriate memory locations and verified each register memory location using CCS watch window.
Now when i write something like;
struct PLL_XYZ_REG PLL;
PLL.w = 0x5;
PLL.x = 1;
Now the PLL.x = 1; bit field assignment overrides the whole register!!!!!! How exactly is that possible???? Kindly help.
Regards,