A afnan.bashir Member May 12, 2013 #1 Hello Can we use XC8 for 16f877a if yes then i have following question 1. If i use #define GENERATOR PORTDbits_t.RD6 it gives error that no identifier in declaration but if i replace it with RD6 error is gone. 2. As i am converting a 18f452 code to 16f877a i get this error for delay functions Error [500] ; 0. undefined symbols: _Nop(code.obj) _Delay1KTCYx(code.obj) ___delay_ms(code.obj) ___delay_us(code.obj) (908) exit status = 1 what can i do for delays ?
Hello Can we use XC8 for 16f877a if yes then i have following question 1. If i use #define GENERATOR PORTDbits_t.RD6 it gives error that no identifier in declaration but if i replace it with RD6 error is gone. 2. As i am converting a 18f452 code to 16f877a i get this error for delay functions Error [500] ; 0. undefined symbols: _Nop(code.obj) _Delay1KTCYx(code.obj) ___delay_ms(code.obj) ___delay_us(code.obj) (908) exit status = 1 what can i do for delays ?
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member May 13, 2013 #3 Just include htc.h and nothing else....