PIC16LC717-E/SO Microchip Technology, PIC16LC717-E/SO Datasheet - Page 73
![IC MCU OTP 2KX14 A/D PWM 18SOIC](/photos/6/76/67656/150-18-soic_sml.jpg)
PIC16LC717-E/SO
Manufacturer Part Number
PIC16LC717-E/SO
Description
IC MCU OTP 2KX14 A/D PWM 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Specifications of PIC16LC717-E/SO
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
3.5KB (2K 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 6x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
18-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Other names
PIC16LC717E/SO
- Current page: 73 of 220
- Download datasheet (4Mb)
When the application software is expecting to receive
valid data, the SSPBUF should be read before the next
byte of data to transfer is written to the SSPBUF. Buffer
full bit, BF (SSPSTAT<0>), indicates when the SSP-
BUF has been loaded with the received data (transmis-
sion is complete). When the SSPBUF is read, bit BF is
cleared. This data may be irrelevant if the SPI is only a
transmitter. Generally the MSSP Interrupt is used to
determine when the transmission/reception has com-
pleted. The SSPBUF must be read and/or written. If the
interrupt method is not going to be used, then software
polling can be done to ensure that a write collision does
not occur. Example 9-1 shows the loading of the SSP-
BUF (SSPSR) for data transmission.
EXAMPLE 9-1:
The SSPSR is not directly readable or writable, and
can only be accessed by addressing the SSPBUF reg-
ister.
(SSPSTAT) indicates the various status conditions.
FIGURE 9-2:
LOOP BTFSS SSPSTAT, BF
2002 Microchip Technology Inc.
Additionally, the MSSP STATUS register
BSF
GOTO
BCF
MOVF
MOVWF RXDATA
MOVF
MOVWF SSPBUF
STATUS, RP0
LOOP
STATUS, RP0
SSPBUF, W
TXDATA, W
SPI Master SSPM<3:0> = 00xxb
MSb
Loading the SSPBUF
(SSPSR) Register
SPI MASTER/SLAVE CONNECTION
PROCESSOR 1
Serial Input Buffer
Shift Register
(SSPBUF)
(SSPSR)
;Specify Bank 1
;Has data been
;received
;(xmit complete)?
;No
;Specify Bank 0
;Save SSPBUF...
;...in user RAM
;Get next TXDATA
;New data to xmit
LSb
Advance Information
SDO
SCK
SDI
Serial Clock
9.1.2
To enable the serial port, MSSP Enable bit, SSPEN
(SSPCON<5>) must be set. To reset or reconfigure SPI
mode, clear bit SSPEN, re-initialize the SSPCON reg-
isters, and then set bit SSPEN. This configures the
SDI, SDO, SCK and SS pins as serial port pins. For the
pins to behave as the serial port function, some must
have their data direction bits (in the TRIS register)
appropriately programmed. That is:
• SDI is automatically controlled by the SPI module
• SDO must have TRISB<5> cleared
• SCK (Master mode) must have TRISB<2>
• SCK (Slave mode) must have TRISB<2> set
• SS must have TRISB<1> set, and ANSEL<5>
Any serial port function that is not desired may be over-
ridden by programming the corresponding data direc-
tion (TRIS) register to the opposite value.
9.1.3
Figure 9-2 shows a typical connection between two
microcontrollers. The master controller (Processor 1)
initiates the data transfer by sending the SCK signal.
Data is shifted out of both shift registers on their pro-
grammed clock edge, and latched on the opposite
edge of the clock. Both processors should be pro-
grammed to same Clock Polarity (SSPCON<4>), then
both controllers would send and receive data at the
same time. Whether the data is meaningful (or dummy
data) depends on the application software. This leads
to three scenarios for data transmission:
• Master sends data — Slave sends dummy data
• Master sends data — Slave sends data
• Master sends dummy data — Slave sends data
cleared
cleared
PIC16C717/770/771
SDO
SCK
SDI
ENABLING SPI I/O
TYPICAL CONNECTION
SPI Slave SSPM<3:0> = 010xb
MSb
Serial Input Buffer
Shift Register
PROCESSOR 2
(SSPBUF)
(SSPSR)
LSb
DS41120B-page 71
Related parts for PIC16LC717-E/SO
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16LC71-04I/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 1KX14 A/D 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC71-04I/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 1KX14 A/D 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC71-04/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 1KX14 A/D 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC71-04/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 1KX14 A/D 18DIP
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:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: