PIC18F45K22-I/P Microchip Technology Inc., PIC18F45K22-I/P Datasheet - Page 290

no-image

PIC18F45K22-I/P

Manufacturer Part Number
PIC18F45K22-I/P
Description
40 PDIP .600in TUBE, 32KB, Flash, 1536bytes-RAM, 8-bit Family, nanoWatt XLP
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC18F45K22-I/P

A/d Inputs
28-Channel, 10-Bit
Comparators
2
Cpu Speed
16 MIPS
Eeprom Memory
256 Bytes
Input Output
35
Interface
I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
32K Bytes
Ram Size
1.5K Bytes
Speed
64 MHz
Temperature Range
–40 to 125 °C
Timers
3-8-bit, 4-16-bit
Voltage, Range
1.8-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F45K22-I/P
Manufacturer:
MICROCHIP
Quantity:
3 400
Part Number:
PIC18F45K22-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F45K22-I/PT
Manufacturer:
SST
Quantity:
3 400
Part Number:
PIC18F45K22-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F45K22-I/PT
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC18F45K22-I/PT
0
Company:
Part Number:
PIC18F45K22-I/PT
Quantity:
20 400
PIC18(L)F2X/4XK22
16.4.2.3
The operation of the Synchronous Master and Slave
modes is identical
Master
• Sleep
• CREN bit is always set, therefore the receiver is
• SREN bit, which is a “don't care” in Slave mode
A character may be received while in Sleep mode by
setting the CREN bit prior to entering Sleep. Once the
word is received, the RSR register will transfer the data
to the RCREGx register. If the RCxIE enable bit is set,
the interrupt generated will wake the device from Sleep
and execute the next instruction. If the GIE/GIEH bit is
also set, the program will branch to the interrupt vector.
TABLE 16-10: REGISTERS ASSOCIATED WITH SYNCHRONOUS SLAVE RECEPTION
DS41412D-page 290
BAUDCON1
BAUDCON2
INTCON
IPR1
IPR3
PIE1
PIE3
PIR1
PIR3
PMD0
RCREG1
RCSTA1
RCREG2
RCSTA2
SPBRG1
SPBRGH1
SPBRG2
SPBRGH2
TXSTA1
TXSTA2
Legend:
never Idle
Name
Reception”), with the following exceptions:
— = unimplemented locations, read as ‘0’. Shaded bits are not used for synchronous slave reception.
EUSART Synchronous Slave
Reception
UART2MD UART1MD TMR6MD TMR5MD TMR4MD
GIE/GIEH
ABDOVF
ABDOVF
SSP2IP
SSP2IE
SSP2IF
SPEN
SPEN
CSRC
CSRC
Bit 7
(Section 16.4.1.6 “Synchronous
PEIE/GIEL
BCL2IP
BCL2IE
BCL2IF
RCIDL
RCIDL
ADIP
ADIE
ADIF
Bit 6
RX9
RX9
TX9
TX9
EUSART1 Baud Rate Generator, High Byte
EUSART2 Baud Rate Generator, High Byte
TMR0IE
EUSART1 Baud Rate Generator, Low Byte
EUSART2 Baud Rate Generator, Low Byte
DTRXP
DTRXP
RC1IP
RC2IP
RC1IE
RC2IE
RC1IF
RC2IF
SREN
SREN
TXEN
TXEN
Bit 5
EUSART1 Receive Register
EUSART2 Receive Register
Preliminary
CKTXP
CKTXP
INT0IE
TX1IP
TX2IP
TX1IE
TX2IE
CREN
CREN
SYNC
SYNC
TX1IF
TX2IF
Bit 4
CTMUIP
CTMUIE
CTMUIF
SSP1IP
SSP1IE
ADDEN
ADDEN
SSP1IF
SENDB
SENDB
BRG16
BRG16
16.4.2.4
1.
2.
3.
4.
5.
6.
7.
8.
9.
RBIE
Bit 3
Set the SYNC and SPEN bits and clear the
CSRC bit.
Set the RXx/DTx and TXx/CKx TRIS controls to
‘1’.
If using interrupts, ensure that the GIE/GIEH
and PEIE/GIEL bits of the INTCON register are
set and set the RCxIE bit.
If 9-bit reception is desired, set the RX9 bit.
Set the CREN bit to enable reception.
The RCxIF bit will be set when reception is
complete. An interrupt will be generated if the
RCxIE bit was set.
If 9-bit mode is enabled, retrieve the Most
Significant bit from the RX9D bit of the RCSTAx
register.
Retrieve the 8 Least Significant bits from the
receive FIFO by reading the RCREGx register.
If an overrun error occurs, clear the error by
either clearing the CREN bit of the RCSTAx
register or by clearing the SPEN bit which resets
the EUSART.
TMR5GIP TMR3GIP TMR1GIP
TMR5GIE TMR3GIE TMR1GIE
TMR5GIF
TMR3MD
TMR0IF
CCP1IP
CCP1IE
CCP1IF
BRGH
BRGH
FERR
FERR
Bit 2
Synchronous Slave Reception
Setup:
TMR3GIF
TMR2MD
TMR2IP
TMR2IE
TMR2IF
INT0IF
OERR
OERR
TRMT
TRMT
 2010 Microchip Technology Inc.
WUE
WUE
Bit 1
TMR1GIF
TMR1MD
TMR1IP
TMR1IE
TMR1IF
ABDEN
ABDEN
RX9D
RX9D
TX9D
TX9D
Bit 0
RBIF
Register
on Page
274
274
115
127
129
123
125
118
120
273
273
272
272
56

Related parts for PIC18F45K22-I/P