|
|
Flash Memory 256 Byte Programming Circuit


Circuit of AT89C51Manual
Flash Memory Programmer
Component List that
be Used.
|
No |
Component |
Total |
|
1. |
Two poles switch |
21
pieces |
|
2. |
Push button |
1
piece |
|
3. |
ZIF 40 pin Socket |
1
piece |
|
4. |
LED |
22
pieces |
|
5.
|
IC
LM317 |
1
piece |
|
6. |
IC
LM7805 |
1
piece |
|
7. |
Capacitor
100uF |
1
piece |
|
8. |
Capacitor
33 pf |
2
pieces |
|
9. |
Resistor 4.7 k |
23
pieces |
|
10. |
Resistor 10 k |
2
pieces |
|
11. |
Resistor 330 |
1
piece |
|
12. |
Resistor 3 k |
1
piece |
|
13. |
Resistor 1.5 k |
1
piece |
|
14. |
TUN |
2
pieces |
|
15. |
X’tal 11.0592 MHz |
1
piece |
Manual Instruction
This
AT89c51 flash manual programmer can be used in four mode,
AT89c51 identity reading, Loading program, Program verification and program
deleting.
Following steps are done to read the AT89c51 identity.
-
Switch off the power supply.
-
Put the AT89c51 in to ZIF socket.
-
Move the EA/VPP switch at 5 volt.
-
Move P2.6, P2.7, P3.6 and P3.7 switch at LOW.
-
Move
the data switch at FFh (11111111b).
-
Switch on the power supply
-
Set the Address switch (switch A) with 30h (00110000b), the code will
be seen at the data LED. (displaying LED then be verified to
AT89c51 datasheet).
-
Set the Address switch (switch A) with 31h (00110001b), the code will
be seen at the data LED. (displaying LED then be verified to
AT89c51 datasheet).
-
Set the Address switch (switch A) with 32h (00110010b), the code will
be seen at the data LED. (displaying LED then be verified to
AT89c51 datasheet).
-
Before put off the microcontroller, the power supply must be switched
off.
Following
steps are done to delete the program in AT89c51 flash memory.
-
Switch off the power supply.
-
Put the microcontroller in to
ZIF socket.
-
Move the
EA/VPP switch at 5 volt.
-
Move P2.6 switch at HIGH, P2.7, P3.6 and P3.7
switch at LOW.
-
Switch on the power supply.
-
Move
EA/VPP switch at 12 volt.
-
Push the PROG button once.
-
Before put off the microcontroller, the power supply must be switched
off.
Following
steps are done to load the program in to AT89c51 flash memory.
-
Prepare the
program in LST file, then write down the instruction code for each
address.
-
Switch off the power supply.
-
Put the microcontroller in to
ZIF socket.
-
Move EA/VPP switch at 5 volt.
-
move P2.6 switch at LOW, P2.7, P3.6 and P3.7
at HIGH.
-
Switch on the power supply.
-
Set the address switch (switch A) with 00h (00000000b), (can be seen
from the light of address LED).
-
Set the Data switch with appropriate hex code (hex code that will be
loaded). And then move EA/VPP switch at 12 volt.
-
Push the PROG button once.
-
Remove EA/VPP switch at 5 volt.
-
Repeat step 7 to 10, with the data address add by 1.
-
Repeat all of steps until all of hex code is finished.
-
Before put off the microcontroller, the power supply must be switched
off.
Following
steps are done to verify the program that load in to AT89c51 flash
memory.
-
Switch off the power supply.
-
Put the microcontroller in to
ZIF socket.
-
Move EA/VPP switch at 5 volt.
-
Move P2.6, P2.7 switch at LOW, while P3.6
and P3.7 switch at HIGH.
-
Move
the data switch at FFh (11111111b).
-
Switch on the power supply.
-
Set the address switch
(switch A) with 00h (00000000b), (can be seen from the light of
address LED).
-
Repeat the step 7, with the data address add by 1.
-
Repeat all steps above until the reading data is FFh for every next
address.
-
Before put off the microcontroller, the power supply must be switched
off.
-
If the hex code that is resulted same with the LST file, it can be
concluded that the loading hex code is valid.
|