ctownsend
Advanced Member level 2
how isp programmer works?
it should work just the way it is. Originally I used an 89C51 because the dev board I had used that chip. In the 89C51, you don't need pullups on P1.0, P1.1 unless those pins were to be used for I2C.
You can change the pinout to whatever you want.
change this:
to this:
for smaller eeproms you might have to change these addresses to smaller values:
Good Luck
leoren_tm said:as i thot.... im dont have expereince yet on EEPROM, what if i use (24c64)64k? what shall i change?
Added after 4 minutes:
and also..i would like to suggest...if use 2051MCU., change the pinouts..cause you need pull-up on 1.0 and 1.1
it should work just the way it is. Originally I used an 89C51 because the dev board I had used that chip. In the 89C51, you don't need pullups on P1.0, P1.1 unless those pins were to be used for I2C.
You can change the pinout to whatever you want.
change this:
Code:
RST equ p1.0 ;
SCK equ p1.1 ;
to this:
Code:
RST equ p3.4 ;
SCK equ p3.5 ;
for smaller eeproms you might have to change these addresses to smaller values:
Code:
Config_Data equ 2000h ; ext eeprom config byte
LastAddr equ 2001h ; last address Programmed
Good Luck