PIC16LC771-E/P Microchip Technology, PIC16LC771-E/P Datasheet - Page 91
![IC MCU OTP 4KX14 A/D PWM 20DIP](/photos/12/13/121303/150-20-dip_sml.jpg)
PIC16LC771-E/P
Manufacturer Part Number
PIC16LC771-E/P
Description
IC MCU OTP 4KX14 A/D PWM 20DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Specifications of PIC16LC771-E/P
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
15
Program Memory Size
7KB (4K x 14)
Program Memory Type
OTP
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 5.5 V
Data Converters
A/D 6x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Other names
PIC16LC771E/P
- Current page: 91 of 220
- Download datasheet (4Mb)
9.2.13
In Master-receive mode, the first byte transmitted con-
tains seven bits of address data and the R/W bit. In this
case, the R/W bit will be logic ’1’. Thus, the first byte
transmitted is a 7-bit slave address followed by a ’1’ to
indicate receive. Serial data is received via SDA, while
SCL outputs the serial clock. Serial data is received
eight bits at a time. After each byte is received, an
Acknowledge bit is transmitted. The START condition
indicates the beginning of a transmission. The master-
receiver terminates slave transmission by responding
to the last byte with a NACK Acknowledge and follows
this with a STOP condition to indicate to other masters
that the bus is free.
Master mode reception is enabled by setting the
receive enable bit, RCEN (SSPCON2<3>), immedi-
ately following the Acknowledge sequence.
The baud rate generator begins counting, and on each
rollover, the state of the SCL pin changes (high to low/
low to high) and data is shifted into the SSPSR. After
the falling edge of the eighth clock, the following events
occur:
• The receive enable bit is automatically cleared.
• The contents of the SSPSR are loaded into the
• The BF flag is set.
• The SSPIF is set.
• The baud rate generator is suspended from
The SSP is now in IDLE state, awaiting the next com-
mand. When the buffer is read by the CPU, the BF flag
is automatically cleared. The user can then send an
Acknowledge bit at the end of reception by clearing the
ACKDT bit (SSPCON2<5>) and setting the Acknowl-
edge sequence enable bit, ACKEN (SSPCON2<4>).
2002 Microchip Technology Inc.
Note:
SSPBUF.
counting, holding SCL low.
The MSSP Module must be in an IDLE
STATE before the RCEN bit is set or the
RCEN bit will be disregarded.
I
2
C MASTER MODE RECEPTION
Advance Information
A typical receive sequence would go as follows:
a)
b)
c)
d)
e)
f)
g)
h)
i)
j)
k)
l)
m) The user generates a STOP condition by setting
n)
9.2.13.1
In receive operation, BF is set when an address or data
byte is loaded into SSPBUF from SSPSR. It is cleared
by hardware when SSPBUF is read.
9.2.13.2
In receive operation, SSPOV is set when eight bits are
received into the SSPSR and the BF flag is already set
from a previous reception.
9.2.13.3
If the user writes the SSPBUF when a receive is
already in progress (i.e., SSPSR is still shifting in a data
byte), then WCOL is set and the contents of the buffer
are unchanged (the write doesn’t occur).
PIC16C717/770/771
The user generates a START Condition by set-
ting the START enable bit (SEN) in SSPCON2.
SSPIF is set at the completion of the START
sequence.
The user resets the SSPIF bit and loads the
SSPBUF with seven bits of address in the MSbs
and the LSb (R/W bit) set to '1' for receive.
Address and R/W is shifted out the SDA pin until
all eight bits are transmitted.
The MSSP Module shifts in the ACK bit from the
slave device, and writes its value into the
SSPCON2 register (SSPCON2<6>).
The module generates an interrupt at the end of
the ninth clock cycle by setting SSPIF.
The user resets the SSPIF bit and sets the
RCEN bit to enable reception.
DATA is shifted into the SDA pin until all eight
bits are received.
The MSSP module sets the SSPIF bit and clears
the RCEN bit at the falling edge of the eighth
clock.
The user resets the SSPIF bit and sets the
ACKDT bit to '0' (ACK), if another byte is antici-
pated. Otherwise, the ACKDT bit is set to '1'
(NACK) to terminate reception. The user sets
ADKEN to start the Acknowledge sequence.
The MSSP module sets the SSPIF bit at the
completion of the Acknowledge.
If a NACK was sent in step ( j), then the user pro-
ceeds with step ( m). Otherwise, reception con-
tinues by repeating steps ( g) through ( j).
the STOP enable bit PEN in SSPCON2.
SSPIF is set when the STOP condition is complete.
BF STATUS FLAG
SSPOV STATUS FLAG
WCOL STATUS FLAG
DS41120B-page 89
Related parts for PIC16LC771-E/P
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16LC77-04I/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04I/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04/PT](/photos/6/82/68251/c04-076_pt_tmb.jpg)
Part Number:
Description:
44 PIN, 14KB OTP, 368 RAM, 33 I/O,
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04I/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04I/PT](/photos/6/82/68251/c04-076_pt_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44TQFP
Manufacturer:
Microchip Technology
Datasheet:
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: