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

COP8FG 参数 Datasheet PDF下载

COP8FG图片预览
型号: COP8FG
PDF下载: 下载PDF文件 查看货源
内容描述: 8位CMOS基于ROM和OTP微控制器具有8K到32K的内存,两个比较器和USART [8-Bit CMOS ROM Based and OTP Microcontrollers with 8k to 32k Memory, Two Comparators and USART]
分类和应用: 比较器微控制器
文件页数/大小: 59 页 / 803 K
品牌: NSC [ National Semiconductor ]
 浏览型号COP8FG的Datasheet PDF文件第24页浏览型号COP8FG的Datasheet PDF文件第25页浏览型号COP8FG的Datasheet PDF文件第26页浏览型号COP8FG的Datasheet PDF文件第27页浏览型号COP8FG的Datasheet PDF文件第29页浏览型号COP8FG的Datasheet PDF文件第30页浏览型号COP8FG的Datasheet PDF文件第31页浏览型号COP8FG的Datasheet PDF文件第32页  
8.0 USART (Continued)  
DS101116-40  
FIGURE 23. Framing Formats  
8.6 USART INTERRUPTS  
the basic baud clock is created from the oscillator frequency  
through a two-stage divider chain consisting of a 1–16 (in-  
crements of 0.5) prescaler and an 11-bit binary counter. (Fig-  
ure 24). The divide factors are specified through two read/  
write registers shown in Figure 25. Note that the 11-bit Baud  
Rate Divisor spills over into the Prescaler Select Register  
(PSR). PSR is cleared upon reset.  
The USART is capable of generating interrupts. Interrupts  
are generated on Receive Buffer Full and Transmit Buffer  
Empty. Both interrupts have individual interrupt vectors. Two  
bytes of program memory space are reserved for each inter-  
rupt vector. The two vectors are located at addresses 0xEC  
to 0xEF Hex in the program memory space. The interrupts  
can be individually enabled or disabled using Enable Trans-  
mit Interrupt (ETI) and Enable Receive Interrupt (ERI) bits in  
the ENUI register.  
As shown in Table 5, a Prescaler Factor of 0 corresponds to  
NO CLOCK. This condition is the USART power down mode  
where the USART clock is turned off for power saving pur-  
pose. The user must also turn the USART clock off when a  
different baud rate is chosen.  
The interrupt from the Transmitter is set pending, and re-  
mains pending, as long as both the TBMT and ETI bits are  
set. To remove this interrupt, software must either clear the  
ETI bit or write to the TBUF register (thus clearing the TBMT  
bit).  
The correspondences between the 5-bit Prescaler Select  
and Prescaler factors are shown in Table 5. There are many  
ways to calculate the two divisor factors, but one particularly  
effective method would be to achieve a 1.8432 MHz fre-  
quency coming out of the first stage. The 1.8432 MHz pres-  
caler output is then used to drive the software programmable  
baud rate counter to create a 16x clock for the following baud  
rates: 110, 134.5, 150, 300, 600, 1200, 1800, 2400, 3600,  
4800, 7200, 9600, 19200 and 38400 (Table 4). Other baud  
rates may be created by using appropriate divisors. The 16x  
clock is then divided by 16 to provide the rate for the serial  
shift registers of the transmitter and receiver.  
The interrupt from the receiver is set pending, and remains  
pending, as long as both the RBFL and ERI bits are set. To  
remove this interrupt, software must either clear the ERI bit  
or read from the RBUF register (thus clearing the RBFL bit).  
8.7 Baud Clock Generation  
The clock inputs to the transmitter and receiver sections of  
the USART can be individually selected to come either from  
an external source at the CKX pin (port L, pin L1) or from a  
source selected in the PSR and BAUD registers. Internally,  
www.national.com  
28  
 复制成功!