These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers abstract.h Source File

abstract.h

00001  ******************** (C) COPYRIGHT 2010 NXPSemiconductors *******************
00002  * @file    UART\DMA\abstract.txt 
00003  * @author  NXP MCU SW Application Team
00004  * @version 2.0
00005  * @date    
00006  * @brief   Description of the UART DMA example.
00007  ******************************************************************************
00008  * Software that is described herein is for illustrative purposes only
00009  * which provides customers with programming information regarding the
00010  * products. This software is supplied "AS IS" without any warranties.
00011  * NXP Semiconductors assumes no responsibility or liability for the
00012  * use of the software, conveys no license or title under any patent,
00013  * copyright, or mask work right to the product. NXP Semiconductors
00014  * reserves the right to make changes in the software without
00015  * notification. NXP Semiconductors also make no representation or
00016  * warranty that such application will be suitable for the specified
00017  * use without further testing or modification.
00018  ******************************************************************************
00019   
00020 @Example description:
00021     Purpose:
00022         This example describes how to use UART in DMA mode
00023     Process:
00024         UART0 is configured as the following:
00025             + Baudrate = 9600bps
00026             + 8 data bit
00027             + 1 Stop bit
00028             + None parity
00029         GPDMA channel 0 using to transmit the welcome message (the destination source is UART0 transmit pin)
00030         GPDMA channel 1 using to receive the character (the destination source is the UART0 receive pin)
00031         
00032         Note: If using this example to test with UART1, pls add conversion type (LPC_UART_TypeDef *)LPC_UART1
00033         because UART1 has different structure type
00034         Ex: UART_Send((LPC_UART_TypeDef *)LPC_UART1, menu1, sizeof(menu1), BLOCKING);
00035 
00036 @Directory contents:
00037     \EWARM: includes EWARM (IAR) project and configuration files
00038     \Keil:  includes RVMDK (Keil)project and configuration files 
00039     
00040     lpc17xx_libcfg.h: Library configuration file - include needed driver library for this example 
00041     makefile: Example's makefile (to build with GNU toolchain)
00042     uart_dma_test.c: Main program
00043 
00044 @How to run:
00045     Hardware configuration:     
00046         This example was tested on:
00047             Keil MCB1700 with LPC1768 vers.1
00048                 These jumpers must be configured as following:
00049                 - VDDIO: ON
00050                 - VDDREGS: ON 
00051                 - VBUS: ON
00052                 - Remain jumpers: OFF
00053             IAR LPC1768 KickStart vers.A
00054                 These jumpers must be configured as following:
00055                 - PWR_SEL: depend on power source
00056                 - DBG_EN : ON
00057                 - Remain jumpers: OFF
00058     
00059     Running mode:
00060         This example can run on RAM/ROM mode.
00061                     
00062         Note: If want to burn hex file to board by using Flash Magic, these jumpers need
00063         to be connected:
00064             - MCB1700 with LPC1768 ver.1:
00065                 + RST: ON
00066                 + ISP: ON
00067             - IAR LPC1768 KickStart vers.A:
00068                 + RST_E: ON
00069                 + ISP_E: ON
00070         
00071         (Please reference "LPC1000 Software Development Toolchain" - chapter 4 "Creating and working with
00072         LPC1000CMSIS project" for more information)
00073     
00074     Step to run:
00075         - Step 1: Build example.
00076         - Step 2: Burn hex file into board (if run on ROM mode)
00077         - Step 3: Connect UART0 on this board to COM port on your computer
00078         - Step 4: Configure hardware and serial display as above instruction 
00079         - Step 5: Run example, using Serial display to monitor the message and to send a charater to UART
00080 
00081         (Pls see "LPC17xx Example Description" document - chapter "Examples > UART > DMA"
00082         for more details)
00083         
00084 @Tip:
00085     - Open \EWARM\*.eww project file to run example on IAR
00086     - Open \RVMDK\*.uvproj project file to run example on Keil