the mask
Member level 2
please small help
hi...
i try tow write simple code for pic16f877a to run five phase stepper motor my code written by microbasic(7002) and try to simulate in proteus 7 but when run in proteus 7 error shown to me(processor has been reset by watchdog timer expireing in time 10:00)
and dont work when i download in pic
microbasic code:
program one_proceure
main:
TRISB = $00
TRISD = $00
TRISC = $00
trisa = $00
PORTA=7
PORTB=0
PORTD=0
PORTC=0
FIRST:
PORTC.6=1
PORTC.2=1
Delay_ms(100)
PORTC.6=0
PORTC.2=0
PORTC.5=1
PORTC.3=1
Delay_ms(100)
PORTC.5=0
PORTC.3=0
PORTC.4=1
PORTD.0=1
Delay_ms(100)
PORTC.4=0
PORTD.0=0
PORTD.3=1
PORTD.1=1
Delay_ms(100)
PORTD.3=0
PORTD.1=0
PORTD.2=1
PORTC.1=1
Delay_ms(100)
GOTO FIRST
END.
hi...
i try tow write simple code for pic16f877a to run five phase stepper motor my code written by microbasic(7002) and try to simulate in proteus 7 but when run in proteus 7 error shown to me(processor has been reset by watchdog timer expireing in time 10:00)
and dont work when i download in pic
microbasic code:
program one_proceure
main:
TRISB = $00
TRISD = $00
TRISC = $00
trisa = $00
PORTA=7
PORTB=0
PORTD=0
PORTC=0
FIRST:
PORTC.6=1
PORTC.2=1
Delay_ms(100)
PORTC.6=0
PORTC.2=0
PORTC.5=1
PORTC.3=1
Delay_ms(100)
PORTC.5=0
PORTC.3=0
PORTC.4=1
PORTD.0=1
Delay_ms(100)
PORTC.4=0
PORTD.0=0
PORTD.3=1
PORTD.1=1
Delay_ms(100)
PORTD.3=0
PORTD.1=0
PORTD.2=1
PORTC.1=1
Delay_ms(100)
GOTO FIRST
END.