PIC18LF452 Microchip Technology, PIC18LF452 Datasheet - Page 151

no-image

PIC18LF452

Manufacturer Part Number
PIC18LF452
Description
(PIC18LFxx2) Enhanced FLASH Microcontrollers
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18LF452-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18LF452-I/P
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18LF452-I/PT
Manufacturer:
XILINX
Quantity:
349
Part Number:
PIC18LF452-I/PT
Quantity:
6
Part Number:
PIC18LF452-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18LF452-I/PT
Manufacturer:
HAR
Quantity:
15
Part Number:
PIC18LF452-I/PT
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC18LF4520-E/PT
Manufacturer:
SIEMENS
Quantity:
2
Part Number:
PIC18LF4520-I/ML
Manufacturer:
MICROCHI
Quantity:
20 000
Part Number:
PIC18LF4520-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18LF4520-I/PT
Manufacturer:
MICROCHI
Quantity:
20 000
Part Number:
PIC18LF4520T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18LF4523-I/ML
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18LF4525-I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
15.4.6
Master mode is enabled by setting and clearing the
appropriate SSPM bits in SSPCON1 and by setting the
SSPEN bit. In Master mode, the SCL and SDA lines
are manipulated by the MSSP hardware.
Master mode of operation is supported by interrupt
generation on the detection of the START and STOP
conditions. The STOP (P) and START (S) bits are
cleared from a RESET or when the MSSP module is
disabled. Control of the I
P bit is set or the bus is IDLE, with both the S and P bits
clear.
In Firmware Controlled Master mode, user code con-
ducts all I
STOP bit conditions.
Once Master mode is enabled, the user has six
options.
1.
2.
3.
4.
5.
6.
FIGURE 15-16:
2002 Microchip Technology Inc.
Assert a START condition on SDA and SCL.
Assert a Repeated START condition on SDA
and SCL.
Write
transmission of data/address.
Configure the I
Generate an Acknowledge condition at the end
of a received byte of data.
Generate a STOP condition on SDA and SCL.
SDA
SCL
2
MASTER MODE
C bus operations based on START and
to
the
2
C port to receive data.
SSPBUF
MSSP BLOCK DIAGRAM (I
2
C bus may be taken when the
SDA in
Bus Collision
SCL in
register
Read
initiating
MSb
START bit, STOP bit,
Write Collision Detect
end of XMIT/RCV
START bit Detect
State Counter for
Clock Arbitration
STOP bit Detect
Acknowledge
SSPBUF
Generate
SSPSR
2
C MASTER MODE)
LSb
Write
The following events will cause SSP interrupt flag bit,
SSPIF, to be set (SSP interrupt if enabled):
• START condition
• STOP condition
• Data transfer byte transmitted/received
• Acknowledge Transmit
• Repeated START
Clock
Data Bus
Shift
Note:
Internal
Set/Reset, S, P, WCOL (SSPSTAT)
Set SSPIF, BCLIF
Reset ACKSTAT, PEN (SSPCON2)
The MSSP Module, when configured in I
Master mode, does not allow queueing of
events. For instance, the user is not
allowed to initiate a START condition and
immediately write the SSPBUF register to
initiate transmission before the START
condition is complete. In this case, the
SSPBUF will not be written to and the
WCOL bit will be set, indicating that a write
to the SSPBUF did not occur.
PIC18FXX2
SSPADD<6:0>
SSPM3:SSPM0
Baud
Rate
Generator
DS39564B-page 149
2
C

Related parts for PIC18LF452