参数资料
型号: COP8SGE744V8XXX
厂商: NATIONAL SEMICONDUCTOR CORP
元件分类: 微控制器/微处理器
英文描述: 8-BIT, OTPROM, 15 MHz, MICROCONTROLLER, PQCC44
封装: PLASTIC, LCC-44
文件页数: 27/62页
文件大小: 840K
代理商: COP8SGE744V8XXX
8.0 USART (Continued)
As an example, considering Asynchronous Mode and a CKI
clock of 4.608 MHz, the prescaler factor selected is:
4.608/1.8432 = 2.5
The 2.5 entry is available in
Table 5. The 1.8432 MHz
prescaler output is then used with proper Baud Rate Divisor
(
Table 4) to obtain different baud rates. For a baud rate of
19200 e.g., the entry in
Table 4 is 5.
N1=5(N1isthe value from
Table 4)
N=6(Nisthe Baud Rate Divisor)
Baud Rate = 1.8432 MHz/(16 x 6) = 19200
The divide by 16 is performed because in the asynchronous
mode, the input frequency to the USART is 16 times the
baud rate. The equation to calculate baud rates is given
below.
The actual Baud Rate may be found from:
BR = Fc/(16xNxP)
Where:
BR is the Baud Rate
Fc is the CKI frequency
N is the Baud Rate Divisor (
Table 4).
P is the Prescaler Divide Factor selected by the value in the
Prescaler Select Register (
Table 5)
Note: In the Synchronous Mode, the divisor 16 is replaced by two.
Example:
Asynchronous Mode:
Crystal Frequency=5MHz
Desired baud rate = 9600
Using the above equationNxP can be calculated first.
NxP =(5x10
6)/(16 x 9600) = 32.552
Now 32.552 is divided by each Prescaler Factor (
Table 5)to
obtain a value closest to an integer. This factor happens to
be 6.5 (P = 6.5).
N = 32.552/6.5 = 5.008 (N = 5)
The programmed value (from
Table 4) should be 4 (N 1).
Using the above values calculated for N and P:
BR=(5x10
6)/(16x5x 6.5) = 9615.384
% error = (9615.385 9600)/9600 x 100 = 0.16%
8.8 Effect of HALT/IDLE
The USART logic is reinitialized when either the HALT or
IDLE modes are entered. This reinitialization sets the TBMT
flag and resets all read only bits in the USART control and
status registers. Read/Write bits remain unchanged. The
Transmit Buffer (TBUF) is not affected, but the Transmit Shift
register (TSFT) bits are set to one. The receiver registers
RBUF and RSFT are not affected.
The device will exit from the HALT/IDLE modes when the
Start bit of a character is detected at the RDX (L3) pin. This
feature is obtained by using the Multi-Input Wakeup scheme
provided on the device.
Before entering the HALT or IDLE modes the user program
must select the Wakeup source to be on the RDX pin. This
selection is done by setting bit 3 of WKEN (Wakeup Enable)
register. The Wakeup trigger condition is then selected to be
high to low transition. This is done via the WKEDG register
(Bit 3 is one.)
If the device is halted and crystal oscillator is used, the
Wakeup signal will not start the chip running immediately
because of the finite start up time requirement of the crystal
oscillator. The idle timer (T0) generates a fixed (256 t
c) delay
to ensure that the oscillator has indeed stabilized before
allowing the device to execute code. The user has to con-
sider this delay when data transfer is expected immediately
after exiting the HALT mode.
8.9 Diagnostic
Bits CHARL0 and CHARL1 in the ENU register provide a
loopback feature for diagnostic testing of the USART. When
these bits are set to one, the following occur: The receiver
input pin (RDX) is internally connected to the transmitter
output pin (TDX); the output of the Transmitter Shift Register
is “looped back” into the Receive Shift Register input. In this
mode, data that is transmitted is immediately received. This
feature allows the processor to verify the transmit and re-
ceive data paths of the USART.
Note that the framing format for this mode is the nine bit
format; one Start bit, nine data bits, and 7/8, one or two Stop
bits. Parity is not generated or verified in this mode.
8.10 Attention Mode
The USART Receiver section supports an alternate mode of
operation, referred to as ATTENTION Mode. This mode of
operation is selected by the ATTN bit in the ENUR register.
The data format for transmission must also be selected as
having nine Data bits and either 7/8, one or two Stop bits.
The ATTENTION mode of operation is intended for use in
networking the device with other processors. Typically in
such environments the messages consists of device ad-
dresses, indicating which of several destinations should re-
ceive them, and the actual data. This Mode supports a
scheme in which addresses are flagged by having the ninth
bit of the data field set to a 1. If the ninth bit is reset to a zero
the byte is a Data byte.
While in ATTENTION mode, the USART monitors the com-
munication flow, but ignores all characters until an address
character is received. Upon receiving an address character,
the USART signals that the character is ready by setting the
RBFL flag, which in turn interrupts the processor if USART
Receiver interrupts are enabled. The ATTN bit is also cleared
automatically at this point, so that data characters as well as
address characters are recognized. Software examines the
contents of the RBUF and responds by deciding either to
accept the subsequent data stream (by leaving the ATTN bit
reset) or to wait until the next address character is seen (by
setting the ATTN bit again).
Operation of the USART Transmitter is not affected by se-
lection of this Mode. The value of the ninth bit to be trans-
mitted is programmed by setting XBIT9 appropriately. The
value of the ninth bit received is obtained by reading RBIT9.
Since this bit is located in ENUR register where the error
flags reside, a bit operation on it will reset the error flags.
COP8SG
Family
www.national.com
33
相关PDF资料
PDF描述
COP8SGE744V7XXX 8-BIT, OTPROM, 10 MHz, MICROCONTROLLER, PQCC44
COP8SGR740N7XXX 8-BIT, OTPROM, 10 MHz, MICROCONTROLLER, PDIP40
CP-1094-AST PANEL MOUNT, CABLE TERMINATED, FEMALE, BNC CONNECTOR, SOLDER, RECEPTACLE
CP-1094-U PANEL MOUNT, CABLE TERMINATED, FEMALE, BNC CONNECTOR, SOLDER, RECEPTACLE
CP-AD519 PANEL MOUNT, CABLE TERMINATED, FEMALE, BNC CONNECTOR, SOLDER, RECEPTACLE
相关代理商/技术参数
参数描述
COP8SGE7HLQ8 功能描述:IC MCU OTP 8BIT 8K 2-COMP 44LLP RoHS:否 类别:集成电路 (IC) >> 嵌入式 - 微控制器, 系列:COP8™ 8SG 标准包装:250 系列:56F8xxx 核心处理器:56800E 芯体尺寸:16-位 速度:60MHz 连通性:CAN,SCI,SPI 外围设备:POR,PWM,温度传感器,WDT 输入/输出数:21 程序存储器容量:40KB(20K x 16) 程序存储器类型:闪存 EEPROM 大小:- RAM 容量:6K x 16 电压 - 电源 (Vcc/Vdd):2.25 V ~ 3.6 V 数据转换器:A/D 6x12b 振荡器型:内部 工作温度:-40°C ~ 125°C 封装/外壳:48-LQFP 包装:托盘 配用:MC56F8323EVME-ND - BOARD EVALUATION MC56F8323
COP8SGE7VEJ7 制造商:Texas Instruments 功能描述:
COP8SGE7VEJ8 制造商:Rochester Electronics LLC 功能描述: 制造商:Texas Instruments 功能描述:
COP8SGE7VEJ8/NOPB 功能描述:8位微控制器 -MCU RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
COP8SG-EPU 功能描述:开发板和工具包 - 其他处理器 COP8SG EVAL/PROGAM UNIT RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压: