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    SysTick\10ms_base\abstract.txt 
00003  * @author  NXP MCU SW Application Team
00004  * @version 2.0
00005  * @date    
00006  * @brief   Description of the SysTick base 10ms 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 configure System Tick timer to generate 
00023         interrupt each 10ms
00024     Process:
00025         In this example, System Tick timer is clocked internal by the CPU clock
00026         In this case, CPU clock = cclk = 100MHz
00027         System Tick timer configure:
00028             - time interval = 10ms
00029             - Enable System Tick interrupt
00030         After each 10ms, System Tick will generate interrupt, interrupt service routine
00031         'SysTick_Handler( )' will be invoke and toggle P0.0 pin.
00032         Use oscilloscope to observe signal on P0.0 and measure time between falling and rising 
00033         edge, it would be: 10ms.
00034                     
00035 @Directory contents:
00036     \EWARM: includes EWARM (IAR) project and configuration files
00037     \Keil:  includes RVMDK (Keil)project and configuration files 
00038      
00039     lpc17xx_libcfg.h: Library configuration file - include needed driver library for this example 
00040     makefile: Example's makefile (to build with GNU toolchain)
00041     10ms_base.c: Main program
00042 
00043 @How to run:
00044     Hardware configuration:     
00045         This example was tested only on:
00046             Keil MCB1700 with LPC1768 vers.1
00047                 These jumpers must be configured as following:
00048                 - VDDIO: ON
00049                 - VDDREGS: ON 
00050                 - VBUS: ON
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                 
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, observe System Tick operation via P0.0 signal
00079             
00080         (Pls see "LPC17xx Example Description" document - chapter "Examples > SysTick > 10ms_base"
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