Let UV4 support STC microcontroller

Publisher:心怀感恩Latest update time:2024-08-13 Source: cnblogsKeywords:UV4  STC  MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Keil itself does not come with data for the STC 8051 microcontroller, which makes it very frustrating to use. Fortunately, a young man in China has compiled a patch.


This patch contains three fixes:

  • Chinese character bug correction is a commonplace issue. It is strange that Keil has not corrected this in the past ten years, which shows its complete indifference to the Chinese market.

  • STC header file

  • STC Device Database

OK, this patch is enough for general applications, but it is still a little insufficient for people who pursue perfection, because this patch will overwrite the UV4.cdb device database that comes with UV4. After applying the patch, the latest UV4 database will be lost.

How to solve this problem? In fact, since UV2, the function of user-defined device database has been supported. We can modify it as follows:

  • Back up UV4.cdb

  • Installing the patch

  • Modify C:KeilTOOLS.INI and add the following under the [UV2] section:

    CDB0=uv4custom.cdb("STC 8051")

  • Rename the patched UV4.cdb to custom.cdb

  • Restore the backed up UV4.cdb

This way, the next time we select a device database, UV4 will ask us which library we want to select from.


Keywords:UV4  STC  MCU Reference address:Let UV4 support STC microcontroller

Previous article:The role of data, idata, xdata, pdata, and code in C51
Next article:51 MCU Quasi-bidirectional port

Recommended ReadingLatest update time:2024-11-15 13:23

What is the role of RAM in a microcontroller?
A single-chip microcomputer is a small computer. Although a flea is small, it has all the organs and can even jump very high! Naturally, a data storage system is indispensable for a large computer, and a small single-chip microcomputer also has it, and it is often integrated with the CPU, making it more compact and fl
[Microcontroller]
What is the role of RAM in a microcontroller?
Design of VCN-MIO Intelligent Node Template Circuit Based on AT89C2051 Single Chip Microcomputer
  0 Preface   Based on the intelligent node template of Neuron chip with three CPUs and solidified LonTalk communication protocol, since Neuron chip is an eight-bit processor, and only provides 11 general I/O ports, and adopts a software scheduling mechanism based on event inspection, its control function is relativel
[Microcontroller]
Design of VCN-MIO Intelligent Node Template Circuit Based on AT89C2051 Single Chip Microcomputer
51 single chip microcomputer (AT89C52) A/D conversion
#include reg52.h   #define uchar unsigned char   #define uint unsigned int   #define PORT P3   #define dula_h P2|=0x40   #define stay_l P2&=0xbf   #define temperature_h P2|=0x80   #define wela_l P2&=0x7f   sbit cs=P2^0;   sbit rd=P2^1;   sbit wr=P2^2;   fly read;   uchar table ={ //Common anode digital tube   0xc0,0xf
[Microcontroller]
51 single chip microcomputer (AT89C52) A/D conversion
Application of PIC microcontroller in interface design
    PIC microcontroller ( Peripheral Interface Controller) is an integrated circuit (IC) used to develop and control peripheral devices . Now the application field of PIC microcontroller is quite extensive. In order to facilitate engineers to learn PIC microcontroller well, Electronics Fan Network has sorted out the
[Microcontroller]
Application of PIC microcontroller in interface design
Practical Analysis of 8051 MCU (Taking STC89C52RC as an Example) | 06 - Dynamic Digital Tube Driver
1 Dynamic Scan So what is dynamic scanning? For example: if there are two digital tubes and we want to display the number "12", we can first turn on the high-order bit select transistor, then control the segment select to display "1", and then turn on the low-order bit select transistor after a certain delay, and th
[Microcontroller]
Practical Analysis of 8051 MCU (Taking STC89C52RC as an Example) | 06 - Dynamic Digital Tube Driver
Introduction to AVR MCU 1: The structure of MCU embedded system
1. Structure of a single-chip embedded system A single-chip embedded system generally consists of two parts: hardware and software. The hardware part is divided into a single-chip control chip (i.e., a single-chip microcomputer) and peripheral circuits. The peripheral circuits are divided into basic system circuits
[Microcontroller]
51 MCU MAX7219 Program
This program has been used and no debugging is required.  #include "reg52.h" #include "intrins.h"  #define byte unsigned char  //#define N_NOP _nop_();//_nop_();_nop_();  /////////////////////////////////////////////////////////////////  //MAX7219   /////////////////////////////////////////////////////////////////////
[Microcontroller]
Why do we need chip select control and address selection for microcontrollers?
Answer: In the single-chip microcomputer application system, all peripheral chips are connected to the single-chip microcomputer through the bus. The single-chip microcomputer data bus transmits data with the peripheral chips in a time-sharing manner. In order to make this transmission reliable, chip selection control
[Microcontroller]
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号