LED 7segment blanking and negative numbers possible?
Posted: Tue Jul 22, 2008 10:35 am
Hello,
for a new project i need to display an actual temperature value on the 4x 7Segment display E-block.
For normal positive values this is working fine:
the integer-variable Actual_TEMP is separated in 4 digits (by the MOD/100 etc. lines) and then via an TRM0_INT send and multiplexed to the LED-display using the LED7SEG4(0) macro's SHOWDIGIT subsequently for all 4 display''s.
Questions:
1. When the value of Actual_TEMP goes negative, temperature below 0Β°C, the display starts showing wrong values.
In wich way is it possible to give a minus '-' symbol at the most left Display with the actual temperature on the 3 other display's, like "-10" Β°C
2. Is it possible to give 4 '-' minus symbols on all 4 display's "----" in an Overload situation?
3. How can i blank out (temporarely) one or more display's?
This for blanking out the leading zero's etc., displaying " 10" Β°C in stead of " 0010" Β°C
many thanks in advance for your reaction,
kind regards, Luuk Aalders
(RS Technics BV - The Netherlands)
for a new project i need to display an actual temperature value on the 4x 7Segment display E-block.
For normal positive values this is working fine:
the integer-variable Actual_TEMP is separated in 4 digits (by the MOD/100 etc. lines) and then via an TRM0_INT send and multiplexed to the LED-display using the LED7SEG4(0) macro's SHOWDIGIT subsequently for all 4 display''s.
Questions:
1. When the value of Actual_TEMP goes negative, temperature below 0Β°C, the display starts showing wrong values.
In wich way is it possible to give a minus '-' symbol at the most left Display with the actual temperature on the 3 other display's, like "-10" Β°C
2. Is it possible to give 4 '-' minus symbols on all 4 display's "----" in an Overload situation?
3. How can i blank out (temporarely) one or more display's?
This for blanking out the leading zero's etc., displaying " 10" Β°C in stead of " 0010" Β°C
many thanks in advance for your reaction,
kind regards, Luuk Aalders
(RS Technics BV - The Netherlands)