PIC16C770-I/SO Microchip Technology, PIC16C770-I/SO Datasheet - Page 91

IC MCU OTP 2KX14 A/D PWM 20-SOIC

PIC16C770-I/SO

Manufacturer Part Number
PIC16C770-I/SO
Description
IC MCU OTP 2KX14 A/D PWM 20-SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C770-I/SO

Core Size
8-Bit
Program Memory Size
3.5KB (2K x 14)
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI
Number Of I /o
15
Program Memory Type
OTP
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 6x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (7.5mm Width)
Controller Family/series
PIC16C
No. Of I/o's
16
Ram Memory Size
256Byte
Cpu Speed
20MHz
No. Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
ISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMINGAC164028 - MODULE SKT PROMATEII 20SOIC/DIP309-1013 - ADAPTER 20-SOIC TO 20-DIP309-1012 - ADAPTER 20-SOIC TO 20-DIP
Eeprom Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Other names
PIC16C770I/SO
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 PIC16C770-I/SO