📄 ce214_readme.txt
字号:
Readme File for Code Example:
CE214 - UART 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-byte transmit buffer is tranmitted using UART and received back in
receive buffer. This operation happens contineously.
void cfgUart1(void)
This function configures UART in loop-back mode with following settings viz., 8-data bits, 1-stop
bit and no parity.
void initUartBuff(void)
This function pre-initialise the transmit data buffer and DMA RAM buffer for transmission
void cfgDma0UartTx(void)
This function configures DMA channel 0 for UART transmission. DMA is configured in ping-pong mode
with auto increment addressing for DMA memory read.
void cfgDma1UartRx(void)
This function configures DMA channel 0 for UART 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -