PIC18F23K22-I/ML Microchip Technology Inc., PIC18F23K22-I/ML Datasheet - Page 284

no-image

PIC18F23K22-I/ML

Manufacturer Part Number
PIC18F23K22-I/ML
Description
8KB, FLASH, 768BYTES-RAM, 8-BIT FAMILY, NANOWATT XLP, 28 QFN 6X6MM TUBE
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC18F23K22-I/ML

A/d Inputs
17-Channel, 10-Bit
Comparators
2
Cpu Speed
16 MIPS
Eeprom Memory
1K Bytes
Input Output
24
Interface
I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
28-pin QFN
Programmable Memory
8K Bytes
Ram Size
512 Bytes
Speed
48 MHz
Temperature Range
–40 to 125 °C
Timers
1-8-bit, 3-16-bit
Voltage, Range
1.8-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
PIC18(L)F2X/4XK22
16.4.1.5
1.
2.
3.
FIGURE 16-10:
FIGURE 16-11:
DS41412D-page 284
TXx/CKx pin
(SCKP = 1)
TXx/CKx pin
(SCKP = 0)
TRMT bit
RXx/DTx
pin
Write to
TXREGx Reg
TXxIF bit
(Interrupt Flag)
TXEN bit
Note:
Initialize the SPBRGHx, SPBRGx register pair
and the BRGH and BRG16 bits to achieve the
desired baud rate (see
Baud Rate Generator
Set the RXx/DTx and TXx/CKx TRIS controls to
‘1’.
Enable the synchronous master serial port by
setting bits SYNC, SPEN and CSRC. Set the
TRIS bits corresponding to the RXx/DTx and
TXx/CKx I/O pins.
‘1’
Synchronous Master Transmission
Setup:
Sync Master mode, SPBRGx = 0, continuous transmission of two 8-bit words.
Write Word 1
TXREGx reg
RXx/DTx pin
TXx/CKx pin
TRMT bit
TXxIF bit
TXEN bit
Write to
SYNCHRONOUS TRANSMISSION
SYNCHRONOUS TRANSMISSION (THROUGH TXEN)
bit 0
Section 16.3 “EUSART
(BRG)”).
Write Word 2
bit 1
Word 1
bit 0
bit 2
Preliminary
bit 1
bit 7
4.
5.
6.
7.
8.
9.
Disable Receive mode by clearing bits SREN
and CREN.
Enable Transmit mode by setting the TXEN bit.
If 9-bit transmission is desired, set the TX9 bit.
If interrupts are desired, set the TXxIE, GIE/
GIEH and PEIE/GIEL interrupt enable bits.
If 9-bit transmission is selected, the ninth bit
should be loaded in the TX9D bit.
Start transmission by loading data to the
TXREGx register.
bit 2
bit 0
Word 2
bit 1
bit 6
 2010 Microchip Technology Inc.
bit 7
bit 7
‘1’

Related parts for PIC18F23K22-I/ML