Is it possible to display this binary data on 7-segment display easily using PIC16F676.
H L
00000101 11111010
This in Decimal is ( 1530 )
This is the maximum number i can get
the minimum in Decimal is ( Zero )
The maximum in Decimal is ( 1530 )
Can some one help me please
thanking you in anticipation.
num = 1530;
a[0] = num/1000; //Holds 1
a[1] = (num/100)%10; //Holds 5
a[2] = (num/10)%10; //Holds 3
a[3] = num%10; //Holds 0
//You can use this code snippet for any value between 0 to 9999.
Then you can send a[0], a[1], a[2], a[3] to 7-segment one after the other after some delay. The challenge will be the setup of the 7-segment as you would require 7 pins for sending to 7-segment data and 4 pins for setting which 7-segment to use. That's 11 pins. It's okay, but if you want to use more pins for something else, then you're kinda stuck. Then you can use a 7447 to drive the 7-segment. Then you'll need 4 pins instead of 7, saving you 3 pins. If you need to reduce more pins, you can use 74195 or 4017. Configure the 4017 so that after every pulse received, it sends a high to the next bit, resetting to bit 0 after it has sent data to bit 3.