PIC18F23K20-E/MLQTP MICROCHIP [Microchip Technology], PIC18F23K20-E/MLQTP Datasheet - Page 254
![no-image](/images/no-image-200.jpg)
PIC18F23K20-E/MLQTP
Manufacturer Part Number
PIC18F23K20-E/MLQTP
Description
28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC18F23K20-EMLQTP.pdf
(420 pages)
- Current page: 254 of 420
- Download datasheet (8Mb)
PIC18F2XK20/4XK20
18.4.2
The following bits are used to configure the EUSART
for Synchronous slave operation:
• SYNC = 1
• CSRC = 0
• SREN = 0 (for transmit); SREN = 1 (for receive)
• CREN = 0 (for transmit); CREN = 1 (for receive)
• SPEN = 1
Setting the SYNC bit of the TXSTA register configures the
device for synchronous operation. Clearing the CSRC bit
of the TXSTA register configures the device as a slave.
Clearing the SREN and CREN bits of the RCSTA register
ensures that the device is in the Transmit mode,
otherwise the device will be configured to receive. Setting
the SPEN bit of the RCSTA register enables the
EUSART. If the RX/DT or TX/CK pins are shared with an
analog peripheral the analog I/O functions must be
disabled by clearing the corresponding ANSEL bits.
RX/DT and TX/CK pin output drivers must be disabled
by setting the corresponding TRIS bits.
18.4.2.1
The operation of the Synchronous Master and Slave
modes
“Synchronous Master Transmission”), except in the
case of the Sleep mode.
TABLE 18-9:
DS41303B-page 252
INTCON
PIR1
PIE1
IPR1
RCSTA
TRISC
TXREG
TXSTA
BAUDCTL
SPBRGH
SPBRG
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used for synchronous master transmission.
Note 1:
Name
are
Reserved in PIC18F2XK20 devices; always maintain these bits clear.
SYNCHRONOUS SLAVE MODE
EUSART Synchronous Slave
Transmit
EUSART Transmit Register
EUSART Baud Rate Generator Register, High Byte
EUSART Baud Rate Generator Register, Low Byte
GIE/GIEH PEIE/GIEL TMR0IE
ABDOVF
PSPIE
PSPIP
PSPIF
TRISC7
SPEN
CSRC
Bit 7
identical
REGISTERS ASSOCIATED WITH SYNCHRONOUS SLAVE TRANSMISSION
(1)
(1)
(1)
TRISC6
RCIDL
ADIF
ADIE
ADIP
Bit 6
RX9
TX9
(see
Section 18.4.1.3
TRISC5
DTRXP
SREN
TXEN
RCIF
RCIE
RCIP
Bit 5
Advance Information
TRISC4
CKTXP
INT0IE
CREN
SYNC
TXIE
TXIP
Bit 4
TXIF
ADDEN
TRISC3
SENDB
BRG16
SSPIF
SSPIE
SSPIP
If two words are written to the TXREG and then the
SLEEP instruction is executed, the following will occur:
1.
2.
3.
4.
5.
18.4.2.2
1.
2.
3.
4.
5.
6.
7.
RBIE
Bit 3
The first character will immediately transfer to
the TSR register and transmit.
The second word will remain in TXREG register.
The TXIF bit will not be set.
After the first character has been shifted out of
TSR, the TXREG register will transfer the second
character to the TSR and the TXIF bit will now be
set.
If the PEIE and TXIE bits are set, the interrupt
will wake the device from Sleep and execute the
next instruction. If the GIE bit is also set, the
program will call the Interrupt Service Routine.
Set the SYNC and SPEN bits and clear the
CSRC bit. Set the TRIS bits corresponding to
the RX/DT and TX/CK I/O pins.
Clear the CREN and SREN bits.
If using interrupts, ensure that the GIE and PEIE
bits of the INTCON register are set and set the
TXIE bit.
If 9-bit transmission is desired, set the TX9 bit.
Enable transmission by setting the TXEN bit.
If 9-bit transmission is selected, insert the Most
Significant bit into the TX9D bit.
Start
Significant 8 bits to the TXREG register.
TMR0IF
CCP1IE
CCP1IP
CCP1IF
TRISC2
BRGH
FERR
transmission
Bit 2
—
Synchronous Slave Transmission
Set-up:
TMR2IE
TMR2IP
TMR2IF
TRISC1
INT0IF
OERR
TRMT
WUE
Bit 1
© 2007 Microchip Technology Inc.
by
writing
TMR1IF
TMR1IE
TMR1IP
TRISC0
ABDEN
RX9D
TX9D
RBIF
Bit 0
the
on page
Values
Reset
Least
57
60
60
60
59
59
60
59
59
59
59
Related parts for PIC18F23K20-E/MLQTP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC18F23K20-I/SS](/photos/6/81/68119/150-28-ssop_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-I/SO](/photos/6/59/65909/150-28-soic_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F23K20-I/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
IC MCU 8BIT 8KB FLASH 28UQFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-I/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-QFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-I/SP](/photos/6/59/65908/150-28-dip_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 QFN 6x6mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 UQFN 4x4x0.5mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/SO](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 SOIC .300in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/SP](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 SPDIP .300in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/SS](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 SSOP .209in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F2480](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F2682-I/PT](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet: