This doesn't directly apply to your situation this time, but I did run into a sneaky change the other day that took me a while to notice..
I was trying to change the oscillator config on a 18F1320. I had been recently using 18F1330s and just assumed they would be the same since they were so close family wise. Bad assumption. Here are the two together.
the commented out part was my addition, but notice the different syntax for the oscillator statement.Code:;**************************************************************** ;* 18F1330.INC * ;* * ;* By : Leonard Zerman, Jeff Schmoyer * ;* Notice : Copyright (c) 2006 microEngineering Labs, Inc. * ;* All Rights Reserved * ;* Date : 06/05/06 * ;* Version : 2.47 * ;* Notes : * ;**************************************************************** NOLIST ifdef PM_USED LIST "Error: PM does not support this device. Use MPASM." NOLIST else LIST LIST p = 18F1330, r = dec, w = -311, w = -230, f = inhx32 INCLUDE "P18F1330.INC" ; MPASM Header __CONFIG _CONFIG1H, _OSC_INTIO2_1H ; __CONFIG _CONFIG1H, _OSC_XT_1H __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H __CONFIG _CONFIG4L, _XINST_OFF_4L NOLIST endif LIST EEPROM_START EQU 0F00000h BLOCK_SIZE EQU 8 '============================================================================== '============================================================================== ;**************************************************************** ;* 18F1320.INC * ;* * ;* By : Leonard Zerman, Jeff Schmoyer * ;* Notice : Copyright (c) 2006 microEngineering Labs, Inc. * ;* All Rights Reserved * ;* Date : 06/05/06 * ;* Version : 2.47 * ;* Notes : * ;**************************************************************** NOLIST ifdef PM_USED LIST "Error: PM does not support this device. Use MPASM." NOLIST else LIST LIST p = 18F1320, r = dec, w = -311, w = -230, f = inhx32 INCLUDE "P18F1320.INC" ; MPASM Header __CONFIG _CONFIG1H, _INTIO2_OSC_1H ; this for INT OSC ; __CONFIG _CONFIG1H, _XT_OSC_1H ;was this for XT OSC __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H __CONFIG _CONFIG4L, _LVP_OFF_4L NOLIST endif LIST EEPROM_START EQU 0F00000h BLOCK_SIZE EQU 8
Just hadn't run into that before.
Bo


Reply With Quote


Bookmarks