出處:http://hi.baidu.com/eternity86/item/74159e41cd29d308c11613b7
第一步編輯 TOOLS.ini
找到Keil安裝目錄, 用記事本修改 TOOLS.ini
在 [ARM] 段前面增加 [C51]段,需增加的內容如下, 注意 PATH路徑可能需修改為實際路徑
[C51]
PATH=”C:KeilC51″
SN=K1DZP-5IUSH-A01UE
VERSION=V9.01
BOOK0=HLPRELEASE_NOTES.HTM(“Release Notes”,GEN)
BOOK1=HLPGS51.PDF(“uVision2 Getting Started”,GEN)
BOOK2=HLPC51.PDF(“C51 User’s Guide”,GEN)
BOOK3=HLPC51LIB.CHM(“C51 Library Functions”,C)
BOOK4=HLPA51.PDF(“Assembler/Utilities”,GEN)
BOOK5=HLPTR51.CHM(“RTX51 Tiny User’s Guide”,GEN)
BOOK6=HLPDBG51.CHM(“uVision2 Debug Commands”,GEN)
BOOK7=HLPISD51.CHM(“ISD51 In System Debugger”,GEN)
BOOK8=HLPFlashMon51.CHM(“Flash Monitor”,GEN)
BOOK9=MON390MON390.HTM(“MON390: Dallas Contiguous Mode Monitor”,GEN)
TDRV0=BINMON51.DLL (“Keil Monitor-51 Driver”)
TDRV1=BINISD51.DLL (“Keil ISD51 In-System Debugger”)
TDRV2=BINMON390.DLL (“MON390: Dallas Contiguous Mode”)
TDRV3=BINLPC2EMP.DLL (“LPC900 EPM Emulator/Programmer”)
TDRV4=BINUL2UPSD.DLL (“ST-uPSD ULINK Driver”)
RTOS1=RTXTINY.DLL (“RTX-51 Tiny”)
RTOS2=RTX51.DLL (“RTX-51 Full”)
PATH=”C:KeilC51″
SN=K1DZP-5IUSH-A01UE
VERSION=V9.01
BOOK0=HLPRELEASE_NOTES.HTM(“Release Notes”,GEN)
BOOK1=HLPGS51.PDF(“uVision2 Getting Started”,GEN)
BOOK2=HLPC51.PDF(“C51 User’s Guide”,GEN)
BOOK3=HLPC51LIB.CHM(“C51 Library Functions”,C)
BOOK4=HLPA51.PDF(“Assembler/Utilities”,GEN)
BOOK5=HLPTR51.CHM(“RTX51 Tiny User’s Guide”,GEN)
BOOK6=HLPDBG51.CHM(“uVision2 Debug Commands”,GEN)
BOOK7=HLPISD51.CHM(“ISD51 In System Debugger”,GEN)
BOOK8=HLPFlashMon51.CHM(“Flash Monitor”,GEN)
BOOK9=MON390MON390.HTM(“MON390: Dallas Contiguous Mode Monitor”,GEN)
TDRV0=BINMON51.DLL (“Keil Monitor-51 Driver”)
TDRV1=BINISD51.DLL (“Keil ISD51 In-System Debugger”)
TDRV2=BINMON390.DLL (“MON390: Dallas Contiguous Mode”)
TDRV3=BINLPC2EMP.DLL (“LPC900 EPM Emulator/Programmer”)
TDRV4=BINUL2UPSD.DLL (“ST-uPSD ULINK Driver”)
RTOS1=RTXTINY.DLL (“RTX-51 Tiny”)
RTOS2=RTX51.DLL (“RTX-51 Full”)
修改後效果如圖所示:
這一步之後,就可以 用keygen 算註冊碼授權了, 新建工程時就能選擇C5x器件了
第二步 下載並解壓C51編譯器放在 Keil安裝目錄下即可
可以去這個地址下載
或者去別人裝了Keil For C51的機器上Copy一份