interrumpir la sentencia serin transcurrido un tiempo

hola a todos de nuevo:
estoy programando un pic 16f628a y en un momento en el programa tiene la sentencia serin
SERIN portb.0,T9600, dat
y cuando llega a esta sentencia se queda esperando recibir un dat, y de ahi no salta a la otra sentencia sin que reciba un dato.
Quisiera que a la hora de llegar aqui si no hay dato salte a la siguiente linea... como????
gracias..
 
hola mira

SERIN Rpin { \ Fpin } , Baudmode , { Plabel, } { Timeout , Tlabel, } [ InputData ]

Timeout y Label son opciones que pueden ser incluídas para permitir al programa continuar si no se recibe un carácter durante un cierto tiempo . Timeout está especificado en unidades de 1 milisegundo .

Timeout is an optional constant (0 - 65535) that informs SERIN how long to wait for incoming data. If data does not arrive in time, the program will jump to the address specified by Tlable.
Tlabel is an optional label that must be provided along with Timeout, indicating where the program should go in the event that data does not arrive within the period specified by Timeout.

ta solo seria colocar un label "algo:" deseues de la sentencia SERIN y colocarle un tiempo si en ese tiemo no llega nada salta a "algo:"

http://www.todopic.com.ar/pbp_sp.html#introduccion
 
Atrás
Arriba