• Skip to primary navigation
  • Skip to main content
FDI: Future Designs, Inc.

FDI

Future Designs, Inc.

  • Products
    • μEZ GUI
    • ELI
    • ΣyG
    • Modular Development Kits – DK
    • Other Products
    • End of Life
    • All Products (By part number)
  • Engineering Design
  • Production
  • Support
    • Forums
  • About FDI
    • News
    • Management
    • Partners
    • Distributors
    • Practices
    • Careers
    • New Customer Referral
  • Contact Us
  • Show Search
Hide Search

How do I convert from the Hex to base 10? (0xC4 = 196, which exceeds 127)?

Homepage › Forums › Other Products › Demo Kits › How do I convert from the Hex to base 10? (0xC4 = 196, which exceeds 127)?

  • This topic has 0 replies, 1 voice, and was last updated 5 months, 1 week ago by Logan Moon.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • February 6, 2025 at 10:09 pm #16792
    Logan Moon
    Keymaster

      (This message was transferred over from our old forum)
      Posted August 14, 2015
      By Todd DeBoer
      [hr]
      “I am using PSoC Express to control the LED driver on the PCA9633DEMO board.

      The ALT LED Driver in the schematics state that the I2C address is 0xC4. PSoC Express wants me to input
      the address as a number from 0 to 127. How do I convert from the Hex to base 10?
      (0xC4 = 196, which exceeds 127).”
      [hr]
      (Follow up post)

      Answered:

      I2C addresses can be confusing because they are 7 bits and sometimes they are left shifted by 1 and sometimes they are not.
      For the 0xC4, this is:

      1 1 0 0 0 1 0 x

      Where x is a 1 or a 0 depending on if you are doing an I2C read or write.

      At Future Designs, the address is always an 8-bit value with the address in the upper 7 bits and the lowest bit a 0.

      To convert back, just drop the lowest (always 0) bit:

      1 1 0 0 0 1 0

      This gives the value 0x62 (98 in decimal).

    • Author
      Posts
    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.
    Log In

    Partners

    NXP
    Renesas

    ARM
    SEGGER

    STMicroelectronics
    SAFERTOS

    FreeRTOS

    Copyright © 2025 Future Designs, Inc. | μEZ GUI | ELI | Engineering Design | Production | Privacy Policy | Log in