Explore the STC12C5A60S2 timer

Publisher:SereneHarmonyLatest update time:2024-02-18 Source: elecfansKeywords:STC12C5A60S2 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  The STC12C5A60S2 microcontroller integrates a total of four 16-bit timers, two timers/counters compatible with the traditional 8051, 16-bit timers T0 and T1. There is no timer 2, but there is an independent baud rate generator for serial communication. Baud rate generator, coupled with 2-way PCA module, can realize 2 more 16-bit timers;

  1. Basic features

  The STC12C5A60S2 microcontroller integrates two 16-bit timer/counters.

  1) Register

  1.1) TMOD timer working mode control register, including 13-bit register, 16-bit register, 8-bit register, etc.;

  1.2) TCON timer control register, mainly includes timer start control bits, etc.;

  1.3) AUXR auxiliary register, used to set the frequency division; the default frequency division is 12

  1.4) TH0/1: high 8-bit register of timer

  1.5) TL0/1: lower 8-bit register of timer

  Timer calculation

  STC12C5A60S2 timer

  The STC12C5A60S2 series is a 1T 8051 microcontroller. In order to be compatible with the traditional 8051, timer 0 and timer 1 are reset to the speed of the traditional 8051, which is divided by 12. This is to be compatible with the traditional 8051. But it is also possible to achieve true 1T without dividing by 12.

  STC12C5A60S2 timer

  STC12C5A60S2 timer

  STC12C5A60S2 timer

  Compile and download the target code, and the LED light flashes at 1s intervals, indicating that our code is correct. Now we modify the code to turn off the 12-frequency divider of timer T0, and the pink field is the newly added code.

 STC12C5A60S2 timer

  STC12C5A60S2 timer


Keywords:STC12C5A60S2 Reference address:Explore the STC12C5A60S2 timer

Previous article:51 microcontroller timers and counters
Next article:71M6543F/71M6543H smart meter schematic diagram

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号