Seven Segment display

Started by "imr...@yahoo.com [68HC12]" December 4, 2016
i am implementing a counter and need to display it on seven segment and LSD.Please help me ASAP because time is short for assignment.I am using Dragon-12 plus
I have done it in assembler. You need to know which bit of a byte
illuminates each segment of the display. Build a table of 10 or 16 bytes.
Take your number number and add it to the pointer, and load the register
with its value Save it. Now send it to the display. After about 50 msec,
complement this number, and again send it to display. Keep repeating, as a
LCD must be refreshed. Assuming you have several digits, send them all to
the selected display, before you refresh. There is a common pin for all
the LEDS which must also be refreshed.
If this is all to complicated, I can dig out the code and send it to you.
I think I know where I have it.

Fred
On Sat, Dec 3, 2016 at 10:27 PM, i...@yahoo.com [68HC12] <
6...> wrote:

> i am implementing a counter and need to display it on seven segment and
> LSD.Please help me ASAP because time is short for assignment.I am using
> Dragon-12 plus
>
I found the code. I wrote it about 8 years ago for a 68HC811. It displays
on a 3 digit LCD. The code consists of two parts. In the foreground I have
a 3 byte field, with 1 spot for each display digit. It then does a table
look-up for each, to determine which segments are to be lit. This results
in a new 3 digit display field.

Part 2. Using the timer, you need an interrupt once every 25 mSec or so.
Not critical. This routine then scans each of the bytes to the LCD. The
next time, it sends a complement, and so on. So once set up, it becomes
automatic.

An option would be to do both as part of the interrupt section, but this
would use up more CPU time.

My implementation was actually using a shift register, as I only had 2 pins
free. Direct would be better.

I can pull out the code sections and send them to you, if you are serious
about using it.

On Sun, Dec 4, 2016 at 9:01 PM, Fred Stuebner
wrote:

> I have done it in assembler. You need to know which bit of a byte
> illuminates each segment of the display. Build a table of 10 or 16 bytes.
> Take your number number and add it to the pointer, and load the register
> with its value Save it. Now send it to the display. After about 50 msec,
> complement this number, and again send it to display. Keep repeating, as a
> LCD must be refreshed. Assuming you have several digits, send them all to
> the selected display, before you refresh. There is a common pin for all
> the LEDS which must also be refreshed.
> If this is all to complicated, I can dig out the code and send it to you.
> I think I know where I have it.
>
> Fred
> On Sat, Dec 3, 2016 at 10:27 PM, i...@yahoo.com [68HC12] <
> 6...> wrote:
>
>> i am implementing a counter and need to display it on seven segment and
>> LSD.Please help me ASAP because time is short for assignment.I am using
>> Dragon-12 plus
>>
I need the code too could you please paste it over here!!
Hi
Subsequent to my notes to you on the LCD display, I did a google search
onMC6805 coding example LCD. The first file it notes is "lcd programming
example using assembly language". I have not read it in detail, but it
should help. It includes wiring and source code.

Good luck, and if you have trouble, feel free to contact me.
Fred
On Mon, Dec 5, 2016 at 11:33 PM, k...@gmail.com [68HC12] <
6...> wrote:

> I need the code too could you please paste it over here!!
The code here should work on your board:http://hcs12text.com/part027f.html
You should be able to get the LED driver code from it.

