STM32 Learning 014_STC89C51RC

Publisher:DelightfulGazeLatest update time:2017-10-26 Source: eefocusKeywords:STM32  STC89C51RC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

STC89C52rc is a low-power, high-performance CMOS 8-bit controller produced by STC, with 8k bytes of system programmable FLASH memory. The stc89c51 uses the classic MCS-51 core, but has made many improvements, so that the chip has functions that the traditional 51 does not have, but has a flexible 8-bit CPU and system programmable FLASH on a single chip.

Standard functions: 8k bytes Flash, 512 bytes Ram, 32-bit I/O port lines, watchdog timer, built-in 4KBEEPROM, max810 reset circuit, 3 16-bit timers/counters, 4 external interrupts, a vector 4-level interrupt structure (compatible with the traditional 51's 5-vector 2-level interrupt structure), full-duplex serial port. In addition, stc89c52 can be reduced to 0hz static logic operation, supports two software-selectable power saving modes, in idle state, the CPU stops working, allowing RAM, timer/counter, serial port, and interrupts to continue working. In power-off protection mode, RAM contents are saved, the oscillator is frozen, and all microcontroller operations stop until the next interrupt or hardware reset. The maximum operating frequency is 35MHz, 6T/12T is optional (6T mode means--6 clock cycles are one machine cycle).

STC89C52RC is an enhanced MCS-51 microcontroller from Hongjing Company. Compared with Atmel's AT89C52, it has the following advantages:

  1. Supports STC 2-wire download mode, making program download more convenient

  2. Support 6T mode (in 6T mode, 6 clock cycles are one machine cycle)

  3. 4kB EEPROM integrated on chip

  4. With P4 port, more I/O

  5. The program memory has a longer erase and write life (STC nominally can be erased 100,000 times, Atmel nominally can be erased 1,000 times. However, for mass-produced finished products, this erase and write life is meaningless)

  Compared with Atmel, the disadvantages of STC microcontrollers are:

  In some cases, the anti-interference ability is not as good as Atmel's MCS-51 microcontroller

Working voltage: 5.5-3.3V (5V MCU) / 3.8v-2.0v (3V MCU)

Working frequency: 0-40MHz, equivalent to 0-80MHz of ordinary 51, the actual working frequency can reach 48MHz;

The user application space is 8K bytes;

On-chip integrated 512-byte RAM;

General I/O port, reset to P1/P2/P3 is quasi-bidirectional/weak pull-up, P0 is drain output, no pull-up is required when used as a bus expansion port; when using the I/O port, a pull-up resistor is required.

ISP/IAP (In Application Programmable), no dedicated programmer or emulator is required, user programs can be directly downloaded through the serial port (RXD/P3.0, TXD/P3.1), and one piece can be completed in seconds;

With EEPROM function;

There are three 16-bit timers/counters, T0, T1, T2;

4 external interrupts, falling edge or low level trigger circuit, POWER down mode can be awakened by external interrupt low level trigger interrupt

Universal asynchronous serial (UART), you can also use timer software to implement multiple UARTs;

PDIP package;


Keywords:STM32  STC89C51RC Reference address:STM32 Learning 014_STC89C51RC

Previous article:STM32 Learning 012_Product Development Process (II)
Next article:STM32 learning 013_SPI serial peripheral interface communication

Recommended ReadingLatest update time:2024-11-16 20:52

STM32 environment construction, project creation and program burning
Development environment construction: The STM32 development environment uses Keil MDK, so how to use MDK to build a project? MDK Download First, you should download the latest version of MDK installation package from the MDK official website: http://www.keil.com/arm/mdk.asp, enter the MDK official website, and c
[Microcontroller]
STM32 environment construction, project creation and program burning
Interesting talk about STM32 ADC and DMA
Recently, I was working on ADC sampling battery voltage, and sometimes I was a little confused. I can collect the voltage well without DMA, so why should I spend all that effort to use DMA? What if I make a mistake with DMA? The effect of not using DMA has not affected me to the point where I have to use it. Sometimes
[Microcontroller]
Interesting talk about STM32 ADC and DMA
STM32 issues regarding external interrupt lines, interrupt sources and interrupt service functions
Interrupt line problem: From the above figure, we can see that the EXTI0 interrupt line shared by PA0, PB0...PG0, and the EXTI1 interrupt line shared by PA1, PB2...PG1, that is, in the programming (as shown in the following library file), correspond to 16 interrupt lines. The last three are dedicated interrupt li
[Microcontroller]
STM32 issues regarding external interrupt lines, interrupt sources and interrupt service functions
STM32 encoder mode learning
1. Encoder mode theoretical reserve Usually in order to improve accuracy we will choose to count both the rising and falling edges! There is also a very important picture recorded here The most confusing part is probably the relative signal level in the second column, so let's discuss this in detail. In
[Microcontroller]
STM32 encoder mode learning
STM32 USB HID device driver analysis
1. USB HID device descriptor analysis         The device descriptor for USB HID is defined with the following structure:         Device_Property         DEVICE_PROP Device_Property =         {         CustomHID_init,         CustomHID_Reset,         CustomHID_Status_In,         CustomHID_Status_Out,         CustomHID_
[Microcontroller]
STM32 boot[1:0] settings
  (1) When the STM32 is powered on, BOOT is latched to determine where to start      When debugging in RAM, the power has been successfully turned on, and the BOOT status has no effect.      The IDE software automatically downloads the program to RAM and debugs and runs it in RAM.      (2)      It should be use
[Microcontroller]
STM32's I2C hardware bug caused a murder
There is a BUG in the function below, that is, SR2 cannot be polled using WHILE, but should be read directly. As shown in the following code segment, Therefore, what I say here is a BUG of STM32 is actually an error in my code:     I2C2- DR = inerAddress ;     while( (I2C2- SR1&Q_I2C_SR1_BIT_BTF)==0 );     I2C2- SR2;
[Microcontroller]
Solar-LED Street Light Solution Based on STM32 MCU
As fossil energy is decreasing and the problem of global warming caused by excessive greenhouse gas emissions is becoming more and more important, people are actively developing various types of renewable energy on the one hand, and advocating green environmental protection technologies for energy conservation and e
[Power Management]
Solar-LED Street Light Solution Based on STM32 MCU
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号