I understand that DATA is upgraded version of EEPROM
I change the PIC16f877A with PIC18F452 and nothing is working , so I will learn every thing step by step of PIC18f452
You really don't have to 'RELEARN' everything...because there really isn't anything to 'RELEARN'.
There is a document somewhere at Microchip that describes some basic differences between the '877 and the '452 that might help you out...
But...quite frankly, no code...not much help...'cause there just might be that one hidden thing that is stopping everything.
Have you made blinky LED work on the '452 yet?
And just because you've made it work on the '877 doesn't mean you can make it work on a '452....it should...but it doesn't.
Oky thanks skimask for your information I will try to make blink lea and see the differents
I try this code for blinking led on PIC18f452 , but nothing happened, the led always off , I use in this circuit 4MHZ XT crystal , 10K connected to MCLR TO +5v:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
trisb=0
main:
portb=0
pause 1000
portb=255
pause 1000
goto main
end
;;;;;;;;;;;;;;;;;;;;;;;;;
Here is 18F452.INC file
;************************************************* ***************
;* 18F452.INC *
;* *
;* By : Leonard Zerman, Jeff Schmoyer *
;* Notice : Copyright (c) 2005 microEngineering Labs, Inc. *
;* All Rights Reserved *
;* Date : 12/16/05 *
;* Version : 2.47 *
;* Notes : *
;************************************************* ***************
NOLIST
ifdef PM_USED
LIST
"Error: PM does not support this device. Use MPASM."
NOLIST
else
LIST
LIST p = 18F452, r = dec, w = -311, w = -230, f = inhx32
INCLUDE "P18F452.INC" ; MPASM Header
__CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
__CONFIG _CONFIG4L, _LVP_OFF_4L
NOLIST
endif
LIST
EEPROM_START EQU 0F00000h
BLOCK_SIZE EQU 8
Bookmarks