Arm Community
Site
Search
User
Site
Search
User
Support forums
Keil forum
uVision 5 - 8051F580 compiler --> macro to make P4 bit addressable
State
Accepted Answer
Locked
Locked
Replies
2 replies
Subscribers
20 subscribers
Views
901 views
Users
0 members are here
Options
Share
More actions
Related
How was your experience today?
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
uVision 5 - 8051F580 compiler --> macro to make P4 bit addressable
Fausto Bartra
8 months ago
any macros to make P4 bit addressable?
thank you
Fausto Bartra
Top replies
Hans Schneebauer
7 months ago
+2
verified
The SFR P4 is at address 0xB5. This address is not bit-addressable. You can only set or clear bits by using AND / OR operators that modify the whole SFR with a Read-Modify-Write instruction. Example: ...
Fausto Bartra
7 months ago
in reply to
Hans Schneebauer
+1
Thank you
0
Quote