Those @DEFINE statements preset the configuration bits for the 16F628. You can just delete those lines out and compile with default settings for your PIC16F877 or whatever you chose.
If you go to the FAQ's section of this forum, see the thread on "Preseting Configuration Fuses". It tells you ALL you need to know about those lines. Insert one's appropriate to your chosen PIC - detailed instuctions on how to find all about your particular PIC's config fuses are contained theirin.
The 16F877 doesn't have an equivallent to the 16F628's 'intrc_osc_noclkout', you'll have to chose a different oscillator setting - whatever option you chose will not affect the code (as long as it's 4MHz).




Bookmarks