After reading Melanie fuses thread and some posts by Bruce for the 18f4550 im pretty sure this modification to the 18f2550.inc file in pbp subdir should work, I want to run the program at 4mhz with the internal oscillator, all ports digital, no clock out, no brown out detection and my app is not USB related, please correct me if Im wrong:
Thanks in advance!Code:;**************************************** ;* PBP's 18F2550.INC / Modified by (PEU) ;**************************************** NOLIST ifdef PM_USED LIST "Error: PM does not support this device. Use MPASM." NOLIST else LIST LIST p = 18F2550, r = dec, w = -311, f = inhx32 INCLUDE "P18F2550.INC" ; MPASM Header __CONFIG _CONFIG1L, _PLLDIV_1_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_1_1L __CONFIG _CONFIG1H, _FOSC_INTOSCIO_EC_1H __CONFIG _CONFIG2L, _BOR_OFF_2L __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_1_2H __CONFIG _CONFIG3H, _MCLRE_ON_3H & _PBADEN_OFF_3H & _LPT1OSC_ON_3H __CONFIG _CONFIG4L, _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L NOLIST endif LIST EEPROM_START EQU 0F00000h BLOCK_SIZE EQU 32
Pablo




Bookmarks