bioda
Junior Member level 3
hello all,
After compiling this code;
i got this error;
whatz the way out?...i also have observed that this error comes up after every compilation.
Regards
After compiling this code;
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 #include "C:\Users\xyz1\Desktop\xyz_new\new tutorial.h" #include<16F877.h> #use delay(clock = 10000000) #fuses HS,NOWDT #use rs232(baud=9600,parity=N,xMIT=pin_C6,rcv=PIN_C7,stream=RS232,bits=8) //the RS-232 port is set up. this line is given for future references. //it can be deleted from the code. the intention is to write the //number on the PC screen via RS-232 using hyperterminal application #include<stdio.h> //header file for PIC16F877 is loaded void main(void) { unsigned int z; port_b_pullups(TRUE);//sets the port B input pullups set_tris_d( 0x00);//all bits of port d is set for output set_tris_b( 0xFF);//all bits of port b is set for input while(1) // since 1 is always TRUE this loop will go on forever { z=input_b(); // take the input from portB output_d(z); //output the same number to portD printf("\n\r %c",z); // prints the xter to the RS-232 hyperterminal screen // assingn this line as a commment for now since the RS-232 //communications isnt covered } //end of while loop } //end of main loop setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_psp(PSP_DISABLED); setup_spi(SPI_SS_DISABLED); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); // TODO: USER CODE!!
i got this error;
***Error24"C:\program Files(x86)\PICC\devices\16F877.h" Line2(9,17): Unknown device type "16F877.H"
whatz the way out?...i also have observed that this error comes up after every compilation.
Regards
Last edited by a moderator: