⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ce116_readme.txt

📁 A loopback sample for using SPI in dspic
💻 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 + -