【1】Database replacement method (STC official website method):
Note: This method is the simplest, but the disadvantage is that when selecting devices, you can only choose STC microcontrollers, and the original microcontrollers are gone, which is frustrating.
Steps:
First, back up the UV2.CDB (or UV3.CDB/UV4.CDB) file in the UV2 (or UV3/UV4) folder of the KEIL installation directory, and then replace it with the CDB file of the same name provided by the STC official website.
Note: If there is no UV4.CDB, you can rename "UV2.CDB (or UV3.CDB)" to "UV4.CDB" for use.
【2】New database adding method:
Note: By adding another MCU database, you can select STC MCU without affecting the use of the original database.
Steps:
① Download the STC database for Keil, rename it to STC.CDB and copy it to the Keil/UV2 directory. (If it is Kile3, it is UV3, Kile4 is UV4)
②Open the TOOLS.ini file in the Keil folder, type CDB0=UV2STC.CDB("STC") under [UV2] (that is, above [C51]), then save and exit to complete the addition. (If it is Kile3, it is UV3, and Kile4 is UV4)
Usage: When setting options for the target, click the Device page and select "STC" in Database.
When creating a new project, select "STC" in Select a CPU Date Base File.
Note: The default header files used in the STC database provided by Macrocrystalline's official website are REG51.H, REG52.H... (that is, the header files that can be quickly inserted by right-clicking are REG51.H, REG52.H...).
The right-click shortcut to insert the header file is as follows:
Therefore, if you want to conveniently use the "right-click quick insertion of the corresponding model header file", it is recommended that you modify the database or add the STC model yourself.
【3】Original database addition method (recommended):
Note: Add STC microcontrollers directly to the original database. Only add the STC models you need. It is simple and convenient. You can select STC microcontrollers without affecting the use of the original database.
Steps:
step 1:
Step 2:
( Detailed description )
Finish.
use:
[Add data of STC15F104E]
8051-based microcontroller with 1T(1-clock) High-Speed Core,
Dual DPTR, 6 I/O Lines, 2 Timers/Counters,
4K bytes flash ROM, 128 bytes data RAM,
1K On-chip EEPROM, WDT
CPU=IRAM(0-0x7F) IROM(0-0x1FFF) CLOCK(45000000) MODP2
MON=S8051.DLL TP51.DLL("-p51")
SIM=S8051.DLL DP51.DLL("-p51")
SFILE="LIBSTARTUP.A51"("Standard 8051 Strrtup Code")
REGFILE=STC15F104E.H("STC")
↑
↓
Put the header file STC15F104E.H in the C:KeilC51INCSTC directory (if there is no STC folder, build it yourself).
Note: If REGFILE=STC15F104E.H, do not use the following ("STC"), then the header file STC15F104E.H should be placed in the C:KeilC51INC directory.
[Add data of STC89C52RC]
8051-based microcontroller,
Dual DPTR, 32-36 I/O Lines, 3 Timers/Counters,
8K bytes flash ROM, 512 bytes data RAM,
4K On-chip EEPROM, UART, WDT, ISP/IAP
CPU=IRAM(0-0xFF) XRAM(0-0xFF) IROM(0-0x1FFF) CLOCK(45000000) MODP2
MON=S8051.DLL TP51.DLL("-p51")
SIM=S8051.DLL DP51.DLL("-p51")
SFILE="LIBSTARTUP.A51" ("Standard 8051 Startup Code")
REGFILE=STC89C52RC("STC")
【Supplementary explanation】
About database CDB files,
Kile4 is backward compatible. Kile4 can use and edit the database CDB files of Kile2 and Kile3.
Kile2 is not upward compatible and cannot use Kile4's database CDB file.
Related Links:
Make your programming more enjoyable (intelligent prompts, code formatting...): TKStudio V4.5.1 (Chinese compilation environment) + keil
http://hi.baidu.com/_bxak/item/6221df09472534e9ff240dff
STC series header files + STC UV2.CDB + UV3.CDB + UV4.CDB download
http://hi.baidu.com/江湖访问bxak/blog/item/de248beec7d097cb2f2e211b.html?timeStamp=1319175911186
About UV4.CDB attachment:
The compressed package contains: UV4.cdb, STC folder, instructions for use.doc
① Directly replace the UV4.cdb in the C:KeilUV4 directory with the UV4.cdb in the compressed package.
(The UV4.cdb in the compressed package has already collected the database that comes with Keil + STC database (including: STC15F104E, STC15F204EA...))
② Put the "STC" folder in the compressed package into the C:KeilC51INC directory. (The "STC" folder in the compressed package has already stored the header files of all STC series)
The purpose of step ②: You can right-click to quickly insert the header file corresponding to STC. For example:
Previous article:51 MCU Principle and Application--Chip Structure
Next article:STM32F0 advanced project real-time clock DS1307
Recommended ReadingLatest update time:2024-11-23 08:02
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- Single-chip microcomputer C language programming and simulation
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Single chip microcomputer control technology (Li Shuping, Wang Yan, Zhu Yu, Zhang Xiaoyun)
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Tips and methods for accurate temperature measurement with infrared thermometer
- Smart Power Switches: Applications in the Automotive Environment
- Questions about encoding format
- ADI's latest technical data collection
- Level conversion method
- Is there any document that provides detailed information on testing various ADC indicators?
- EEWORLD University Hall----Microelectronics Technology (Harbin Institute of Technology)
- About the voltage spike problem of MOS in motor driver
- [Repost] Three major considerations on EMC in switching power supply systems
- [ESP32-S2-Kaluga-1 Review] Running ESP32 II Development Environment and Configuration