*************************************************** IN-SYSTEM PROGRAMMING COMMANDS FOR THE P89C51Rx2 Doug Ricket, 6-23-01 *************************************************** BEFORE ANY PROGRAMMING: 1. Enter a capital U, verify that it is received 2. Set the timer for 11 Mhz *********************** To make a chip run from location 0 on start-up 1. Erase Status Byte and Boot Vector 2. Program Status Byte to 0 3. Program Status Byte to FC *** IMPORTANT *** *********************** To upload code: 1. Erase Block 1 2. Paste the .OBJ file *********************** Set Timer for 11 MHz: :010000020BF2 Erase Status Byte and Boot Vector: [ before programming new SB-BV ] :020000030400F7 Set Status Byte to Zero: [ to run code at 0000 on reset ] :03000003060000F4 Set Boot Vector to 70: [ for RD2MON ] :0300000306017083 Set Boot Vector to FC: [ for default loader program ] :030000030601FCF7 Read Status Byte: :020000050701F1 Read Boot Vector: :020000050702F0 Erase Block 1: [ before uploading new programs; takes 3 seconds ] :020000030100FA Erase Block 1: [ before uploading new programs; takes 3 seconds ] :020000030100FA Erase Block 3: [ before uploading new programs; takes 3 seconds ] :020000030140BA Full Chip Erase: [ takes 3 seconds ] :0100000307F5 Read Data in location 0-100 :050000040000010000F6 Read Data in location 0-500 :050000040000050000F2 Read Data in location 7000-7500 :05000004700075000012