Hi friends,
I want to ask a question about pic programming. I searched google about this. I found a few similar topics but I didn't solve the problem. I have a pickit 2 and I use a card which I try the pic applications on. I connected these two device by ICSP. When I import .hex file I get this error. Despite this, when I press the write button. A different error happens. It says "divide by zero error" I pasted the code
PS: The card runs Pic 16f877 and 16f877a codes
I want to ask a question about pic programming. I searched google about this. I found a few similar topics but I didn't solve the problem. I have a pickit 2 and I use a card which I try the pic applications on. I connected these two device by ICSP. When I import .hex file I get this error. Despite this, when I press the write button. A different error happens. It says "divide by zero error" I pasted the code
PS: The card runs Pic 16f877 and 16f877a codes
Rich (BB code):
#include <16f877.h>
#fuses XT,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD
#use delay(clock=4000000)
#use fast_io(b)
void main ()
{
setup_psp(PSP_DISABLED);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_CCP1(CCP_OFF);
setup_CCP2(CCP_OFF);
set_tris_b(0x00);
output_b(0x00);
basla:
output_high(pin_b0);
delay_ms(500);
output_low(pin_b0);
delay_ms(500);
goto basla;
}