Writing to Registers

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

cross mob
Ikavalis
Level 1
Level 1
10 sign-ins First like given 5 sign-ins

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!

0 Likes
1 Solution

Hello,

You could refer to  sections "1.1.3 Reserved, Undefined, and Unimplemented Terminology"  and  "1.1.4 Register Access Modes" in the User Manual  given in this link.

Kind Regards,
Aiswarya.

View solution in original post

0 Likes
2 Replies
Aiswarya_A
Moderator
Moderator
Moderator
25 likes received 250 sign-ins 50 solutions authored

Hi,

Could you please let us know the register you are trying to update?

Regards,
Aiswarya.

0 Likes

Hello,

You could refer to  sections "1.1.3 Reserved, Undefined, and Unimplemented Terminology"  and  "1.1.4 Register Access Modes" in the User Manual  given in this link.

Kind Regards,
Aiswarya.

0 Likes