You are here

Macros for bit band access? | Cypress Semiconductor

Macros for bit band access?

Summary: 3 Replies, Latest post by PCPete on 27 May 2011 11:44 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
Doug McClean's picture
38 posts

Are there macros anywhere in the standard generated code (or, in a code sample, if need be) for setting / clearing / toggling bits through the Cortex M3 bit-banding feature?

I'd like to take advantage of this for uninterruptible read/modify/write of some status bits associated with each of a bunch of buffers in the SRAM. From what I understand it should be possible, but I'm wondering if I need to roll my own. I'm OK with assembly, not so much with the C preprocessor.

dasg's picture
Cypress Employee
730 posts



The info provided at the link below may be of some help.

Doug McClean's picture
38 posts

Thanks, I will do that.

You guys should consider rolling this into the libraries that come with PSoC Creator. It looks to me like there's no impact on code size as long as it is unused.

user_120347163's picture
14 posts

 Thanks for the reference, dasq... I'm also interested in an easy and consistent way to access the bitband region.


For anyone interested, the target URL has been slightly changed to


IOW, just add an 'l' to the original URL and you should be fine. But be aware, this document has been cached on the ARM site, so I'm not sure if that will limit its availability


Log in to post new comments.