| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PIC16F15213T-I/ST bảng dữ liệu(PDF) 240 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST bảng dữ liệu(HTML) 240 Page - Microchip Technology |
|
240 / 439 page ![]() 24.4.2.4 Synchronous Client Reception Setup 1. Set the SYNC and SPEN bits and clear the CSRC bit. 2. Select the receive input pin by writing the appropriate value to the RXxPPS register. 3. Select the clock input pin by writing the appropriate values to the TXxPPS register. 4. Clear the ANSEL bit for both the TXx/CKx and RXx/DTx pins (if applicable). 5. If interrupts are desired, set the RCxIE bit of the PIEx register and the GIE and PEIE bits of the INTCON register. 6. If 9-bit reception is desired, set the RX9 bit. 7. Set the CREN bit to enable reception. 8. The RCxIF bit will be set when reception is complete. An interrupt will be generated if the RCxIE bit was set. 9. If 9-bit mode is enabled, retrieve the Most Significant bit from the RX9D bit. 10. Retrieve the eight Least Significant bits from the receive FIFO by reading the RCxREG register. 11. If an overrun error occurs, clear the error by either clearing the CREN bit or by clearing the SPEN bit which resets the EUSART. 24.5 EUSART Operation During Sleep The EUSART will remain active during Sleep only in the Synchronous Client mode. All other modes require the system clock and therefore cannot generate the necessary signals to run the Transmit or Receive Shift registers during Sleep. Synchronous Client mode uses an externally generated clock to run the Transmit and Receive Shift registers. 24.5.1 Synchronous Receive During Sleep To receive during Sleep, all the following conditions must be met before entering Sleep mode: • RCxSTA and TXxSTA Control registers must be configured for Synchronous Client Reception (see 24.4.2.4. Synchronous Client Reception Setup). • If interrupts are desired, set the RCxIE bit of the PIEx register and the GIE and PEIE bits of the INTCON register. • The RCxIF interrupt flag must be cleared by reading RCxREG to unload any pending characters in the receive buffer. Upon entering Sleep mode, the device will be ready to accept data and clocks on the RXx/DTx and TXx/CKx pins, respectively. When the data word has been completely clocked in by the external device, the RCxIF Interrupt Flag bit of the PIRx register will be set. Thereby, waking the processor from Sleep. Upon waking from Sleep, the instruction following the SLEEP instruction will be executed. If the Global Interrupt Enable (GIE) bit of the INTCON register is also set, then the Interrupt Service Routine (ISR) will be called. 24.5.2 Synchronous Transmit During Sleep To transmit during Sleep, all the following conditions must be met before entering Sleep mode: • The RCxSTA and TXxSTA Control registers must be configured for synchronous client transmission (see 24.4.2.2. Synchronous Client Transmission Setup). • The TXxIF interrupt flag must be cleared by writing the output data to the TXxREG, thereby filling the TSR and transmit buffer. • The TXxIE interrupt enable bits of the PIEx register and PEIE of the INTCON register must be written to ‘1’. • If interrupts are desired, set the GIE bit of the INTCON register. Upon entering Sleep mode, the device will be ready to accept clocks on the TXx/CKx pin and transmit data on the RXx/DTx pin. When the data word in the TSR register has been completely clocked out by the external device, the pending byte in the TXxREG will transfer to the TSR and the TXxIF flag will be set. Thereby, waking the processor from Sleep. At this point, the TXxREG is available to accept another character for transmission. Writing TXxREG will clear the TXxIF flag. Upon waking from Sleep, the instruction following the SLEEP instruction will be executed. If the Global Interrupt Enable (GIE) bit is also set then the Interrupt Service Routine (ISR) will be called. PIC16F15213/14/23/24/43/44 EUSART - Enhanced Universal Synchronous Asyn... © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 240 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |