P89C61X2BN_Programming.PDF
(
7 KB
)
Pobierz
How to program the P89C61X2BN using SBC51-P
August 2004
This document describes the procedure to program P89C61X2BN using SBC51-P. This document
maybe considered as an annex to the user’s manual of SBC51.
Entering ISP mode:
The P89C61X2BN requires somewhat different conditions to enter the ISP
mode. Please follow these steps to enter ISP mode:
1. Switch off the SBC51-P board.
2. Ensure that switches S1.1, S1.2, S1.3 and S1.4 are in OFF position.
3. Ensure that the board is connected to COM port of your PC and SPJTerm is running on the
PC (with appropriate settings of COM port, baud rate and so on).
4. Switch on the SBC51-P board.
5. The P89C61X2BN may actually start running the program from it’s internal program
memory. If this program sends any output to the serial port, you may see it in the SPJTerm
window. You may ignore it.
6. Even as the board is powered on, turn on S1.2. (/PSEN will be short with GND)
7. After a delay of at least 1 second, turn on S1.1 (RESET active)
8. After a delay of at least 1 second, turn off S1.1 (RESET not active)
9. Now open the ISP dialog of SPJTerm (that is: select “In System Programming” from “File”
menu). If Philips tab is already selected, then you should see a message like “Communication
Initialized” in the title-bar of the ISP dialog. Also, usually, the value of “Status Byte” can be
seen as 00. This indicates that P89C61X2BN is now in ISP mode.
Rest of the procedure to erase and/or program the P89C61X2BN is same as that used for
P89C51RD2Hxx.
12 clock / 6 clock mode:
When we ship the SBC51-P board, the P89C61X2BN is always in 6 clock
mode (that is: it runs at twice the speed of standard 8051). If you switch-on the SBC51-P board
while S1.2 is ON; this may sometimes force the P89C61X2BN to enter the 12 clock mode. (that is: it
will run at the same speed as standard 8051).
If your P89C61X2BN accidentally switches to 12 clock mode, you can again bring it back to 6 clock
mode. To do so, follow these steps:
1. Ensure the usual setup – SBC51-P connected to COM port, SPJTerm running with
appropriate settings and so on. Please select 19200 baud rate and Echo should be turned off.
2. Switch off the SBC51-P board.
3. After a delay of at least 1 second, Switch on the SBC51-P board.
4. After a delay of at least 1 second, turn on S1.2.
5. After a delay of at least 1 second, turn on S1.1
6. After a delay of at least 1 second, turn off S1.1
7. Now type the character “U” in SPJTerm window; you should see an echo of the same. This
indicates that the P89C61X2BN is now in ISP mode.
8. Type the characters “:0300000306028072”. You should see echo of all these characters,
followed by a dot. This indicates that the P89C61X2BN has now changed to 6 clock mode.
9. Switch-off the board, turn off S1.2 and switch-on the board again. Now it should run in 6
clock mode.
http://www.spjsystems.com
SPJ Systems
101, Beaver Grandeur
Baner Road, Pune – 411045
INDIA
Phone: +91-20-27293002
Fax: +91-20-27293003
Email:
spj@spjsystems.com
Web-site:
http://www.spjsystems.com
http://www.spjsystems.com
Plik z chomika:
abys
Inne pliki z tego folderu:
Dobry_Darmowy_Kompilator_C_8051.zip
(23927 KB)
8255_example.zip
(290 KB)
Czytaj(9).txt
(0 KB)
asc2bin(1).asm
(0 KB)
Algoritmy_principy.zip
(8 KB)
Inne foldery tego chomika:
- rozne ❎ Diagnostyka Pojazdów
! Wednesday (2022) serial
• ACTIA MultiDiag Full DVD Release 2011
• Spawarki - schematy itp
• Spawarki - schematy itp(1)
Zgłoś jeśli
naruszono regulamin