On Saturday, December 3, 2016 10:30 PM, "i...@yahoo.com [68HC12]" <6...> wrote:

  i am implementing a counter and need to display it on seven segment and LSD.Please help me ASAP because time is short for assignment.I am using Dragon-12 plus #yiv3590017565 #yiv3590017565 -- #yiv3590017565ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv3590017565 #yiv3590017565ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv3590017565 #yiv3590017565ygrp-mkp #yiv3590017565hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv3590017565 #yiv3590017565ygrp-mkp #yiv3590017565ads {margin-bottom:10px;}#yiv3590017565 #yiv3590017565ygrp-mkp .yiv3590017565ad {padding:0 0;}#yiv3590017565 #yiv3590017565ygrp-mkp .yiv3590017565ad p {margin:0;}#yiv3590017565 #yiv3590017565ygrp-mkp .yiv3590017565ad a {color:#0000ff;text-decoration:none;}#yiv3590017565 #yiv3590017565ygrp-sponsor #yiv3590017565ygrp-lc {font-family:Arial;}#yiv3590017565 #yiv3590017565ygrp-sponsor #yiv3590017565ygrp-lc #yiv3590017565hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv3590017565 #yiv3590017565ygrp-sponsor #yiv3590017565ygrp-lc .yiv3590017565ad {margin-bottom:10px;padding:0 0;}#yiv3590017565 #yiv3590017565actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv3590017565 #yiv3590017565activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv3590017565 #yiv3590017565activity span {font-weight:700;}#yiv3590017565 #yiv3590017565activity span:first-child {text-transform:uppercase;}#yiv3590017565 #yiv3590017565activity span a {color:#5085b6;text-decoration:none;}#yiv3590017565 #yiv3590017565activity span span {color:#ff7900;}#yiv3590017565 #yiv3590017565activity span .yiv3590017565underline {text-decoration:underline;}#yiv3590017565 .yiv3590017565attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv3590017565 .yiv3590017565attach div a {text-decoration:none;}#yiv3590017565 .yiv3590017565attach img {border:none;padding-right:5px;}#yiv3590017565 .yiv3590017565attach label {display:block;margin-bottom:5px;}#yiv3590017565 .yiv3590017565attach label a {text-decoration:none;}#yiv3590017565 blockquote {margin:0 0 0 4px;}#yiv3590017565 .yiv3590017565bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv3590017565 .yiv3590017565bold a {text-decoration:none;}#yiv3590017565 dd.yiv3590017565last p a {font-family:Verdana;font-weight:700;}#yiv3590017565 dd.yiv3590017565last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv3590017565 dd.yiv3590017565last p span.yiv3590017565yshortcuts {margin-right:0;}#yiv3590017565 div.yiv3590017565attach-table div div a {text-decoration:none;}#yiv3590017565 div.yiv3590017565attach-table {width:400px;}#yiv3590017565 div.yiv3590017565file-title a, #yiv3590017565 div.yiv3590017565file-title a:active, #yiv3590017565 div.yiv3590017565file-title a:hover, #yiv3590017565 div.yiv3590017565file-title a:visited {text-decoration:none;}#yiv3590017565 div.yiv3590017565photo-title a, #yiv3590017565 div.yiv3590017565photo-title a:active, #yiv3590017565 div.yiv3590017565photo-title a:hover, #yiv3590017565 div.yiv3590017565photo-title a:visited {text-decoration:none;}#yiv3590017565 div#yiv3590017565ygrp-mlmsg #yiv3590017565ygrp-msg p a span.yiv3590017565yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv3590017565 .yiv3590017565green {color:#628c2a;}#yiv3590017565 .yiv3590017565MsoNormal {margin:0 0 0 0;}#yiv3590017565 o {font-size:0;}#yiv3590017565 #yiv3590017565photos div {float:left;width:72px;}#yiv3590017565 #yiv3590017565photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv3590017565 #yiv3590017565photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv3590017565 #yiv3590017565reco-category {font-size:77%;}#yiv3590017565 #yiv3590017565reco-desc {font-size:77%;}#yiv3590017565 .yiv3590017565replbq {margin:4px;}#yiv3590017565 #yiv3590017565ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv3590017565 #yiv3590017565ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv3590017565 #yiv3590017565ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv3590017565 #yiv3590017565ygrp-mlmsg select, #yiv3590017565 input, #yiv3590017565 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv3590017565 #yiv3590017565ygrp-mlmsg pre, #yiv3590017565 code {font:115% monospace;}#yiv3590017565 #yiv3590017565ygrp-mlmsg * {line-height:1.22em;}#yiv3590017565 #yiv3590017565ygrp-mlmsg #yiv3590017565logo {padding-bottom:10px;}#yiv3590017565 #yiv3590017565ygrp-msg p a {font-family:Verdana;}#yiv3590017565 #yiv3590017565ygrp-msg p#yiv3590017565attach-count span {color:#1E66AE;font-weight:700;}#yiv3590017565 #yiv3590017565ygrp-reco #yiv3590017565reco-head {color:#ff7900;font-weight:700;}#yiv3590017565 #yiv3590017565ygrp-reco {margin-bottom:20px;padding:0px;}#yiv3590017565 #yiv3590017565ygrp-sponsor #yiv3590017565ov li a {font-size:130%;text-decoration:none;}#yiv3590017565 #yiv3590017565ygrp-sponsor #yiv3590017565ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv3590017565 #yiv3590017565ygrp-sponsor #yiv3590017565ov ul {margin:0;padding:0 0 0 8px;}#yiv3590017565 #yiv3590017565ygrp-text {font-family:Georgia;}#yiv3590017565 #yiv3590017565ygrp-text p {margin:0 0 1em 0;}#yiv3590017565 #yiv3590017565ygrp-text tt {font-size:120%;}#yiv3590017565 #yiv3590017565ygrp-vital ul li:last-child {border-right:none !important;}#yiv3590017565
