欢迎访问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文件第117页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第118页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第119页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第120页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第122页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第123页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第124页浏览型号PIC17C752T-25I/P的Datasheet PDF文件第125页  
PIC17C75X  
14.4.2 USART SYNCHRONOUS SLAVE  
14.4  
USART Synchronous Slave Mode  
RECEPTION  
The synchronous slave mode differs from the master  
mode in the fact that the shift clock is supplied exter-  
nally at the TX/CK pin (instead of being supplied inter-  
nally in the master mode). This allows the device to  
transfer or receive data in the SLEEP mode. The slave  
mode is entered by clearing the CSRC (TXSTA<7>)  
bit.  
Operation of the synchronous master and slave modes  
are identical except in the case of the SLEEP mode.  
Also, SREN is a don't care in slave mode.  
If receive is enabled (CREN) prior to the SLEEPinstruc-  
tion, then a word may be received during SLEEP. On  
completely receiving the word, the RSR will transfer the  
data to RCREG (setting RCIF) and if the RCIE bit is set,  
the interrupt generated will wake the chip from SLEEP.  
If the global interrupt is enabled, the program will  
branch to the interrupt vector (0020h).  
14.4.1 USART SYNCHRONOUS SLAVE  
TRANSMIT  
The operation of the sync master and slave modes are  
identical except in the case of the SLEEP mode.  
Steps to follow when setting up a Synchronous Slave  
Reception:  
If two words are written to TXREG and then the SLEEP  
instruction executes, the following will occur. The first  
word will immediately transfer to the TSR and will trans-  
mit as the shift clock is supplied. The second word will  
remain in TXREG. TXIF will not be set. When the first  
word has been shifted out of TSR, TXREG will transfer  
the second word to the TSR and the TXIF flag will now  
be set. If TXIE is enabled, the interrupt will wake the  
chip from SLEEP and if the global interrupt is enabled,  
then the program will branch to interrupt vector  
(0020h).  
1. Enable the synchronous master serial port by  
setting the SYNC and SPEN bits and clearing  
the CSRC bit.  
2. If interrupts are desired, then set the RCIE bit.  
3. If 9-bit reception is desired, then set the RX9 bit.  
4. To enable reception, set the CREN bit.  
5. The RCIF bit will be set when reception is com-  
plete and an interrupt will be generated if the  
RCIE bit was set.  
6. Read RCSTA to get the ninth bit (if enabled) and  
determine if any error occurred during reception.  
Steps to follow when setting up a Synchronous Slave  
Transmission:  
7. Read the 8-bit received data by reading  
RCREG.  
1. Enable the synchronous slave serial port by set-  
ting the SYNC and SPEN bits and clearing the  
CSRC bit.  
8. If any error occurred, clear the error by clearing  
the CREN bit.  
2. Clear the CREN bit.  
3. If interrupts are desired, then set the TXIE bit.  
4. If 9-bit transmission is desired, then set the TX9  
bit.  
Note: To abort reception, either clear the SPEN  
bit, the SREN bit (when in single receive  
mode), or the CREN bit (when in continu-  
ous receive mode). This will reset the  
receive logic, so that it will be in the proper  
state when receive is re-enabled.  
5. Start transmission by loading data to TXREG.  
6. If 9-bit transmission is selected, the ninth bit  
should be loaded in TX9D.  
7. Enable the transmission by setting TXEN.  
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 reverse  
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.  
1997 Microchip Technology Inc.  
Preliminary  
DS30264A-page 121  
 复制成功!