DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16C64AT-10/JW データシートの表示(PDF) - Microchip Technology

部品番号
コンポーネント説明
メーカー
PIC16C64AT-10/JW
Microchip
Microchip Technology 
PIC16C64AT-10/JW Datasheet PDF : 336 Pages
First Prev 81 82 83 84 85 86 87 88 89 90 Next Last
PIC16C6X
Applicable Devices
61 62 62A R62 63 R63 64 64A R64 65 65A R65 66 67
The SS pin allows a synchronous slave mode. The
SPI must be in slave mode (SSPCON<3:0> = 04h)
and the TRISA<5> bit must be set the for synchro-
nous slave mode to be enabled. When the SS pin is
low, transmission and reception are enabled and
the SDO pin is driven. When the SS pin goes high,
the SDO pin is no longer driven, even if in the mid-
dle of a transmitted byte, and becomes a floating
output. If the SS pin is taken low without resetting
SPI mode, the transmission will continue from the
point at which it was taken high. External pull-up/
pull-down resistors may be desirable, depending on the
application.
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.
FIGURE 11-5: SPI MODE TIMING, MASTER MODE OR SLAVE MODE W/O SS CONTROL
SCK
(CKP = 0)
SCK
(CKP = 1)
SDO
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
SDI
bit7
bit0
SSPIF
FIGURE 11-6: SPI MODE TIMING, SLAVE MODE WITH SS CONTROL
SS
SCK
(CKP = 0)
SCK
(CKP = 1)
SDO
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
SDI
bit7
bit0
SSPIF
TABLE 11-1: REGISTERS ASSOCIATED WITH SPI OPERATION
Address Name
Bit 7
Bit 6 Bit 5 Bit 4 Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
Value on
all other
Resets
0Bh,8Bh INTCON
0Ch
PIR1
8Ch
PIE1
GIE
PSPIF(2)
PSPIE(2)
PEIE
(3)
(3)
T0IE
RCIF(1)
RCIE(1)
INTE
TXIF(1)
TXIE(1)
RBIE
SSPIF
SSPIE
T0IF INTF RBIF 0000 000x
CCP1IF TMR2IF TMR1IF 0000 0000
CCP1IE TMR2IE TMR1IE 0000 0000
0000 000u
0000 0000
0000 0000
13h
SSPBUF Synchronous Serial Port Receive Buffer/Transmit Register
xxxx xxxx uuuu uuuu
14h
SSPCON WCOL SSPOV SSPEN CKP SSPM3 SSPM2 SSPM1 SSPM0 0000 0000 0000 0000
85h
TRISA
PORTA Data Direction Register
--11 1111 --11 1111
87h
TRISC PORTC Data Direction Register
1111 1111 1111 1111
94h
SSPSTAT
D/A
P
S
R/W
UA
BF --00 0000 --00 0000
Legend:
Note 1:
2:
3:
x = unknown, u = unchanged, - = unimplemented locations read as '0'. Shaded cells are not used by SSP module in SPI
mode.
These bits are associated with the USART which is implemented on the PIC16C63/R63/65/65A/R65 only.
PSPIF and PSPIE are reserved on the PIC16C62/62A/R62/63/R63, always maintain these bits clear.
PIR1<6> and PIE1<6> are reserved, always maintain these bits clear.
DS30234D-page 88
© 1997 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]