Arm Community
Site
Search
User
Site
Search
User
Support forums
Keil forum
uVision 5 - 8051F580 compiler --> macro to make P4 bit addressable
Jump...
Cancel
State
Accepted Answer
Locked
Locked
Replies
2 replies
Subscribers
23 subscribers
Views
1599 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
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
over 1 year ago
any macros to make P4 bit addressable?
thank you
Fausto Bartra
Top replies
Hans Schneebauer
over 1 year 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
over 1 year ago
in reply to
Hans Schneebauer
+1
Thank you
Parents
0
Fausto Bartra
over 1 year ago
in reply to
Hans Schneebauer
Thank you
Cancel
Vote up
+1
Vote down
Cancel
Reply
0
Fausto Bartra
over 1 year ago
in reply to
Hans Schneebauer
Thank you
Cancel
Vote up
+1
Vote down
Cancel
Children
No data