Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC16F15213T-I/ST Datasheet(PDF) 223 Page - Microchip Technology

Part # PIC16F15213T-I/ST
Description  PIC16F15213/14/23/24/43/44 Low Pin Count Microcontrollers
PDF  439 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F15213T-I/ST Datasheet(HTML) 223 Page - Microchip Technology

Back Button PIC16F15213T-I/ST Datasheet HTML 219Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 220Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 221Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 222Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 223Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 224Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 225Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 226Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 227Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 223 / 439 page
background image
• The Serial Port Enable (SPEN) bit is set to ‘1’ to enable the EUSART interface and to enable automatically the
output drivers for the RxyPPS selected as the TXx/CKx output
All other EUSART control bits are assumed to be in their default state.
If the TXx/CKx pin is shared with an analog peripheral, the analog I/O function must be disabled by clearing the
corresponding ANSEL bit.
Important:  The TXxIF Transmitter Interrupt Flag in the PIRx register is set when the TXEN enable bit is
set and the Transmit Shift Register (TSR) is Idle.
24.1.1.2 Transmitting Data
A transmission is initiated by writing a character to the TXxREG register. If this is the first character, or the previous
character has been completely flushed from the TSR, the data in the TXxREG is immediately transferred to the TSR
register. If the TSR still contains all or part of a previous character, the new character data is held in the TXxREG until
the Stop bit of the previous character has been transmitted. The pending character in the TXxREG is then transferred
to the TSR in one TCY immediately following the Stop bit transmission. The transmission of the Start bit, data bits and
Stop bit sequence commences immediately following the transfer of the data to the TSR from the TXxREG.
24.1.1.3 Transmit Data Polarity
The polarity of the transmit data can be controlled with the Clock/Transmit Polarity Select (SCKP) bit. The default
state of this bit is ‘0’, which selects high true transmit Idle and data bits. Setting the SCKP bit to ‘1’ will invert the
transmit data resulting in low true Idle and data bits. The SCKP bit controls transmit data polarity in Asynchronous
mode only. In Synchronous mode, the SCKP bit has a different function. See 24.4.1.2. Clock Polarity for more
details.
24.1.1.4 Transmit Interrupt Flag
The EUSART Transmit Interrupt Flag (TXxIF) bit of the PIRx register is set whenever the EUSART transmitter is
enabled and no character is being held for transmission in the TXxREG. In other words, the TXxIF bit is only cleared
when the TSR is busy with a character and a new character has been queued for transmission in the TXxREG. The
TXxIF flag bit is not cleared immediately upon writing TXxREG. TXxIF becomes valid in the second instruction cycle
following the write execution. Polling TXxIF immediately following the TXxREG write will return invalid results. The
TXxIF bit is read-only, it cannot be set or cleared by software.
The TXxIF interrupt can be enabled by setting the EUSART Transmit Interrupt Enable (TXxIE) bit of the PIEx register.
However, the TXxIF flag bit will be set whenever the TXxREG is empty, regardless of the state of TXxIE enable bit.
To use interrupts when transmitting data, set the TXxIE bit only when there is more data to send. Clear the TXxIE
interrupt enable bit upon writing the last character of the transmission to the TXxREG.
24.1.1.5 TSR Status
The Transmit Shift Register Status (TRMT) bit indicates the status of the TSR register. This is a read-only bit. The
TRMT bit is set when the TSR register is empty and is cleared when a character is transferred to the TSR register
from the TXxREG. The TRMT bit remains clear until all bits have been shifted out of the TSR register. No interrupt
logic is tied to this bit, so the user needs to poll this bit to determine the TSR status.
Important:  The TSR register is not mapped in data memory, so it is not available to the user.
24.1.1.6 Transmitting 9-Bit Characters
The EUSART supports 9-bit character transmissions. When the 9-Bit Transmit Enable (TX9) bit is set, the EUSART
will shift nine bits out for each character transmitted. The TX9D bit is the ninth and Most Significant data bit. When
transmitting 9-bit data, the TX9D data bit must be written before writing the eight Least Significant bits into the
TXxREG. All nine bits of data will be transferred to the TSR register immediately after the TXxREG is written.
PIC16F15213/14/23/24/43/44
EUSART - Enhanced Universal Synchronous Asyn...
© 2020-2022 Microchip Technology Inc.
and its subsidiaries
Data Sheet
DS40002195E-page 223



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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