Problem with Disp7sPort

  • 1
  • 2
  • 3
  • Seite 2 von 3
rh
Administrator
Avatar
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: Problem with Disp7sPort

 · 
Gepostet: 05.02.2015 - 17:47 Uhr  ·  #9
Hallo Harry,
wo ist dann sein Problem?
Mit dem Latch Impuls müssen diese Daten dann an den Ausgängen erscheinen

rolf
Harry
Moderator
Avatar
Geschlecht:
Herkunft: zwischen Augsburg und Ulm
Alter: 60
Beiträge: 2155
Dabei seit: 03 / 2003
Betreff:

Re: Problem with Disp7sPort

 · 
Gepostet: 05.02.2015 - 18:09 Uhr  ·  #10
Hi Rolf,

nun es geht nur ein Display bei DispDigits=2,iData. Wenn er aber nur eine Stelle definiert kommt die alte Anzeige vom ersten Display auf dem zweiten. D.h. Stelle 1 schiebt die Daten über SerOut in die zweite Stelle. Die Schaltung ist also ok. Bei DispDigits=2,iData würde ich jetzt vermuten, daß der Treiber nur eine Stelle schiebt. Was anderes kann ich mir nicht vorstellen.

Gruss
Harry
Harald_K
 
Avatar
 
Betreff:

Re: Problem with Disp7sPort

 · 
Gepostet: 05.02.2015 - 18:11 Uhr  ·  #11
I also see no Hardware probs, except that the manual says the segment clock is on PC3, PC2 is the clock for the digit shift register, and in nonmux-Mode only segment registers are used.

maybe you should first try a segment test routine (Disp7Test) , which should light all segments ...

then try to directly acces the display buffer via disp7buff[0..dispdigits-1]
Harry
Moderator
Avatar
Geschlecht:
Herkunft: zwischen Augsburg und Ulm
Alter: 60
Beiträge: 2155
Dabei seit: 03 / 2003
Betreff:

Re: Problem with Disp7sPort

 · 
Gepostet: 05.02.2015 - 22:07 Uhr  ·  #12
@Rolf: Ich hab im Handbuch gesucht, aber leider keine Antwort gefunden. Schreibt der Treiber immer alle Stellen ? Oder müßte die Ausgabe vielleicht so lauten ?
Code
Write(DISPout,BytetoStr(i):2); 


Gruss
Harry

[Edit]@Thomas: at a older project i have also used this driver, but i have write always all digits. try ByteToStr(i):2
3xcs
 
Avatar
 
Betreff:

Re: Problem with Disp7sPort

 · 
Gepostet: 06.02.2015 - 16:52 Uhr  ·  #13
Hello! Many thanks for all reply!!! :)

I have now check with my oscilloscope on the signals from the controller to the shift-registers,
The SRCK-signal outputs 16 pulses with 2 digits defined so thats seems ok. But the dataline only outputs 8 bits on the same time of the first 8 pulses on SRCK. On the following 8pulses on SRCK is the dataline empty. I have also tried Disp7Test; but the same thing happens, only one digit shows all segments, the other one is dark. And the same with the data line as i described.
I have tried this syntax Write(DISPout,BytetoStr(i):2); but the compiler says. Error: ')' expected. Error ';' expected.

Regards
Thomas
Harry
Moderator
Avatar
Geschlecht:
Herkunft: zwischen Augsburg und Ulm
Alter: 60
Beiträge: 2155
Dabei seit: 03 / 2003
Betreff:

Re: Problem with Disp7sPort

 · 
Gepostet: 06.02.2015 - 18:41 Uhr  ·  #14
Sorry Thomas .... DispOut(ByteToStr(i:2));

When you send a 2 digit number, you have also only 8 bits on dataline ?
I think you send two digits and the low-digit first. the high-digit is empty.

Test also DispMode=ShiftLeft;

DispOut('AH'); //????
3xcs
 
Avatar
 
Betreff:

Re: Problem with Disp7sPort

 · 
Gepostet: 06.02.2015 - 19:41 Uhr  ·  #15
Hello! Thanks for the reply! You are so kind and trying to help me, Thank you very much! :)
Yes i only have 8bits on the dataline and 16pulses on clockline. If i send two chars with example DispOut('AH'); I only got the letter A on one display, the other is dark. hmm.. Same thing with DispOut,ByteToStr(i:2)) I have tried both ShiftLeft and Shiftright but the samething happen, except for that the number in the working digit flips, if i send string'23' it shows 2 in shiftleft and 3 in shiftright, but the other digit is always dark :(

Kindest regards
Thomas
Harry
Moderator
Avatar
Geschlecht:
Herkunft: zwischen Augsburg und Ulm
Alter: 60
Beiträge: 2155
Dabei seit: 03 / 2003
Betreff:

Re: Problem with Disp7sPort

 · 
Gepostet: 07.02.2015 - 10:09 Uhr  ·  #16
Good morning Thomas,

I'm still here ..... I'm thinking :D

maybe I can recreate your problem. I have a similar construction here, but with 74HC595. unfortunately this construction is driven by SPI and the connectors do not fit on this driver.

Harry
  • 1
  • 2
  • 3
  • Seite 2 von 3
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 15 · Cache Hits: 14   134   148 · Page-Gen-Time: 0.064804s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI