ok thanx for your help very very much thanx
and hitech working by changing config settings now i can write any thing and it wil scroll
now i have problems with reading input pins (RA0, RA1, RA2)
am supplying voltage to this pins using 5.1v zener diode and pull up resistors from 12v
how can i read it ?
by if statement or by interrupt ?
i used the following code in main function
while(1)
{
if (PORTA & 0b00000001 != 0)
{
ScrollText(" STOP" );
}
if (PORTA & 0b00000010 != 0)
{
ScrollText(" <<<" );
}
if (PORTA & 0b00000100 != 0)
{
ScrollTextRight(">>> " );
}
}
but it dont worked is it correct?
or how can i use interupt for this?
pls help me ?
and hitech working by changing config settings now i can write any thing and it wil scroll
now i have problems with reading input pins (RA0, RA1, RA2)
am supplying voltage to this pins using 5.1v zener diode and pull up resistors from 12v
how can i read it ?
by if statement or by interrupt ?
i used the following code in main function
while(1)
{
if (PORTA & 0b00000001 != 0)
{
ScrollText(" STOP" );
}
if (PORTA & 0b00000010 != 0)
{
ScrollText(" <<<" );
}
if (PORTA & 0b00000100 != 0)
{
ScrollTextRight(">>> " );
}
}
but it dont worked is it correct?
or how can i use interupt for this?
pls help me ?