These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!
abstract.h
00001 ******************** (C) COPYRIGHT 2010 NXPSemiconductors ******************* 00002 * @file DAC\DMA\abstract.txt 00003 * @author NXP MCU SW Application Team 00004 * @version 2.0 00005 * @date 00006 * @brief Description of the DAC 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 DMA to transfer data to DAC peripheral 00023 Process: 00024 DAC will be initialized with maximum current is 700uA. This allows a maximum update rate of 1Mhz 00025 Formula for ouput voltage on AOUT is: 00026 AOUT = VALUE x ((Vrefp - Vrefn)/1024)+Vrefn 00027 in which: 00028 - Vrefp: tied to VDD(3.3V) 00029 - Vrefn: tied to Vss 00030 00031 GPDMA channel 0 is configured in this example. 00032 GPDMA channel 0 will tranfer "dac_value" to DAC peripheral. DAC updated values have range 00033 from 0 to 0x3FF. So AOUT ouput voltage will change from: Vss to VDD. 00034 00035 Observe AOUT(P0.26) signal by oscilloscope. 00036 00037 @Directory contents: 00038 \EWARM: includes EWARM (IAR) project and configuration files 00039 \Keil: includes RVMDK (Keil)project and configuration files 00040 00041 lpc17xx_libcfg.h: Library configuration file - include needed driver library for this example 00042 makefile: Example's makefile (to build with GNU toolchain) 00043 dac_dma.c: Main program 00044 00045 @How to run: 00046 Hardware configuration: 00047 This example was tested on: 00048 Keil MCB1700 with LPC1768 vers.1 00049 These jumpers must be configured as following: 00050 - VDDIO: ON 00051 - VDDREGS: ON 00052 - VBUS: ON 00053 - Remain jumpers: OFF 00054 IAR LPC1768 KickStart vers.A 00055 These jumpers must be configured as following: 00056 - PWR_SEL: depend on power source 00057 - DBG_EN : ON 00058 - Remain jumpers: OFF 00059 00060 00061 Running mode: 00062 This example can run on RAM/ROM mode. 00063 00064 Note: If want to burn hex file to board by using Flash Magic, these jumpers need 00065 to be connected: 00066 - MCB1700 with LPC1768 ver.1: 00067 + RST: ON 00068 + ISP: ON 00069 - IAR LPC1768 KickStart vers.A: 00070 + RST_E: ON 00071 + ISP_E: ON 00072 00073 (Please reference "LPC1000 Software Development Toolchain" - chapter 4 "Creating and working with 00074 LPC1000CMSIS project" for more information) 00075 00076 Step to run: 00077 - Step 1: Build example. 00078 - Step 2: Burn hex file into board (if run on ROM mode) 00079 - Step 3: Configure hardware as above instruction 00080 - Step 4: Run example and observe AOUT(P0.26) signal by oscilloscope 00081 00082 (Pls see "LPC17xx Example Description" document - chapter "Examples > DAC > DMA" 00083 for more details) 00084 @Tip: 00085 - Open \EWARM\*.eww project file to run example on IAR 00086 - Open \RVMDK\*.uvproj project file to run example on Keil
Generated on Tue Jul 12 2022 17:28:07 by 1.7.2