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?
Just found following text in keil help, trying to understand how adding works:
"Not all SFRs are bit-addressable. Only those SFRs whose address is evenly divisible by 8 are bit-addressable. The lower nibble of the SFR's address must be 0 or 8. For example, SFRs at 0xA8 and 0xD0 are bit-addressable, whereas SFRs at 0xC7 and 0xEB are not. To calculate an SFR bit address, add the bit position to the SFR byte address. So, to access bit 6 in the SFR at 0xC8, the SFR bit address would be 0xCE (0xC8 + 6). "