Im currently doing a project relating to microcontroller, temperature sensor and a whole lot of small stuff to make a big bunch of stuff.
To cut things short, im doing the 2 digit 7 segment display.
I manage to get single digit 7 segment to lit up but not 2 digit together. I start to doubt 2x7447 could not make up 2 digit 7 segment. If it is possible could someone care to show me how it could be done?
Here is the current schematic i made up but it is still 2 individual 7 segment instead of 2 digits.
**anyway, i forget the connection from the 7447's GND to GN
Well, using microcontroller to run it require 14 input port to the 2 digit 7 segmet and plus 1 more for LED to indicate polarity.
Using transistor will make it less. True.
Since im already done the 7 segment and troubleshooting it. I thought i could continue. Then i will not need to do so much programming on my limited space microcontroller.
Im using AT89S52 (only contain 8Kb Programmable Flash Memory). I still have programs for other part of my system.
Back to 7 segment. Is there any combination of logic that will make the thwo 7447 to form a 2 digit decoder?
No, you only need eight connections in total to the two LED's, plus an extra for your polarity indication - it's called multiplexing, and is almost universal with LED displays.
There's also a more complicated version called 'charlie-plexing' which uses even less wires.
this is one example link and resource i found. But i have no knowledge on those and it is a counter instead of a normal 7 segment display. Instead i go for something i know but it doesnt work as i want it to be =(
I have 12-bits output to my microcontroller that will be feed into my 7 segment ( 8/12 -bit )
Someone can give me a head start on using multiplexer?
this is one example link and resource i found. But i have no knowledge on those and it is a counter instead of a normal 7 segment display. Instead i go for something i know but it doesnt work as i want it to be =(
That's the sort of thing, except as it only uses two digits, you can use a single pin to select between them, saving an extra pin - like this .
Being a counter makes no difference, it's the hardware you're looking for, and just take the pieces of sofware you need, or write your own from scratch?.
I have 12-bits output to my microcontroller that will be feed into my 7 segment ( 8/12 -bit )
Well 12 bits gives four digits resolution (0-4095), so how do you want to display it on two digits (0-99)? - basically you're probably looking at maths routines.
Someone can give me a head start on using multiplexer?
That's the sort of thing, except as it only uses two digits, you can use a single pin to select between them, saving an extra pin - like this .
Being a counter makes no difference, it's the hardware you're looking for, and just take the pieces of sofware you need, or write your own from scratch?.
Well 12 bits gives four digits resolution (0-4095), so how do you want to display it on two digits (0-99)? - basically you're probably looking at maths routines.
the output is from a digital thermometer that has fix address for certain range of temperature. Those are fixed addresses that cannot be altered, therefore the output is at a 12-bit resolution.
Unless i convert the 12-bit to a 8-bit resolution, which is very hard in term of programming a decoder for it in the microcontroller. But i shall see what i can do 1st.
The 12-bit digital thermometer read from a range of +125 Degree C to -55 degree C. Between the polarity(+ve, 0, -ve), the MSB is the indicator of the polarity. Even though it is a 12-bit, it do not make use of every bit and address
Nigel Goodwin said:
Although you can't use the PIC code, will give you an idea of how multiplexing works.
It's dead simple - just use the top 8 bits, and discard the bottom 4 bits (VERY simple divide by 16).
However, that probably isn't what you want? - you will probably need to scale (multiply and/or divide) the 12 bit number to get the temperature readings you want.