?? ce116_readme.txt
字號:
Readme File for Code Example:
CE116 - SPI Loop-back
---------------------------------------------------
This file contains the following sections:
1. Code Example Description
2. Folder Contents
3. Suggested Development Resources
4. Reconfiguring the project for a different dsPIC33F device
5. Revision History
1. Code Example Description:
----------------------------
In this code examples, 2x16=32words is tranmitted using SPI and received back in ping-pong mode.
This operation happens contineously.
Note: SDI1/RF7 pin should be connected to SD01/RF8 externally.
void cfgSpi1Master(void)
This function configures SPI in master mode to transmit/receive 16-bit word.
void initSPIBuff(void)
This function pre-initialise the transmit data buffer and DMA RAM buffer for transmission
void cfgDma0SpiTx(void)
This function configures DMA channel 0 for SPI transmission. DMA is configured in ping-pong mode
with auto increment addressing for DMA memory read.
void cfgDma1SpiRx(void)
This function configures DMA channel 0 for SPI reception. DMA is configured in ping-pong mode
with auto increment addressing for DMA memory write.
void __attribute__((__interrupt__)) _DMA0Interrupt(void)
This interrupt routine handles transmit DMA interrupt
void __attribute__((__interrupt__)) _DMA1Interrupt(void)
This interrupt routine handles the receive ping-pong buffer.
2. Folder Contents:
-------------------
This folder contains the following sub-folders:
a. C:\Program Files\Microchip\MPLAB C30\support\gld
This folder will have the device GLD file, it is used for building the project.
This file was provided with the MPLAB
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -