| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
DSPIC33FJ12MC02ESS bảng dữ liệu(PDF) 176 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
DSPIC33FJ12MC02ESS bảng dữ liệu(HTML) 176 Page - Microchip Technology |
|
176 / 284 page ![]() dsPIC33FJ12MC201/202 DS70265B-page 174 Preliminary © 2007 Microchip Technology Inc. 16.5 SPI Setup: Slave Mode To set up the SPI module for the Slave mode of operation: 1. Clear the SPIxBUF register. 2. If using interrupts: a) Clear the SPIxIF bit in the respective IFSn register. b) Set the SPIxIE bit in the respective IECn register. c) Write the SPIxIP bits in the respective IPCn register to set the interrupt priority. 3. Write the desired settings to the SPIxCON1 and SPIxCON2 registers with MSTEN (SPIxCON1<5>) = 0. 4. Clear the SMP bit. 5. If the CKE bit is set, then set the SSEN bit (SPIxCON1<7>) to enable the SSx pin. 6. Clear the SPIROV bit (SPIxSTAT<6>). 7. Enable SPI operation by setting the SPIEN bit (SPIxSTAT<15>). The SPI module generates an interrupt indicating completion of a byte or word transfer, as well as a separate interrupt for all SPI error conditions. FIGURE 16-1: SPI MODULE BLOCK DIAGRAM Internal Data Bus SDIx SDOx SSx SCKx SPIxSR bit 0 Shift Control Edge Select FCY Primary 1:1/4/16/64 Enable Prescaler Sync SPIxBUF Control Transfer Transfer Write SPIxBUF Read SPIxBUF 16 SPIxCON1<1:0> SPIxCON1<4:2> Master Clock Clock Control Secondary Prescaler 1:1 to 1:8 SPIxRXB SPIxTXB |
|
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 |
| 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 |