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

📄 p16demo.lst

📁 详细介绍了PIC16单片机的功能特点以及各个功能模块的使用方法和技巧
💻 LST
📖 第 1 页 / 共 5 页
字号:
0001ae   3420     RETLW     0x20                                                                                            
0001af   3420     RETLW     0x20                                                                                            
0001b0   3420     RETLW     0x20                                                                                            
0001b1   3450     RETLW     0x50           	dt	"Prd.=128 DC=128 "	;176                                                      E:\Burnon\Support\pic16\p16demo.asm
0001b2   3472     RETLW     0x72                                                                                            
0001b3   3464     RETLW     0x64                                                                                            
0001b4   342e     RETLW     0x2e                                                                                            
0001b5   343d     RETLW     0x3d                                                                                            
0001b6   3431     RETLW     0x31                                                                                            
0001b7   3432     RETLW     0x32                                                                                            
0001b8   3438     RETLW     0x38                                                                                            
0001b9   3420     RETLW     0x20                                                                                            
0001ba   3444     RETLW     0x44                                                                                            
0001bb   3443     RETLW     0x43                                                                                            
0001bc   343d     RETLW     0x3d                                                                                            
0001bd   3431     RETLW     0x31                                                                                            
0001be   3432     RETLW     0x32                                                                                            
0001bf   3438     RETLW     0x38                                                                                            
0001c0   3420     RETLW     0x20                                                                                            
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           start	                                                                           E:\Burnon\Support\pic16\p16demo.asm
0001c1   2022     CALL      0x22           	call LCDInit                                                                    E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
0001c2   1283     BCF       0x3,0x5        	banksel	T1CON			;Configure Timer1 for real time clock                           E:\Burnon\Support\pic16\p16demo.asm
0001c3   1303     BCF       0x3,0x6                                                                                         
0001c4   300f     MOVLW     0xf            	movlw	0x0F			;	start here for timer "warm-up"                                   E:\Burnon\Support\pic16\p16demo.asm
0001c5   0090     MOVWF     0x10           	movwf	T1CON                                                                     E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
0001c6   1683     BSF       0x3,0x5        	banksel	TXSTA			;initialize USART		                                             E:\Burnon\Support\pic16\p16demo.asm
0001c7   1303     BCF       0x3,0x6                                                                                         
0001c8   30a4     MOVLW     0xa4           	movlw	B'10100100'		;Master mode, 8-bit, Async, High speed                       E:\Burnon\Support\pic16\p16demo.asm
0001c9   0098     MOVWF     0x18           	movwf	TXSTA                                                                     E:\Burnon\Support\pic16\p16demo.asm
0001ca   3019     MOVLW     0x19           	movlw	.25			;9.6Kbaud @ 4MHz                                                    E:\Burnon\Support\pic16\p16demo.asm
0001cb   0099     MOVWF     0x19           	movwf	SPBRG                                                                     E:\Burnon\Support\pic16\p16demo.asm
0001cc   1283     BCF       0x3,0x5        	banksel	RCSTA                                                                   E:\Burnon\Support\pic16\p16demo.asm
0001cd   1303     BCF       0x3,0x6                                                                                         
0001ce   3090     MOVLW     0x90           	movlw	B'10010000'                                                               E:\Burnon\Support\pic16\p16demo.asm
0001cf   0098     MOVWF     0x18           	movwf	RCSTA                                                                     E:\Burnon\Support\pic16\p16demo.asm
                                           	                                                                                E:\Burnon\Support\pic16\p16demo.asm
0001d0   1683     BSF       0x3,0x5        	banksel	TRISC			;configure CCP1 module for buzzer                               E:\Burnon\Support\pic16\p16demo.asm
0001d1   1303     BCF       0x3,0x6                                                                                         
0001d2   1107     BCF       0x7,0x2        	bcf	TRISC,2                                                                     E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
0001d3   1283     BCF       0x3,0x5        	banksel	T2CON			;bank 0                                                         E:\Burnon\Support\pic16\p16demo.asm
0001d4   1303     BCF       0x3,0x6                                                                                         
0001d5   3005     MOVLW     0x5            	movlw	0x05			;postscale 1:1, prescaler 4, Timer2 ON                             E:\Burnon\Support\pic16\p16demo.asm
0001d6   0092     MOVWF     0x12           	movwf	T2CON                                                                     E:\Burnon\Support\pic16\p16demo.asm
                                           		                                                                               E:\Burnon\Support\pic16\p16demo.asm
0001d7   1605     BSF       0x5,0x4        	bsf	TRISA,4			;make switch RA4 an Input                                         E:\Burnon\Support\pic16\p16demo.asm
0001d8   1406     BSF       0x6,0x0        	bsf	TRISB,0			;make switch RB0 an Input                                         E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
                                           ;**************** STANDARD CODE MENU SELECTION *******************               E:\Burnon\Support\pic16\p16demo.asm
                                           			;Introduction                                                                 E:\Burnon\Support\pic16\p16demo.asm
