| 数据搜索系统,热门电子元器件搜索 |
|
STC89LE52RC 数据表(PDF) 122 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC89LE52RC 数据表(HTML) 122 Page - STCmicro Technology Co,.Ltd |
|
122 / 165 page ![]() 8.5 Buad Rates The baud rate in Mode 0 is fixed: SYSclk 12 Mode 0 Baud Rate = The baud rate in Mode 2 depends on the value of bit SMOD in Special Function Register PCON. If SMOD =0 (which is the value on reset), the baud rate 1/ 64 the System clock cycle. If SMOD = 1, the baud rate is 1 / 32 the System clock cycle . 2SMOD 64 Mode 2 Baud Rate = ×(SYSclk) (SYSclk) In the STC89xx series, the baud rates in Modes 1 and 3 are determined by Timer1 or Timer 2 overflow rate. The baud rate in Mode 1 and 3 are fixed: Mode 1,3 Baud rate = (2 SMOD /32 ) x timer 1 overflow rate = (2 SMOD /32 ) x timer 2 overflow rate Timer 1 overflow rate = (SYSclk/12)/(256 - TH1); Timer 2 overflow rate = SYSclk/(65536-(RCAP2H,RCAP2L)) When Timer 1 is used as the baud rate generator, the Timer 1 interrupt should be disabled in this application. The Timer itself can be configured for either “timer” or “cormter” operation, and in any of its 3 running modes. In the most typcial applications, it is configured for “timer” operation, in the auto-reload mode (high nibble of TMOD = 0010B). One can achieve very low baud rate with Timer 1 by leaving the Timer 1 interrupt enabled, and configuring the Timer to run as a 16-bit timer (high nibble of TMOD = 0001B), and using the Timer 1 interrupt to do a l6-bit software reload. The following table lists various commonly used baud rates and how they can be obtained from Timer 1. Baud Rate f OSC SMOD Timer 1 C/T Mode Reload Value Mode 0 MAX: 1MHZ Mode 2 MAX: 375K Mode 1,3: 62.5K 19.2K 9.6K 4.8K 2.4K 1.2K 137.5 110 110 12MHZ 12MHZ 12MHZ 11.059MHZ 11.059MHZ 11.059MHZ 11.059MHZ 11.059MHZ 11.986MHZ 6MHZ 12MHZ X 1 1 1 0 0 0 0 0 0 0 X X 0 0 0 0 0 0 0 0 0 X X 2 2 2 2 2 2 2 2 1 X X FFH FDH FDH FAH F4H E8H 1DH 72H FEEBH Timer 1 Generated Commonly Used Baud Rates When Timer 2 is used as the baud rate generator (either TCLK or RCLK in T2CON is '1'), the baud rate is as follows, Mode 1,3 Baud rate = 2 SMOD ×SYSclk SYSclk 32×(65536-(RCAP2H,RCAP2L)) 65536-(RCAP2H,RCAP2L)) 122 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |