| поискавой системы для электроныых деталей |
|
DSPIC33FJ12MC02ESS датащи(PDF) 176 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
DSPIC33FJ12MC02ESS датащи(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 |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |