Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8060969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:10:17+00:00 2026-06-05T10:10:17+00:00

I have a very basic understanding of bitwise operators. I am at a loss

  • 0

I have a very basic understanding of bitwise operators. I am at a loss to understand how the value is assigned however. If someone can point me in the right direction I would be very grateful.

My Hex Address: 0xE0074000

The Decimal value: 3758571520

The Binary Value: 11100000000001110100000000000000

I am trying to program a simple Micro Controller and use the Register access Class in the Microsoft .Net Micro Framework to make the Controller do what I want it to do.

Register T2IR = new Register(0xE0074000);
T2IR.Write(1 << 22);

In my above example, how are the bits in the Binary representation moved? I don’t understand how the management of bits is assigned to the address in Binary form.

If someone can point me in the right direction I would be very greatfull.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:10:18+00:00Added an answer on June 5, 2026 at 10:10 am

    Forget about decimals for a start. You’ll get back to that later.

    First you need to see the logic between HEX and BINARY.

    Okay, for a byte you have 8 bits (#7-0)

    #7 = 0x80 = %1000 0000
    #6 = 0x40 = %0100 0000
    #5 = 0x20 = %0010 0000
    #4 = 0x10 = %0001 0000
    
    #3 = 0x08 = %0000 1000
    #2 = 0x04 = %0000 0100
    #1 = 0x02 = %0000 0010
    #0 = 0x01 = %0000 0001
    

    When you read that in binary, in a byte, like this one %00001000

    Then the bit set, is the 4th from right aka bit #3 which has a value of 08 hex (in fact also decimal, but still forget about decimal while you figure out hex/binary)

    Now if we have the binary number %10000000
    This is the #7 bit which is on. That has a hex value of 0x80

    So all you have to do is to sum them up in “nibbles” (each part of the hex byte is called a nibble by some geeks)

    the maximum you can get in a nibble is (decimal) 15 or F as 0x10 + 0x20 + 0x40 + 0x80 = 0xF0 = binary %11110000

    so all lights on (4 bits) in a nibble = F in hex (15 decimal)

    same goes for the lower nibble.

    Do you see the pattern?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a decent understanding of C# and a very basic understanding of powershell.
I have a very basic understanding of shell scripting, but what I need to
I have a very basic understanding of how autoconf and automake work, gathered from
I have very basic understanding problem of Content types. I went through lot of
I have some very basic semaphore code that works great on Linux, but cannot
I have a very basic doubt regarding the method that gets executed when app
I have a very basic knowledge of the web programming, and I couldn't figure
I have a very basic texture map problem in GL on iPhone, and I'm
I have a very basic data class that is subclassed from NSObject. I declare
I have a very basic query string which passes a ID to a receiving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.