欢迎访问ic37.com |
会员登录 免费注册
发布采购

IC80C51-40W 参数 Datasheet PDF下载

IC80C51-40W图片预览
型号: IC80C51-40W
PDF下载: 下载PDF文件 查看货源
内容描述: CMOS单芯片8位微控制器 [CMOS SINGLE CHIP 8-BIT MICROCONTROLLER]
分类和应用: 微控制器
文件页数/大小: 44 页 / 246 K
品牌: ICSI [ INTEGRATED CIRCUIT SOLUTION INC ]
 浏览型号IC80C51-40W的Datasheet PDF文件第15页浏览型号IC80C51-40W的Datasheet PDF文件第16页浏览型号IC80C51-40W的Datasheet PDF文件第17页浏览型号IC80C51-40W的Datasheet PDF文件第18页浏览型号IC80C51-40W的Datasheet PDF文件第20页浏览型号IC80C51-40W的Datasheet PDF文件第21页浏览型号IC80C51-40W的Datasheet PDF文件第22页浏览型号IC80C51-40W的Datasheet PDF文件第23页  
IC80C51  
IC80C31  
Using the Timer 1 to Generate Baud Rates  
More About Mode 0  
When Timer 1 is the baud rate generator, the baud rates in  
Modes 1 and 3 are determined by the Timer 1 overflow rate  
and the value of SMOD according to the following equation.  
Serial data enters and exits through RXD. TXD outputs the  
shift clock. Eight data bits are transmitted/received, with  
the LSB first. The baud rate is fixed at 1/12 the oscillator  
frequency.  
Figure 15 shows a simplified functional diagram of the  
serial port in Mode 0 and associated timing.  
Mode 1, 3  
Baud Rate  
2SMOD  
32  
=
(Timer 1 Overflow Rate)  
X
Transmission is initiated by any instruction that uses SBUF  
as a destination register. The "write to SBUF" signal at  
S6P2 also loads a 1 into the ninth position of the transmit  
shift register and tells the TX Control block to begin a  
transmission. The internal timing is such that one full  
machine cycle will elapse between "write to SBUF" and  
activation of SEND.  
The Timer 1 interrupt should be disabled in this application.  
The Timer itself can be configured for either timer or  
counter operation in any of its three running modes. In the  
most typical applications, it is configured for timer operation  
in auto-reload mode (high nibble of TMOD = 0010B). In this  
case, the baud rate is given by the following formula.  
SEND transfer the output of the shift register to the alternate  
output function line of P3.0, and also transfers SHIFT  
CLOCK to the alternate output function line of P3.1. SHIFT  
CLOCK is low during S3, S4, and S5 of every machine  
cycle, and high during S6, S1, and S2. At S6P2 of every  
machine cycle in which SEND is active, the contents of the  
transmit shift register are shifted one position to the right.  
Mode 1,3  
Baud Rate  
2SMOD  
32  
Oscillator Frequency  
12x [256 – (TH1)]  
=
X
Programmers can achieve very low baud rates with Timer  
1 by leaving the Timer 1 interrupt enabled, configuring the  
Timer to run as a 16-bit timer (high nibble of TMOD =  
0001B), and using the Timer 1 interrupt to do a 16-bit  
software reload.  
As data bits shift out to the right, 0s come in from the left.  
When the MSB of the data byte is at the output position of  
the shift register, the 1 that was initially loaded into the ninth  
position is just to the left of the MSB, and all positions to the  
left of that contain 0s. This condition flags the TX Control  
Table 9 lists commonly used baud rates and how they can  
be obtained from Timer 1.  
Table 7. Commonly Used Baud Rates Generated by Timer 1  
Timer 1  
Baud Rate  
fOSC  
SMOD  
C/T  
X
X
0
0
0
0
0
0
0
Mode  
Reload Value  
X
Mode 0 Max: 1 MHz  
Mode 2 Max: 375K  
Modes 1, 3: 62.5K  
12 MHz  
12 MHz  
12 MHz  
11.059 MHz  
11.059 MHz  
11.059 MHz  
11.059 MHz  
11.059 MHz  
11.986 MHz  
6 MHz  
X
1
1
1
0
0
0
0
0
0
0
X
X
2
2
2
2
2
2
2
2
1
X
FFH  
FDH  
FDH  
FAH  
F4H  
E8H  
1DH  
72H  
19.2K  
9.6K  
4.8K  
2.4K  
1.2K  
137.5  
110  
0
0
110  
12 MHz  
FEEBH  
Integrated Circuit Solution Inc.  
MC001-0B  
19  
 复制成功!