This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

are SFRs treated as unsigned or signed

in the SiLabs forum someone showed SFR = -n

I have never used such and became curuous. I searched the Keil documentation but could nof find it.

Parents
  • Look in the header file - how is the SFR in question defined?

    It will be a standard 'C' thing - not specitfic to Keil (other than, maybe, subject to the option to disable integer promotion)

    As far as 'C' is concerned, it will follow the standard rules when assigning one type to another type 

Reply
  • Look in the header file - how is the SFR in question defined?

    It will be a standard 'C' thing - not specitfic to Keil (other than, maybe, subject to the option to disable integer promotion)

    As far as 'C' is concerned, it will follow the standard rules when assigning one type to another type 

Children