Let me edit a small part.
Code:
@Timer1 = TMR1L
Timer1 VAR WORD EXT
Disable
miint:
IF PIR1.0 = 1 THEN
T1CON.0 = 0
Timer1 = Timer1 + FRECUENCIA
T1CON.0 = 1
IF ARRANCA_MOTOR = 1 THEN
PORTC.5 = 0 'PULSO DE STEP
PORTA.5 = 0 'SALIDA PARA SHAFT
PORTA.5 = 1 'SALIDA PARA SHAFT
PORTC.5 = 1 'PULSO DE STEP
ELSE
IF EMULACION = 1 THEN TRIGGER = ACTIVA_PRESENCIA
ENDIF
'*********************************************************
PIR1.0 = 0
ENDIF
'**************** INTERRUPCION POR TIMER 0 **************
salida1:
Resume ' retorna al programa principal
Enable
--------------------------------------------------------------------------------
Last edited by sayzer; - 14th October 2006 at 03:48.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks