I am using standard config in P18F2450.INC file.
Code:NOLIST ifdef PM_USED LIST "Error: PM does not support this device. Use MPASM." NOLIST else LIST LIST p = 18F2450, r = dec, w = -311, w = -230, f = inhx32 INCLUDE "P18F2450.INC" ; MPASM Header __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H __CONFIG _CONFIG3H,_PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_ON_3H __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _BBSIZ_BB1K_4L & _XINST_OFF_4L NOLIST endif LIST EEPROM_START EQU 0F00000h BLOCK_SIZE EQU 16
I basically trying to read the result using an arduino.
Here are sample of values I sent and values I get when I use Putty/Serial software :
Code:Sent Received 0 1 1 2 2 12 3 14 4 48 5 50 6 60 7 62 8 192 9 194 10 204





Bookmarks