công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

PIC16F15213T-I/ST bảng dữ liệu(PDF) 253 Page - Microchip Technology

tên linh kiện PIC16F15213T-I/ST
Giải thích chi tiết về linh kiện  PIC16F15213/14/23/24/43/44 Low Pin Count Microcontrollers
PDF  439 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  MICROCHIP [Microchip Technology]
Trang chủ  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F15213T-I/ST bảng dữ liệu(HTML) 253 Page - Microchip Technology

Back Button PIC16F15213T-I/ST Datasheet HTML 249Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 250Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 251Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 252Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 253Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 254Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 255Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 256Page - Microchip Technology PIC16F15213T-I/ST Datasheet HTML 257Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 253 / 439 page
background image
• MSSP Address Register (SSPxADD)
• MSSP Shift (SSPSR) register (not directly accessible)
SSPxCON1 and SSPxSTAT are the control and status registers for SPI mode operation. The SSPxCON1 register is
readable and writable. The lower six bits of the SSPxSTAT are read-only. The upper two bits of the SSPxSTAT are
read/write.
One of the five SPI Host modes uses the SSPxADD value to determine the Baud Rate Generator clock frequency.
More information on the Baud Rate Generator is available in 25.3. Baud Rate Generator.
SSPSR is the shift register used for shifting data in and out. SSPxBUF provides indirect access to the SSPSR
register. SSPxBUF is the buffer register to which data bytes are written, and from which data bytes are read.
In receive operations, SSPSR and SSPxBUF together create a buffered receiver. When SSPSR receives a complete
byte, it is transferred to SSPxBUF and the SSPxIF interrupt is set.
During transmission, the SSPxBUF is not buffered. A write to SSPxBUF will write to both SSPxBUF and SSPSR.
25.1.2
SPI Mode Operation
When initializing the SPI, several options need to be specified. This is done by programming the appropriate control
bits (SSPxCON1[5:0] and SSPxSTAT[7:6]). These control bits allow the following to be specified:
• Host mode (SCK is the clock output)
• Client mode (SCK is the clock input)
• Clock Polarity (Idle state of SCK)
• Data Input Sample Phase (middle or end of data output time)
• Clock Edge (output data on rising/falling edge of SCK)
• Clock Rate (Host mode only)
• Client Select mode (Client mode only)
To enable the serial port, the SSP Enable (SSPEN) bit must be set. To reset or reconfigure SPI mode, clear the
SSPEN bit, re-initialize the SSPxCONy registers and then set the SSPEN bit. The SDI, SDO, SCK and SS serial port
pins are selected with the PPS controls. For the pins to behave as the serial port function, some must have their data
direction bits (in the TRIS register) appropriately programmed as follows:
• SDI must have the corresponding TRIS bit set
• SDO must have the corresponding TRIS bit cleared
• SCK (Host mode) must have the corresponding TRIS bit cleared
• SCK (Client mode) must have the corresponding TRIS bit set
• The RxyPPS and SSPxCLKPPS controls must select the same pin
• SS must have the corresponding TRIS bit set
Any serial port function that is not desired may be overridden by programming the corresponding data direction
(TRIS) register to the opposite value.
The MSSP consists of a Transmit/Receive Shift Register (SSPSR) and a buffer register (SSPxBUF). The SSPSR
shifts the data in and out of the device, MSb first. The SSPxBUF holds the data that was written to the SSPSR until
the received data is ready. Once the eight bits of data have been received, that byte is moved to the SSPxBUF
register. Then, the Buffer Full Status (BF) bit and the MSSP Interrupt Flag (SSPxIF) bit are set. This double-buffering
of the received data allows the next byte to start reception before reading the data that was just received. Any write
to the SSPxBUF register during transmission/reception of data will be ignored and the Write Collision Detect (WCOL)
bit will be set. User software must clear the WCOL bit to allow the following write(s) to the SSPxBUF register to
complete successfully.
When the application software is expecting to receive valid data, the SSPxBUF must be read before the next byte
of data to be transferred is written to the SSPxBUF. The BF bit indicates when SSPxBUF has been loaded with
the received data (transmission is complete). When the SSPxBUF is read, the BF bit is cleared. This data may be
irrelevant if the SPI is only a transmitter. The MSSP interrupt is used to determine when the transmission/reception
has completed. 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.
PIC16F15213/14/23/24/43/44
MSSP - Host Synchronous Serial Port Module
© 2020-2022 Microchip Technology Inc.
and its subsidiaries
Data Sheet
DS40002195E-page 253



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com