Pic16f877a with XC8

Status
Not open for further replies.
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 ?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…