⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p16demo.lst

📁 详细介绍了PIC16单片机的功能特点以及各个功能模块的使用方法和技巧
💻 LST
📖 第 1 页 / 共 5 页
字号:
MP2COD 3.93, COFF to COD File Converter
Copyright (c) 2005 Microchip Technology Inc.
Listing File Generated: Fri May 27 10:17:28 2005


Address  Value    Disassembly              Source                                                                           File
-------  -------  -----------------------  -------------------------------------------------------------------------------  -----
                                           ;************************************************************************        E:\Burnon\Support\pic16\p16demo.asm
                                           ;*	Microchip Technology Inc. 2002					*                                          E:\Burnon\Support\pic16\p16demo.asm
                                           ;*	Assembler version: 2.0000					*                                               E:\Burnon\Support\pic16\p16demo.asm
                                           ;*	Filename: 							*                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;*		p16demo.asm (main routine)   				*                                           E:\Burnon\Support\pic16\p16demo.asm
                                           ;*	Dependents:							*                                                           E:\Burnon\Support\pic16\p16demo.asm
                                           ;*		p16lcd.asm						*                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;*		p16math.asm						*                                                           E:\Burnon\Support\pic16\p16demo.asm
                                           ;*		16f877.lkr						*                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;*	03/14/02							*                                                              E:\Burnon\Support\pic16\p16demo.asm
                                           ;*	Designed to run at 4MHz						*                                                E:\Burnon\Support\pic16\p16demo.asm
                                           ;* 	PICDEM 2 PLUS DEMO code. The following functions are included 	*             E:\Burnon\Support\pic16\p16demo.asm
                                           ;*	with this code:							*                                                       E:\Burnon\Support\pic16\p16demo.asm
                                           ;*		1. Voltmeter						*                                                          E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			The center tap of R16 is connected to RA0, the	*                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			A/D converter converts this analog voltage and	*                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			the result is displayed on the LCD in a range	*                             E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			from 0.00V - 5.00V.				*                                                    E:\Burnon\Support\pic16\p16demo.asm
                                           ;*		2. Buzzer						*                                                             E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			The Piezo buzzer is connected to RC2 and is	*                               E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			driven by the CCP1 module. The period and duty	*                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			cycle are adjustable on the fly through the LCD	*                           E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			and push-buttons.				*                                                      E:\Burnon\Support\pic16\p16demo.asm
                                           ;*		3. Temperature						*                                                        E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			A TC74 Serial Digital Thermal Sensor is used to	*                           E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			measure ambient temperature. The PIC and TC74	*                             E:\Burnon\Support\pic16\p16demo.asm
                                           ;* 			communicate using the MSSP module. The TC74 is	*                           E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			connected to the SDA & SCL I/O pins of the PIC	*                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			and functions as a slave. Every 2 seconds, the	*                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			temeperature is logged into the external EEPROM	*                           E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			in a specific memory location.			*                                          E:\Burnon\Support\pic16\p16demo.asm
                                           ;*		4. Clock						*                                                              E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			This function is a real-time clock. When the	*                              E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			mode is entered, time begins at 00:00:00. The 	*                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;*			user can set the time if desired.		*                                        E:\Burnon\Support\pic16\p16demo.asm
                                           ;************************************************************************        E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           	list p=16F877a                                                                  E:\Burnon\Support\pic16\p16demo.asm
                                           	#include p16F877a.inc                                                           E:\Burnon\Support\pic16\p16demo.asm
                                                   LIST                                                                     C:\Program Files\Microchip\MPASM Suite\p16F877a.inc
                                           ; P16F877A.INC  Standard Header File, Version 1.00    Microchip Technology, Inc. C:\Program Files\Microchip\MPASM Suite\p16F877a.inc
                                                   LIST                                                                     C:\Program Files\Microchip\MPASM Suite\p16F877a.inc
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
002007   3f39     ADDLW     0x39           	__CONFIG  _CP_OFF & _WDT_OFF & _XT_OSC & _LVP_OFF & _BODEN_OFF                  E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           	#define	scroll_dir	TRISA,4                                                      E:\Burnon\Support\pic16\p16demo.asm
                                           	#define	scroll		PORTA,4		;Push-button RA4 on PCB                                E:\Burnon\Support\pic16\p16demo.asm
                                           	#define	select_dir	TRISB,0		                                                    E:\Burnon\Support\pic16\p16demo.asm
                                           	#define	select		PORTB,0		;Push-button RB0 on PCB                                E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           	EXTERN	LCDInit, temp_wr, d_write, i_write, LCDLine_1, LCDLine_2                 E:\Burnon\Support\pic16\p16demo.asm
                                           	EXTERN	UMUL0808L, UDIV1608L, AARGB0, AARGB1, BARGB0                             E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           variables	UDATA 0x30                                                             E:\Burnon\Support\pic16\p16demo.asm
                                           ptr_pos		RES 1                                                                   E:\Burnon\Support\pic16\p16demo.asm
                                           ptr_count	RES 1                                                                  E:\Burnon\Support\pic16\p16demo.asm
                                           temp_1		RES 1                                                                    E:\Burnon\Support\pic16\p16demo.asm
                                           temp_2		RES 1                                                                    E:\Burnon\Support\pic16\p16demo.asm
                                           temp_3		RES 1                                                                    E:\Burnon\Support\pic16\p16demo.asm
                                           cmd_byte	RES 1                                                                   E:\Burnon\Support\pic16\p16demo.asm
                                           temperature	RES 1                                                                E:\Burnon\Support\pic16\p16demo.asm
                                           LSD		RES 1                                                                       E:\Burnon\Support\pic16\p16demo.asm
                                           MsD		RES 1                                                                       E:\Burnon\Support\pic16\p16demo.asm
                                           MSD		RES 1                                                                       E:\Burnon\Support\pic16\p16demo.asm
                                           seconds		RES 1                                                                   E:\Burnon\Support\pic16\p16demo.asm
                                           minutes		RES 1                                                                   E:\Burnon\Support\pic16\p16demo.asm
                                           hours		RES 1                                                                     E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           NumH		RES 1                                                                      E:\Burnon\Support\pic16\p16demo.asm
                                           NumL		RES 1                                                                      E:\Burnon\Support\pic16\p16demo.asm
                                           TenK		RES 1                                                                      E:\Burnon\Support\pic16\p16demo.asm
                                           Thou		RES 1                                                                      E:\Burnon\Support\pic16\p16demo.asm
                                           Hund		RES 1                                                                      E:\Burnon\Support\pic16\p16demo.asm
                                           Tens		RES 1                                                                      E:\Burnon\Support\pic16\p16demo.asm
                                           Ones		RES 1                                                                      E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           STARTUP CODE                                                                     E:\Burnon\Support\pic16\p16demo.asm
000000   0000     NOP                      	NOP                                                                             E:\Burnon\Support\pic16\p16demo.asm
000001   29c1     GOTO      0x1c1          	goto	start                                                                      E:\Burnon\Support\pic16\p16demo.asm
000002   0000     NOP                      	NOP                                                                             E:\Burnon\Support\pic16\p16demo.asm

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -