Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENC28j60 bitwise OR 0x80 #180

Open
manintheit opened this issue Feb 3, 2018 · 0 comments
Open

ENC28j60 bitwise OR 0x80 #180

manintheit opened this issue Feb 3, 2018 · 0 comments

Comments

@manintheit
Copy link

I have a question regarding library for the enc28j60.h I would appreciate If you could answer my question.

I do not understand why we also do bitwise OR for the some of the registers in the Bank2 and Bank3 with 0x80. You can see the examples below for the MACON1. But I could not find any section indication of combination related to control registers that on the data sheet of the ENC28J60.

#define MACON1 (0x00|0x40|0x80)

=====================================================
// Control register definitions are a combination of address,
// bank number, and Ethernet/MAC/PHY indicator bits.
// - Register address (bits 0-4)
// - Bank number (bits 5-6)
// - MAC/PHY indicator (bit 7)

======================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant