Re: program runs and stop
hi i need help, my program runs and stops at a certain line, at PORTA = 0, i.e after TRISC = %00000000 ( checked with the ICD compile). i use pic16f886. what could be the prolem? compiles successfully though.
thanksAmber var PORTB.1
Good var PORTB.3
time_up var PORTB.2
Correct var PORTB.0
Play var PORTB.5
i var byte
v var byte
palo var byte
leds var word
leds.byte0 = PORTA
leds.byte1 = PORTC
leds= 0
@ errorlevel -306;
V_1 var PORTA.0
V_2 var PORTA.1
V_3 var PORTA.2
V_4 var PORTA.3
V_5 var PORTA.4
V_6 var PORTA.5
V_7 var PORTA.6
V_8 var PORTA.7
V_9 var PORTC.0
V_10 var PORTC.1
V_11 var PORTC.2
V_12 var PORTC.3
V_13 var PORTC.4
V_14 var PORTC.5
V_15 var PORTC.6
V_16 var PORTC.7
TRISA = %00000000
TRISB = %00100001
TRISC = %00000000
PORTA = 0 'LEDs off
PORTB = 0
PORTC = 0
From what I can see there is NO program here. Only configurations for the processor. Is this all of the program?
Dave Purola,
N8NTA
EN82fn
Bookmarks