;/****************************************Copyright (c)************************************************** ;** Guangzou ZLG-MCU Development Co.,LTD. ;** graduate school ;** http://www.zlgmcu.com ;** ;**--------------File Info------------------------------------------------------------------------------- ;** File name: Startup.s ;** Last modified Date: 2004-09-17 ;** Last Version: 1.0 ;** Descriptions: The start up codes for LPC2100, including the initializing codes for the entry point of exceptions and the stacks of user tasks. ;** Every project should have a independent copy of this file for related modifications ;**------------------------------------------------------------------------------------------------------ ;** Created by: Chenmingji ;** Created date: 2004-02-02 ;** Version: 1.0 ;** Descriptions: The original version ;** ;**------------------------------------------------------------------------------------------------------ ;** Modified by: Chenmingji ;** Modified date: 2004-09-17 ;** Version: 1.01 ;** Descriptions: Modified the bus setting to adapt for many common situations ;** ;**------------------------------------------------------------------------------------------------------ ;** Modified by: Chenmingji ;** Modified date: 2004-09-17 ;** Version: 1.02 ;** Descriptions: Added codes to support the enciphering of the chip ;** ;**------------------------------------------------------------------------------------------------------ ;** Modified by: Chenmingji ;** Modified date: 2004-09-17 ;** Version: 1.04 ;** Descriptions: Renewed the template, added codes to support more compilers ;** ;**------------------------------------------------------------------------------------------------------ ;** Modified by: ;** Modified date: ;** Version: ;** Descriptions: ;** ;********************************************************************************************************/
INCLUDE LPC2294.INC ; IMPORT The Head File 引入头文件
;The imported labels ;引入的外部标号在这声明 IMPORT MAIN ;主程序
;/********************************************************************************************************* ;** unction name 函数名称: ResetInit ;** Descriptions 功能描述: RESET 复位入口 ;** input parameters 输 入: None 无 ;** Returned value 输 出 : None 无 ;** Used global variables 全局变量: None 无 ;** Calling modules 调用模块: None 无 ;** ;** Created by 作 者: Chenmingji 陈明计 ;** Created Date 日 期: 2004/02/02 2004年2月2日 ;**------------------------------------------------------------------------------------------------------- ;** Modified by 修 改: Chenmingji 陈明计 ;** Modified date 日 期: 2004/02/02 2004年3月3日 ;**------------------------------------------------------------------------------------------------------- ;********************************************************************************************************/ ResetInit
B MAIN
;/********************************************************************************************************* ;** unction name 函数名称: CrpData ;** Descriptions 功能描述: encrypt the chip ;** input parameters 输 入: None 无 ;** Returned value 输 出 : None 无 ;** Used global variables 全局变量: None 无 ;** Calling modules 调用模块: None 无 ;** ;** Created by 作 者: Chenmingji 陈明计 ;** Created Date 日 期: 2004/03/27 2004年3月27日 ;**------------------------------------------------------------------------------------------------------- ;** Modified by 修 改: ;** Modified date 日 期: ;**------------------------------------------------------------------------------------------------------- ;********************************************************************************************************/ IF :DEF: EN_CRP IF . >= 0x1fc INFO 1,"\nThe data at 0x000001fc must be 0x87654321.\nPlease delete some source before this line." ENDIF CrpData WHILE . < 0x1fc NOP WEND CrpData1 DCD 0x87654321 ;/*When the Data is 为0x87654321,user code be protected. 当此数为0x87654321时,用户程序被保护 */ ENDIF END ;/********************************************************************************************************* ;** End Of File ;********************************************************************************************************/
{led.s}
;/****************************************Copyright (c)************************************************** ;** Guangzou ZLG-MCU Development Co.,LTD. ;** graduate school ;** http://www.zlgmcu.com ;** ;**--------------File Info------------------------------------------------------------------------------- ;** File name: main.s ;** Last modified Date: 2004-09-16 ;** Last Version: 1.0 ;** Descriptions: The main() function example template ;** ;**------------------------------------------------------------------------------------------------------ ;** Created by: Chenmingji ;** Created date: 2004-09-16 ;** Version: 1.0 ;** Descriptions: The original version ;** ;**------------------------------------------------------------------------------------------------------ ;** Modified by: ;** Modified date: ;** Version: ;** Descriptions: ;** ;********************************************************************************************************/ INCLUDE LPC2294.INC ; Include the head file 引入头文件
LEDCON EQU 0x00070000
;声明MAIN函数 ;Export MAIN functon EXPORT MAIN ;MAIN Function主程序