Got it working at last
Thanks for all the help everyone.
I think the problem I had was I was trying to overwrite the inc files without realising.
I now have @ __config _CONFIG1, _HS_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
as the config
However the programmer always tried to program in low voltage mode, I have to manually set it to off.
I'd like to sort that out, but I can live with it if needed.
Edit: Works with 16F877A but not 16F887 for some weird reason!
found it!
This works for the 16f887
However still got the programming issued I've got to set the low power programming to off manually and the oscillator to HSCode:@ __config _CONFIG1, _HS_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF Define device 16F887 Define OSC 8 ANSEL=0 ' A/D disabled for ANS0 to ANS7 ANSELH=0 ' A/D disabled for ANS8 to ANS13 CM1CON0 = 0 ' Disable comparators CM2CON0 = 0 ' These default to disabled at POR, but just in case CM2CON1 = 0 adcon1 = 7 IOCB = 0 INTCON = 0 ansel = 0 anselh = 0 PORTB = %00000000 TRISB = %00000000





Bookmarks