PIC16C770 Datasheet

  • PIC16C770

  • 18/20-Pin, 8-Bit CMOS Microcontrollers with 10/12-bit A/D

  • 3585.57KB

  • 220页

  • MICROCHIP

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC16C717/770/771
9.1.5
SLAVE MODE
In slave mode, the data is transmitted and received as
the external clock pulses appear on SCK. When the
last bit is latched the interrupt flag bit SSPIF (PIR1<3>)
is set.
While in slave mode, the external clock is supplied by
the external clock source on the SCK pin. This external
clock must meet the minimum high and low times as
specified in the electrical specifications.
While in sleep mode, the slave can transmit/receive
data. When a byte is received, the device will wake-up
from sleep.
9.1.6
SLAVE SELECT SYNCHRONIZATION
SDO pin is no longer driven, even if in the middle of
a transmitted byte, and becomes a floating output.
External pull-up/ pull-down resistors may be desirable,
depending on the application.
Note 1:
When the SPI module is in Slave Mode
with SS pin control enabled, (SSP-
CON<3:0> =
0100)
the SPI module will
reset if the SS pin is set to V
DD
.
2:
If the SPI is used in Slave Mode with
CKE = 鈥?鈥? then SS pin control must be
enabled.
When the SPI module resets, the bit counter is forced
to 0. This can be done by either forcing the SS pin to a
high level or clearing the SSPEN bit.
To emulate two-wire communication, the SDO pin can
be connected to the SDI pin. When the SPI needs to
operate as a receiver, the SDO pin can be configured
as an input. This disables transmissions from the SDO.
The SDI can always be left as an input (SDI function)
since it cannot create a bus conflict.
The SS pin allows a synchronous slave mode. The
SPI must be in slave mode with SS pin control
enabled (SSPCON<3:0> =
0100).
The pin must not
be driven low for the SS pin to function as an input.
TRISB<1> must be set. When the SS pin is low,
transmission and reception are enabled and the
SDO pin is driven. When the SS pin goes high, the
FIGURE 9-4:
SS
SLAVE SYNCHRONIZATION WAVEFORM
SCK
(CKP = 0
CKE = 0)
SCK
(CKP = 1
CKE = 0)
Write to
SSPBUF
SDO
bit7
bit6
bit7
bit0
SDI
(SMP = 0)
Input
Sample
(SMP = 0)
SSPIF
Interrupt
Flag
SSPSR to
SSPBUF
bit0
bit7
bit7
Next Q4 cycle
after Q2脴
DS41120A-page 74
Advanced Information
1999 Microchip Technology Inc.

PIC16C770 PDF文件相关型号

PIC16C771

PIC16C770相关型号PDF文件下载

您可能感兴趣的PDF文件资料

热门IC型号推荐

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!