Problem with Disp7sPort

  • 1
  • 2
  • 3
  • Page 2 of 3
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Problem with Disp7sPort

 · 
Posted: 05.02.2015 - 17:47  ·  #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
Gender:
Location: zwischen Augsburg und Ulm
Age: 59
Posts: 2134
Registered: 03 / 2003
Subject:

Re: Problem with Disp7sPort

 · 
Posted: 05.02.2015 - 18:09  ·  #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
 
Subject:

Re: Problem with Disp7sPort

 · 
Posted: 05.02.2015 - 18:11  ·  #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
Gender:
Location: zwischen Augsburg und Ulm
Age: 59
Posts: 2134
Registered: 03 / 2003
Subject:

Re: Problem with Disp7sPort

 · 
Posted: 05.02.2015 - 22:07  ·  #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
 
Subject:

Re: Problem with Disp7sPort

 · 
Posted: 06.02.2015 - 16:52  ·  #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
Gender:
Location: zwischen Augsburg und Ulm
Age: 59
Posts: 2134
Registered: 03 / 2003
Subject:

Re: Problem with Disp7sPort

 · 
Posted: 06.02.2015 - 18:41  ·  #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
 
Subject:

Re: Problem with Disp7sPort

 · 
Posted: 06.02.2015 - 19:41  ·  #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
Gender:
Location: zwischen Augsburg und Ulm
Age: 59
Posts: 2134
Registered: 03 / 2003
Subject:

Re: Problem with Disp7sPort

 · 
Posted: 07.02.2015 - 10:09  ·  #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
  • Page 2 of 3
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   134   148 · Page-Gen-Time: 0.032962s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI