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    DAC\Speaker\abstract.txt 
00003  * @author  NXP MCU SW Application Team
00004  * @version 2.0
00005  * @date    
00006  * @brief   Description of the DAC Speaker 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 test DAC through speaker
00023     Process:
00024         DAC will be initialized with maximum current is 700uA. 
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 GND
00030         The DAC peripheral will generate the sin tone, in which will increase step by step to max and 
00031         reduce to 0 and continue to increase to max again in the same frequency continuously. 
00032         We are able to hear the tone from the speaker for many cycles.
00033             
00034 @Directory contents:
00035     \EWARM: includes EWARM (IAR) project and configuration files
00036     \Keil:  includes RVMDK (Keil)project and configuration files 
00037     
00038     lpc17xx_libcfg.h: Library configuration file - include needed driver library for this example 
00039     makefile: Example's makefile (to build with GNU toolchain)
00040     dac_speaker.c: Main program
00041 
00042 @How to run:
00043     Hardware configuration:     
00044         This example was tested on:
00045             Keil MCB1700 with LPC1768 vers.1
00046                 These jumpers must be configured as following:
00047                 - VDDIO: ON
00048                 - VDDREGS: ON 
00049                 - VBUS: ON
00050                 - SPK: ON (speaker)
00051                 - Remain jumpers: OFF
00052             IAR LPC1768 KickStart vers.A
00053                 These jumpers must be configured as following:
00054                 - PWR_SEL: depend on power source
00055                 - DBG_EN : ON
00056                 - Remain jumpers: OFF
00057                 Listen through headphone port
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: Configure hardware as above instruction 
00078         - Step 4: Run example, hear sound from speaker/headphone and observe AOUT signal (P0.26) by oscilloscope
00079         
00080         (Pls see "LPC17xx Example Description" document - chapter "Examples > DAC > Speaker"
00081         for more details)
00082                 
00083 @Tip:
00084     - Open \EWARM\*.eww project file to run example on IAR
00085     - Open \RVMDK\*.uvproj project file to run example on Keil