10 bit to 7 segments

Hi everyone!!

I'm posting because i need help! I want to make a 10 bit to 7 segments schematic/circuit.

I need to just convert 10 bit binary to decimal.. In my idea i have 10 switches and every one of them represents a number in decimal.
for example when i put ON my first switch from the right i want that in the 7 segments appears the number "1" and for example when i switch ON the last switch from the left it appears "512" and if all of them are ON appears 1023.

So i have 10 ON/OFF switch and 4 (7 segment) display.

I have a PIC programmer, so if anyone can help by hardware or software it would be great.

Thank you very much!!!

sort by: active | newest | oldest
Grieverjoao (author) 4 years ago
Thank you very much for the reply but i don´t understand most of it!
I'm not very friendly with programming if anyone can help me i would appreciate it!
I have a Pic programmer that supports PICs, 8p, 14p, 18p and 24p my kit is a PIC PROGRAMMER & EXPERIMENT BOARD from VELLEMAN, its the kit K8048.

I never programmed with this kit and I only know a little bit c++.
I hope anyone can teach me on the programming.
You could start out with programming 8 bit binary to decimal first. It seems that what the kit is designed to do.
Grieverjoao (author)  caitlinsdad4 years ago
The problem is that i don't know how to do that. I never worked with PICs.. sorry
Do you know what binary numbers are? Have you read the examples they provide with your kit? Is it hooked up to the computer?
Grieverjoao (author)  caitlinsdad4 years ago
I know what binary numbers are. The examples i didn't read them because i don't have them. This was a gift from a friend and i only have the board. Nothing more.

I have searched found a way to do it and i understand the concept but i don't know how to make it... The solution is the algorithm double dabble. http://www.microchip.com/forums/tm.aspx?high=&m=439637&mpage=1#439669
But i don´t know how to put this in the Pic and after that i don't know how to connect the 5 7segments to the Pic
http://www.vellemanusa.com/support/downloads/?code=K8048

 
 Starting out on a PIC might be more obscure since it gets closer to the more cryptic machine level programming.  I am sure there are tutorials out there for using a PIC.  I think you have to get one digit to display before you can move on to a standard 8-bit display.
http://www.vellemanusa.com/support/downloads/?code=K8048

 
 Starting out on a PIC might be more obscure since it gets closer to the more cryptic machine level programming.  I am sure there are tutorials out there for using a PIC.  I think you have to get one digit to display before you can move on to a standard 8-bit display.
caitlinsdad4 years ago
http://www.microchip.com/forums/m210149-print.aspx

P
robably more techniques out there but essentially gather up your switch inputs to create a string to be parsed and calculate the decimal number.  Good luck.