Need help converting a 4 bit binary number to 4 separate values


Results 1 to 4 of 4

Threaded View

  1. #4
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Need help converting a 4 bit binary number to 4 separate values

    Thanks Henrik,

    I'll give those a try.

    When I get this working it will have...
    • 8 digit 7-segment display of 8 bit binary number in the form of 1's and 0's
    • 8 individual LED's to represent an 8 bit binary number in the form of High and LOW (on/off)
    • 2 digit alphanumeric display to represent Hex number
    • 4x20 LCD using BIG digits to display Decimal number

    All controlled by a 16F690.

    Will count up/down from 0-255
    Each of the above listed display formats will show the same number in a different way.
    A POT will increase/decrease/stop counting speed
    2 buttons to change counting direction or single count when pot is turned all the way to stop.

    My intention is to have a way to show the same number in DEC / HEX / BIN so that students can see the relationship between the different number formats.
    Oh Yeah, and to have something sort of Rube Goldberg-ish and kind of geeky to spark interest in electronics and programming.

    I'll try and post the code and a video when I get it finished.

    thanks
    Last edited by Heckler; - 22nd June 2015 at 17:22.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

Similar Threads

  1. Replies: 10
    Last Post: - 8th March 2015, 20:26
  2. Changing output binary number sequence? is it possible?
    By wdmagic in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd January 2013, 01:47
  3. Replies: 7
    Last Post: - 11th September 2010, 01:32
  4. Convert long binary number to ASCII Decimal
    By Joe Rocci in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th July 2009, 14:58
  5. Averaging 16 bit values without using 32 bit math
    By sirvo in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th October 2007, 23:18

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts