| Electronic Components Datasheet Search |
|
PIC16F15213T-I/ST Datasheet(PDF) 224 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST Datasheet(HTML) 224 Page - Microchip Technology |
|
224 / 439 page ![]() A special 9-bit Address mode is available for use with multiple receivers. See 24.1.2.7. Address Detection for more information on the Address mode. 24.1.1.7 Asynchronous Transmission Setup 1. Initialize the SPxBRGH:SPxBRGL register pair and the BRGH and BRG16 bits to achieve the desired baud rate (see 24.3. EUSART Baud Rate Generator (BRG)). 2. Select the transmit output pin by writing the appropriate value to the RxyPPS register. 3. Enable the asynchronous serial port by clearing the SYNC bit and setting the SPEN bit. 4. If 9-bit transmission is desired, set the TX9 control bit. That will indicate that the eight Least Significant data bits are an address when the receiver is set for address detection. 5. Set SCKP bit if inverted transmit is desired. 6. Enable the transmission by setting the TXEN control bit. This will cause the TXxIF interrupt bit to be set. 7. If interrupts are desired, set the TXxIE interrupt enable bit of the PIEx register. 8. An interrupt will occur immediately provided that the GIE and PEIE bits of the INTCON register are also set. 9. If 9-bit transmission is selected, the ninth bit will be loaded into the TX9D data bit. 10. Load 8-bit data into the TXxREG register. This will start the transmission. Figure 24-3. Asynchronous Transmission Rev. 10-000 115A 2/7/201 7 Write to TXxREG BRG Output (Shift Clock) TXx/CKx pin TXxIF bit (Transmit Buffer Reg Empty Flag) TRMT bit (Transmit Shift Reg Empty Flag) Start bit bit 0 bit 1 bit 7/8 Stop bit 1 TCY Word 1 Word 1 Figure 24-4. Asynchronous Transmission (Back-to-Back) Rev. 10-000 116A 2/7/201 7 Write to TXxREG BRG Output (Shift Clock) TXx/CKx pin TXxIF bit (Transmit Buffer Reg Empty Flag) TRMT bit (Transmit Shift Reg Empty Flag) Start bit bit 0 bit 1 bit 7/8 Stop bit 1 TCY Word 1 Start bit bit 0 Word 2 Word 1 Word 2 24.1.2 EUSART Asynchronous Receiver The Asynchronous mode is typically used in RS-232 systems. A simplified representation of the receiver is shown in Figure 24-2. The data is received on the RXx/DTx pin and drives the data recovery block. The data recovery block is actually a high-speed shifter operating at 16 times the baud rate, whereas the serial Receive Shift Register (RSR) operates at the bit rate. When all eight or nine bits of the character have been shifted in, they are immediately transferred to a two character First-In-First-Out (FIFO) memory. The FIFO buffering allows reception of two complete PIC16F15213/14/23/24/43/44 EUSART - Enhanced Universal Synchronous Asyn... © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 224 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |