sureshkanna
Junior Member level 1
Hi dear friend...
* i am using PIC16f877A MC and
* 74HC595 for shifting ...
* 12MHz crystal frequency
* now i am giving 1 ms time delay
i wanna to scroll left to right on dot matrix display(13 characters). Actually it shifting well , but i cann't control the data shifting ... if i increased delay means it shifting character very slow, we cannt view.. also i gave less time delay,but it shifting very fast. i don't known correct time delay ... so pls give suggest for this problem dear friends....
left to right shifting logic
/***********************************************************/
void Green_disp_fh(void)
{
DS=0;
SHCP=0;
SHCP=1;
delay_ms(1);
STCP=1;
STCP=0;
for(i=0;i<70;i++)
{
PORTB=fh[k];
k++;
if(k==69)
{
k=0;
}
DS=1;
SHCP=0;
SHCP=1;
delay_ms(1);
STCP=1;
STCP=0;
}
}
/***********************************************************/
* i am using PIC16f877A MC and
* 74HC595 for shifting ...
* 12MHz crystal frequency
* now i am giving 1 ms time delay
i wanna to scroll left to right on dot matrix display(13 characters). Actually it shifting well , but i cann't control the data shifting ... if i increased delay means it shifting character very slow, we cannt view.. also i gave less time delay,but it shifting very fast. i don't known correct time delay ... so pls give suggest for this problem dear friends....
left to right shifting logic
/***********************************************************/
void Green_disp_fh(void)
{
DS=0;
SHCP=0;
SHCP=1;
delay_ms(1);
STCP=1;
STCP=0;
for(i=0;i<70;i++)
{
PORTB=fh[k];
k++;
if(k==69)
{
k=0;
}
DS=1;
SHCP=0;
SHCP=1;
delay_ms(1);
STCP=1;
STCP=0;
}
}
/***********************************************************/