0001d9   1283     BCF       0x3,0x5        	banksel	ptr_pos                                                                 E:\Burnon\Support\pic16\p16demo.asm
0001da   1303     BCF       0x3,0x6                                                                                         
0001db   3050     MOVLW     0x50           	movlw	.80			;send "Microchip" to LCD                                            E:\Burnon\Support\pic16\p16demo.asm
0001dc   00b0     MOVWF     0x30           	movwf	ptr_pos                                                                   E:\Burnon\Support\pic16\p16demo.asm
0001dd   23eb     CALL      0x3eb          	call	stan_char_1                                                                E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
0001de   3060     MOVLW     0x60           	movlw	.96			;send "PICDEM 2 PLUS" to LCD                                        E:\Burnon\Support\pic16\p16demo.asm
0001df   00b0     MOVWF     0x30           	movwf	ptr_pos                                                                   E:\Burnon\Support\pic16\p16demo.asm
0001e0   240e     CALL      0x40e          	call	stan_char_2                                                                E:\Burnon\Support\pic16\p16demo.asm
0001e1   243c     CALL      0x43c          	call	delay_1s		;delay for display                                               E:\Burnon\Support\pic16\p16demo.asm
0001e2   243c     CALL      0x43c          	call	delay_1s		;delay for display                                               E:\Burnon\Support\pic16\p16demo.asm
                                           menu                                                                             E:\Burnon\Support\pic16\p16demo.asm
                                           ;------------------ VOLT MEASUREMENT  ----------------------------               E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
0001e3   1e05     BTFSS     0x5,0x4        	btfss	scroll			;wait for RA4 release                                            E:\Burnon\Support\pic16\p16demo.asm
0001e4   29e3     GOTO      0x1e3          	goto	$-1		                                                                      E:\Burnon\Support\pic16\p16demo.asm
0001e5   1c06     BTFSS     0x6,0x0        	btfss	select			;wait for RB0 release                                            E:\Burnon\Support\pic16\p16demo.asm
0001e6   29e5     GOTO      0x1e5          	goto	$-1                                                                        E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
0001e7   1283     BCF       0x3,0x5        	banksel	ptr_pos			;Send "Voltmeter" to LCD                                      E:\Burnon\Support\pic16\p16demo.asm
0001e8   1303     BCF       0x3,0x6                                                                                         
0001e9   3000     MOVLW     0x0            	movlw	0x00                                                                      E:\Burnon\Support\pic16\p16demo.asm
0001ea   00b0     MOVWF     0x30           	movwf	ptr_pos                                                                   E:\Burnon\Support\pic16\p16demo.asm
0001eb   23eb     CALL      0x3eb          	call	stan_char_1                                                                E:\Burnon\Support\pic16\p16demo.asm
                                                                                                                            E:\Burnon\Support\pic16\p16demo.asm
0001ec   1283     BCF       0x3,0x5        	banksel	ptr_pos			;send "RA4=Next  RB0=Now" to lCD                              E:\Burnon\Support\pic16\p16demo.asm
0001ed   1303     BCF       0x3,0x6                                                                                         
0001ee   3040     MOVLW     0x40           	movlw	.64                                                                       E:\Burnon\Support\pic16\p16demo.asm
0001ef   00b0     MOVWF     0x30           	movwf	ptr_pos                                                                   E:\Burnon\Support\pic16\p16demo.asm
0001f0   240e     CALL      0x40e          	call	stan_char_2                                                                E:\Burnon\Support\pic16\p16demo.asm
                                           v_wait                                                                           E:\Burnon\Support\pic16\p16demo.asm
0001f1   1283     BCF       0x3,0x5        	banksel	PORTA			;bank 0                                                         E:\Burnon\Support\pic16\p16demo.asm
0001f2   1303     BCF       0x3,0x6                                                                                         
0001f3   1c06     BTFSS     0x6,0x0        	btfss	select			;voltmeter measurement ??                                        E:\Burnon\Support\pic16\p16demo.asm
0001f4   2a37     GOTO      0x237          	goto	voltmeter                                                                  E:\Burnon\Support\pic16\p16demo.asm
0001f5   1a05     BTFSC     0x5,0x4        	btfsc	scroll			;next mode ??                                                    E:\Burnon\Support\pic16\p16demo.asm
0001f6   29f1     GOTO      0x1f1          	goto	v_wait			;NO                                                               E:\Burnon\Support\pic16\p16demo.asm
0001f7   1e05     BTFSS     0x5,0x4        	btfss	scroll			;YES                                                             E:\Burnon\Support\pic16\p16demo.asm

⌨️ 快捷键说明

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