I have a general question regarding registers.
I am trying to set a value to a register in the following manner: register_x.U = x
However, when I try to debug the code, I see that the register is not updating.
If I declare a variable of type register_x (register_x my_reg_x) and assign that variable a value (my_reg_x.U = x) and the assign my variable to the register (register_x.U = my_ref_x.U) then the register contents update.
Can anyone share with me why this is?
I am using tc234 mcu.