ce216_readme.txt

来自「串口通信模块C代码」· 文本 代码 · 共 46 行

TXT
46
字号
                     Readme File for Code Example:
               CE216 - 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 PIC24H device
5. Revision History


1. Code Example Description:
----------------------------

In this code examples, 256-word transmit buffer is tranmitted using SPI and received back in 
receive buffer. 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 the transmit ping-pong buffer.

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 + =
减小字号Ctrl + -
显示快捷键?