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

PIC17C752T-25I/P 参数 Datasheet PDF下载

PIC17C752T-25I/P图片预览
型号: PIC17C752T-25I/P
PDF下载: 下载PDF文件 查看货源
内容描述: 高性能8位CMOS微控制器的EPROM [High-Performance 8-Bit CMOS EPROM Microcontrollers]
分类和应用: 微控制器可编程只读存储器电动程控只读存储器
文件页数/大小: 320 页 / 2172 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC17C752T-25I/P的Datasheet PDF文件第109页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第110页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第111页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第112页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第114页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第115页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第116页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第117页  
PIC17C75X  
Transmission  
is  
enabled  
by  
setting  
the  
14.2  
USART Asynchronous Mode  
TXEN (TXSTA<5>) bit. The actual transmission will not  
occur until TXREG has been loaded with data and the  
baud rate generator (BRG) has produced a shift clock  
(Figure 14-5). The transmission can also be started by  
first loading TXREG and then setting TXEN. Normally  
when transmission is first started, the TSR is empty, so  
a transfer to TXREG will result in an immediate transfer  
to TSR resulting in an empty TXREG. A back-to-back  
transfer is thus possible (Figure 14-6). Clearing TXEN  
during a transmission will cause the transmission to be  
aborted. This will reset the transmitter and the TX/CK  
pin will revert to hi-impedance.  
In this mode, the USART uses standard nonre-  
turn-to-zero (NRZ) format (one start bit, eight or nine  
data bits, and one stop bit).The most common data for-  
mat is 8-bits. An on-chip dedicated 8-bit baud rate gen-  
erator can be used to derive standard baud rate  
frequencies from the oscillator. The USART’s transmit-  
ter and receiver are functionally independent but use  
the same data format and baud rate. The baud rate  
generator produces a clock x64 of the bit shift rate. Par-  
ity is not supported by the hardware, but can be imple-  
mented in software (and stored as the ninth data bit).  
Asynchronous mode is stopped during SLEEP.  
In order to select 9-bit transmission, the  
TX9 (TXSTA<6>) bit should be set and the ninth bit  
value should be written to TX9D (TXSTA<0>). The  
ninth bit value must be written before writing the 8-bit  
data to the TXREG. This is because a data write to  
TXREG can result in an immediate transfer of the data  
to the TSR (if the TSR is empty).  
The asynchronous mode is selected by clearing the  
SYNC bit (TXSTA<4>).  
The USART Asynchronous module consists of the fol-  
lowing important elements:  
• Baud Rate Generator  
• Sampling Circuit  
• Asynchronous Transmitter  
• Asynchronous Receiver  
Steps to follow when setting up an Asynchronous  
Transmission:  
1. Initialize the SPBRG register for the appropriate  
baud rate.  
14.2.1 USART ASYNCHRONOUS TRANSMITTER  
2. Enable the asynchronous serial port by clearing  
the SYNC bit and setting the SPEN bit.  
The USART transmitter block diagram is shown in  
Figure 14-3. The heart of the transmitter is the transmit  
shift register (TSR). The shift register obtains its data  
from the read/write transmit buffer (TXREG).TXREG is  
loaded with data in software. The TSR is not loaded  
until the stop bit has been transmitted from the previous  
load. As soon as the stop bit is transmitted, the TSR is  
loaded with new data from the TXREG (if available).  
Once TXREG transfers the data to the TSR (occurs in  
one TCY at the end of the current BRG cycle), the  
TXREG is empty and an interrupt bit, TXIF, is set. This  
interrupt can be enabled/disabled by setting/clearing  
the TXIE bit. TXIF will be set regardless of TXIE and  
cannot be reset in software. It will reset only when new  
data is loaded into TXREG. While TXIF indicates the  
status of the TXREG, the TRMT (TXSTA<1>) bit shows  
the status of the TSR. TRMT is a read only bit which is  
set when the TSR is empty. No interrupt logic is tied to  
this bit, so the user has to poll this bit in order to deter-  
mine if the TSR is empty.  
3. If interrupts are desired, then set the TXIE bit.  
4. If 9-bit transmission is desired, then set the TX9  
bit.  
5. Load data to the TXREG register.  
6. If 9-bit transmission is selected, the ninth bit  
should be loaded in TX9D.  
7. Enable the transmission by setting TXEN (starts  
transmission).  
Writing the transmit data to the TXREG, then enabling  
the transmit (setting TXEN) allows transmission to start  
sooner than doing these two events in the opposite  
order.  
Note: To terminate a transmission, either clear  
the SPEN bit, or the TXEN bit. This will  
reset the transmit logic, so that it will be in  
the proper state when transmit is  
re-enabled.  
Note: The TSR is not mapped in data memory,  
so it is not available to the user.  
1997 Microchip Technology Inc.  
Preliminary  
DS30264A-page 113  
 复制成功!