I have just started to program some code at the lower levels.
I have been told to change any signed integers into unsigned integers and store these in the HW registers. I have done this OK but I am wondering why I need to do that? What if I would have a 32bit signed integer, How would I handle that?
The values are going to be used by the HW itself sometimes, but also by SW. When SW uses them I convert them back.
All of the HW registers are 32bit in size.