PIC18F85K22-I/PT Microchip Technology, PIC18F85K22-I/PT Datasheet - Page 349

no-image

PIC18F85K22-I/PT

Manufacturer Part Number
PIC18F85K22-I/PT
Description
IC, 8BIT MCU, PIC18F, 64MHZ, TQFP-80
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr
Datasheet

Specifications of PIC18F85K22-I/PT

Controller Family/series
PIC18
No. Of I/o's
69
Eeprom Memory Size
1KB
Ram Memory Size
2KB
Cpu Speed
64MHz
No. Of Timers
8
Core Size
8 Bit
Program Memory Size
32KB
Core Processor
PIC
Speed
64MHz
Connectivity
EBI/EMI, I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
69
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 24x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TQFP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F85K22-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F85K22-I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F85K22-I/PTRSL
Manufacturer:
Microchip Technology
Quantity:
10 000
22.4
Synchronous Slave mode is entered by clearing bit,
CSRC (TXSTAx<7>). This mode differs from the
Synchronous Master mode in that the shift clock is sup-
plied externally at the CKx pin (instead of being supplied
internally in Master mode). This allows the device to
transfer or receive data while in any low-power mode.
22.4.1
The operation of the Synchronous Master and Slave
modes is identical, except in the case of Sleep mode.
If two words are written to the TXREGx and then the
SLEEP instruction is executed, the following will occur:
a)
b)
c)
d)
TABLE 22-9:
 2009-2011 Microchip Technology Inc.
INTCON
PIR1
PIE1
IPR1
PIR3
PIE3
IPR3
RCSTA1
TXREG1
TXSTA1
BAUDCON1
SPBRGH1
SPBRG1
RCSTA2
TXREG2
TXSTA2
BAUDCON2
SPBRGH2
SPBRG2
ODCON3
PMD0
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used for synchronous slave transmission.
The first word will immediately transfer to the
TSR register and transmit.
The second word will remain in the TXREGx
register.
Flag bit, TXxIF, will not be set.
When the first word has been shifted out of TSR,
the TXREGx register will transfer the second word
to the TSR and flag bit, TXxIF, will now be set.
Name
EUSART Synchronous
Slave Mode
EUSART SYNCHRONOUS
SLAVE TRANSMISSION
EUSART1 Transmit Register
EUSART2 Transmit Register
EUSART1 Baud Rate Generator Register High Byte
EUSART1 Baud Rate Generator Register
EUSART2 Baud Rate Generator Register High Byte
EUSART2 Baud Rate Generator Register
GIE/GIEH
TMR5GIF
TMR5GIE
TMR5GIP
ABDOVF
ABDOVF
CCP3MD
REGISTERS ASSOCIATED WITH SYNCHRONOUS SLAVE TRANSMISSION
PSPIE
PSPIP
PSPIF
CSRC
CSRC
U2OD
SPEN
SPEN
Bit 7
PEIE/GIEL
CCP2MD
RCIDL
RCIDL
U1OD
ADIF
ADIE
ADIP
Bit 6
RX9
RX9
TX9
TX9
CCP1MD UART2MD UART1MD
TMR0IE
RXDTP
RXDTP
RC1IF
RC1IE
RC1IP
RC2IF
RC2IE
RC2IP
SREN
SREN
TXEN
TXEN
Bit 5
TXCKP
TXCKP
INT0IE
CREN
CREN
TX1IF
TX1IE
TX1IP
TX2IF
TX2IE
TX2IP
SYNC
SYNC
Bit 4
PIC18F87K22 FAMILY
e)
To set up a Synchronous Slave Transmission:
1.
2.
3.
4.
5.
6.
7.
8.
If enable bit, TXxIE, is set, the interrupt will wake
the chip from Sleep. If the global interrupt is
enabled, the program will branch to the interrupt
vector.
Enable the synchronous slave serial port by
setting bits, SYNC and SPEN, and clearing bit,
CSRC.
Clear bits, CREN and SREN.
If interrupts are desired, set enable bit, TXxIE.
If 9-bit transmission is desired, set bit, TX9.
Enable the transmission by setting enable bit,
TXEN.
If 9-bit transmission is selected, the ninth bit
should be loaded in bit, TX9D.
Start transmission by loading data to the
TXREGx register.
If using interrupts, ensure that the GIE and PEIE
bits in the INTCON register (INTCON<7:6>) are
set.
CTMUIE
CTMUIP
CTMUIF
SSP1IF
SSP1IE
SSP1IP
ADDEN
SENDB
ADDEN
SENDB
BRG16
BRG16
RBIE
Bit 3
TMR1GIE
TMR1GIP
TMR1GIF
SSP2MD
TMR0IF
CCP2IE
CCP2IP
CCP2IF
BRGH
BRGH
FERR
FERR
Bit 2
SSP1MD
TMR2IF
TMR2IE
TMR2IP
CCP1IE
CCP1IP
CCP1IF
INT0IF
OERR
OERR
TRMT
TRMT
WUE
WUE
Bit 1
DS39960D-page 349
CTMUDS
RTCCIE
RTCCIP
TMR1IF
TMR1IE
TMR1IP
RTCCIF
ADCMD
ABDEN
ABDEN
RX9D
RX9D
TX9D
TX9D
RBIF
Bit 0

Related parts for PIC18F85K22-I/PT