Jan 10, 2023
08:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 10, 2023
08:29 AM
Hello!
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.
Thank you!
1 Reply
Jan 11, 2023
04:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 11, 2023
04:39 AM
Hi,
Could you please let us know the register you are trying to update?
Regards,
Aiswarya.