Hello, i have a problem with Disp7sPort.
I´m running two 7seg digits nonmuxed with one TPIC6B595 Shift-register on each digit. The IC is equal , similar to 74HC595 but it can run big loads. I have connected the hardware like the example in DocuStdDriver.pdf. The problem is i only got one digit to work. always the second one in the chain, when i connect the Shift-registers the other way, swap the serial input and output between the shiftregisters the other digit works. So the hardware must be ok. Have i forgot something in the code? Or does the TPIC6B595 Shift-register not work with this Disp7sPort? Have anyone tried that IC?
My testprogram.
program test;
{$NOSHADOW}
{ $WG} {global Warnings off}
Device = mega168, VCC=5;
{ $BOOTRST $01C00} {Reset Jump to $01C00}
Define_Fuses
// Override_Fuses;
NoteBook = A;
COMport = USB;
LockBits0 = [];
FuseBits0 = [];
FuseBits1 = [];
FuseBits2 = [];
Import SysTick, Disp7sPort;
From System Import ;
Define
ProcClock = 16000000; {Hertz}
SysTick = 10; {msec}
StackSize = $0032, iData;
FrameSize = $0032, iData;
Disp7sPort = PortC, nonMux; {not multiplexed, Portbit}
DispMode = ShiftRight ;
DispDigits = 2, iData;
Implementation
{$IDATA}
{--------------------------------------------------------------}
{ Type Declarations }
type
{--------------------------------------------------------------}
{ Const Declarations }
{--------------------------------------------------------------}
{ Var Declarations }
{$IDATA}
{--------------------------------------------------------------}
{ functions }
{--------------------------------------------------------------}
{ Main Program }
{$IDATA}
begin
EnableInts;
DISPclear;
mDelay(1000);
Write(DISPout,'12');
loop
endloop;
end test.
Kindest regards
Thomas
I´m running two 7seg digits nonmuxed with one TPIC6B595 Shift-register on each digit. The IC is equal , similar to 74HC595 but it can run big loads. I have connected the hardware like the example in DocuStdDriver.pdf. The problem is i only got one digit to work. always the second one in the chain, when i connect the Shift-registers the other way, swap the serial input and output between the shiftregisters the other digit works. So the hardware must be ok. Have i forgot something in the code? Or does the TPIC6B595 Shift-register not work with this Disp7sPort? Have anyone tried that IC?
My testprogram.
program test;
{$NOSHADOW}
{ $WG} {global Warnings off}
Device = mega168, VCC=5;
{ $BOOTRST $01C00} {Reset Jump to $01C00}
Define_Fuses
// Override_Fuses;
NoteBook = A;
COMport = USB;
LockBits0 = [];
FuseBits0 = [];
FuseBits1 = [];
FuseBits2 = [];
Import SysTick, Disp7sPort;
From System Import ;
Define
ProcClock = 16000000; {Hertz}
SysTick = 10; {msec}
StackSize = $0032, iData;
FrameSize = $0032, iData;
Disp7sPort = PortC, nonMux; {not multiplexed, Portbit}
DispMode = ShiftRight ;
DispDigits = 2, iData;
Implementation
{$IDATA}
{--------------------------------------------------------------}
{ Type Declarations }
type
{--------------------------------------------------------------}
{ Const Declarations }
{--------------------------------------------------------------}
{ Var Declarations }
{$IDATA}
{--------------------------------------------------------------}
{ functions }
{--------------------------------------------------------------}
{ Main Program }
{$IDATA}
begin
EnableInts;
DISPclear;
mDelay(1000);
Write(DISPout,'12');
loop
endloop;
end test.
Kindest regards
Thomas