| ??? 05/12/09 14:03 Read: times |
#165267 - This code is translated Responding to: ???'s previous message |
...insert code here
[void serial_int () interrupt 4
{
static char index;
static int State;
if (RI == 1)
{
RI= 0;
switch (State)
{
case WAITING:
if ( SBUF == 'X')
{
index = 0;
State = RECEPTION;
}
break;
case RECEPTION:
if ( SBUF != 'Null')
{
Buff_RX[index] = SBUF;
index ++;
}
else
{
Buff_RX [index] = ' ';
FlagCommandProccesor = 1;
State = WAITING;
}
break;
}
}
}]
|



