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

Making SFR bit addressable

We are using Cypress Microcontroller with Keil uVision 2 platforms.
One of Cypress register OEB (address = 0xB2) non-bit addressable SFR registry.
In our application we are planning to use as a bit addressable configuration.
Is there easy way to do by using keil macros?

Parents
  • Why would they be specific to Keil?

    The only thing here that's specific to Keil is their language extension to exploit the 8051's bit addressability.

    Where the object is not bit-addressable, it's back to plain, vanilla, standard ANSI 'C'.

    Have you investigated Erik's suggestion of using a "shadow" variable that is bit addressable? That's certainly where I'd be looking...

Reply
  • Why would they be specific to Keil?

    The only thing here that's specific to Keil is their language extension to exploit the 8051's bit addressability.

    Where the object is not bit-addressable, it's back to plain, vanilla, standard ANSI 'C'.

    Have you investigated Erik's suggestion of using a "shadow" variable that is bit addressable? That's certainly where I'd be looking...

Children
No data