Here are some other Dragon Board examples:http://sites.mecheng.adelaide.edu.au/robotics/wpage.php?wpage_idV

On Sunday, December 11, 2016 3:53 PM, "Jeff Smith s...@yahoo.com [68HC12]" <6...> wrote:

  The code here should work on your board:http://hcs12text.com/part027f.html
You should be able to get the LED driver code from it.

On Saturday, December 3, 2016 10:30 PM, "i...@yahoo.com [68HC12]" <6...> wrote:

  i am implementing a counter and need to display it on seven segment and LSD.Please help me ASAP because time is short for assignment.I am using Dragon-12 plus

#yiv4810096499 #yiv4810096499 -- #yiv4810096499ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv4810096499 #yiv4810096499ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv4810096499 #yiv4810096499ygrp-mkp #yiv4810096499hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv4810096499 #yiv4810096499ygrp-mkp #yiv4810096499ads {margin-bottom:10px;}#yiv4810096499 #yiv4810096499ygrp-mkp .yiv4810096499ad {padding:0 0;}#yiv4810096499 #yiv4810096499ygrp-mkp .yiv4810096499ad p {margin:0;}#yiv4810096499 #yiv4810096499ygrp-mkp .yiv4810096499ad a {color:#0000ff;text-decoration:none;}#yiv4810096499 #yiv4810096499ygrp-sponsor #yiv4810096499ygrp-lc {font-family:Arial;}#yiv4810096499 #yiv4810096499ygrp-sponsor #yiv4810096499ygrp-lc #yiv4810096499hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv4810096499 #yiv4810096499ygrp-sponsor #yiv4810096499ygrp-lc .yiv4810096499ad {margin-bottom:10px;padding:0 0;}#yiv4810096499 #yiv4810096499actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv4810096499 #yiv4810096499activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv4810096499 #yiv4810096499activity span {font-weight:700;}#yiv4810096499 #yiv4810096499activity span:first-child {text-transform:uppercase;}#yiv4810096499 #yiv4810096499activity span a {color:#5085b6;text-decoration:none;}#yiv4810096499 #yiv4810096499activity span span {color:#ff7900;}#yiv4810096499 #yiv4810096499activity span .yiv4810096499underline {text-decoration:underline;}#yiv4810096499 .yiv4810096499attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv4810096499 .yiv4810096499attach div a {text-decoration:none;}#yiv4810096499 .yiv4810096499attach img {border:none;padding-right:5px;}#yiv4810096499 .yiv4810096499attach label {display:block;margin-bottom:5px;}#yiv4810096499 .yiv4810096499attach label a {text-decoration:none;}#yiv4810096499 blockquote {margin:0 0 0 4px;}#yiv4810096499 .yiv4810096499bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv4810096499 .yiv4810096499bold a {text-decoration:none;}#yiv4810096499 dd.yiv4810096499last p a {font-family:Verdana;font-weight:700;}#yiv4810096499 dd.yiv4810096499last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv4810096499 dd.yiv4810096499last p span.yiv4810096499yshortcuts {margin-right:0;}#yiv4810096499 div.yiv4810096499attach-table div div a {text-decoration:none;}#yiv4810096499 div.yiv4810096499attach-table {width:400px;}#yiv4810096499 div.yiv4810096499file-title a, #yiv4810096499 div.yiv4810096499file-title a:active, #yiv4810096499 div.yiv4810096499file-title a:hover, #yiv4810096499 div.yiv4810096499file-title a:visited {text-decoration:none;}#yiv4810096499 div.yiv4810096499photo-title a, #yiv4810096499 div.yiv4810096499photo-title a:active, #yiv4810096499 div.yiv4810096499photo-title a:hover, #yiv4810096499 div.yiv4810096499photo-title a:visited {text-decoration:none;}#yiv4810096499 div#yiv4810096499ygrp-mlmsg #yiv4810096499ygrp-msg p a span.yiv4810096499yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv4810096499 .yiv4810096499green {color:#628c2a;}#yiv4810096499 .yiv4810096499MsoNormal {margin:0 0 0 0;}#yiv4810096499 o {font-size:0;}#yiv4810096499 #yiv4810096499photos div {float:left;width:72px;}#yiv4810096499 #yiv4810096499photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv4810096499 #yiv4810096499photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv4810096499 #yiv4810096499reco-category {font-size:77%;}#yiv4810096499 #yiv4810096499reco-desc {font-size:77%;}#yiv4810096499 .yiv4810096499replbq {margin:4px;}#yiv4810096499 #yiv4810096499ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv4810096499 #yiv4810096499ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv4810096499 #yiv4810096499ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv4810096499 #yiv4810096499ygrp-mlmsg select, #yiv4810096499 input, #yiv4810096499 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv4810096499 #yiv4810096499ygrp-mlmsg pre, #yiv4810096499 code {font:115% monospace;}#yiv4810096499 #yiv4810096499ygrp-mlmsg * {line-height:1.22em;}#yiv4810096499 #yiv4810096499ygrp-mlmsg #yiv4810096499logo {padding-bottom:10px;}#yiv4810096499 #yiv4810096499ygrp-msg p a {font-family:Verdana;}#yiv4810096499 #yiv4810096499ygrp-msg p#yiv4810096499attach-count span {color:#1E66AE;font-weight:700;}#yiv4810096499 #yiv4810096499ygrp-reco #yiv4810096499reco-head {color:#ff7900;font-weight:700;}#yiv4810096499 #yiv4810096499ygrp-reco {margin-bottom:20px;padding:0px;}#yiv4810096499 #yiv4810096499ygrp-sponsor #yiv4810096499ov li a {font-size:130%;text-decoration:none;}#yiv4810096499 #yiv4810096499ygrp-sponsor #yiv4810096499ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv4810096499 #yiv4810096499ygrp-sponsor #yiv4810096499ov ul {margin:0;padding:0 0 0 8px;}#yiv4810096499 #yiv4810096499ygrp-text {font-family:Georgia;}#yiv4810096499 #yiv4810096499ygrp-text p {margin:0 0 1em 0;}#yiv4810096499 #yiv4810096499ygrp-text tt {font-size:120%;}#yiv4810096499 #yiv4810096499ygrp-vital ul li:last-child {border-right:none !important;}#yiv4810096499