?? timer.lst
字號:
0049 04A6 00067 relay_off
00068
Warning[203]: Found opcode in column 1. (goto)
004A 0A54 00069 goto main21
004B 05A6 00070 main1 relay_on
Warning[203]: Found opcode in column 1. (movf)
004C 0228 00071 movf units, f
Warning[203]: Found opcode in column 1. (btfss)
004D 0743 00072 btfss STATUS, Z
Warning[203]: Found opcode in column 1. (goto)
004E 0A53 00073 goto main2
Warning[203]: Found opcode in column 1. (movlw)
004F 0C09 00074 movlw 9
Warning[203]: Found opcode in column 1. (movwf)
0050 0028 00075 movwf units
Warning[203]: Found opcode in column 1. (decf)
0051 00E9 00076 decf tens, f
Warning[203]: Found opcode in column 1. (goto)
0052 0A54 00077 goto main21
0053 00E8 00078 main2 decf units, f
00079 ;************** EXECUTED EVERY 100 MSEC *************
0054 090C 00080 main21 call read_keys
00081 ;** DISPLAY ROUTINE TO BE EXECUTED EVERY 500 MSEC **
00082 ;process display every 500 msec
00083 ;if unit key pressed increment unit display
00084 ;if tens key pressed increment tens display
00085 ;flash unit display's dec. pt. every second if units & tens
00086 ;not equal to zero i.e. indicate timer is active
00087 ;execute display routine in counter_100ms = 0 or 5
Warning[203]: Found opcode in column 1. (movf)
0055 020B 00088 movf counter_100ms, w
Warning[203]: Found opcode in column 1. (btfsc)
0056 0643 00089 btfsc STATUS, Z
Warning[203]: Found opcode in column 1. (goto)
0057 0A5B 00090 goto main3
Warning[203]: Found opcode in column 1. (xorlw)
0058 0F05 00091 xorlw 5
Warning[203]: Found opcode in column 1. (btfss)
0059 0743 00092 btfss STATUS, Z
Warning[203]: Found opcode in column 1. (goto)
005A 0A2D 00093 goto main
00094 ;if units_key pressed then inc units display between 0 thr. 9
00095 ;if tens_key pressed then inc tens display between 0 thr. 9
005B 0710 00096 main3 btfss digit_inc, units_inc
Warning[203]: Found opcode in column 1. (goto)
005C 0A63 00097 goto main4
Warning[203]: Found opcode in column 1. (bcf)
005D 0410 00098 bcf digit_inc, units_inc
00099 ;inc units display. if units = 10 then units = 0
Warning[203]: Found opcode in column 1. (incf)
MPASM 02.61 Released TIMER.ASM 3-26-2001 22:06:32 PAGE 7
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
005E 02A8 00100 incf units, f
Warning[203]: Found opcode in column 1. (movlw)
005F 0C0A 00101 movlw 10
Warning[203]: Found opcode in column 1. (xorwf)
0060 0188 00102 xorwf units, w
Warning[203]: Found opcode in column 1. (btfsc)
0061 0643 00103 btfsc STATUS, Z ;skip if not equal
Warning[203]: Found opcode in column 1. (clrf)
0062 0068 00104 clrf units
0063 0730 00105 main4 btfss digit_inc, tens_inc
Warning[203]: Found opcode in column 1. (goto)
0064 0A6B 00106 goto main5
Warning[203]: Found opcode in column 1. (bcf)
0065 0430 00107 bcf digit_inc, tens_inc
00108 ;inc tens display. if tens = 10 then tens = 0
Warning[203]: Found opcode in column 1. (incf)
0066 02A9 00109 incf tens, f
Warning[203]: Found opcode in column 1. (movlw)
0067 0C0A 00110 movlw 10
Warning[203]: Found opcode in column 1. (xorwf)
0068 0189 00111 xorwf tens, w
Warning[203]: Found opcode in column 1. (btfsc)
0069 0643 00112 btfsc STATUS, Z ;skip if not equal
Warning[203]: Found opcode in column 1. (clrf)
006A 0069 00113 clrf tens
00114 ;convert decimal in units & tens to decoded segment data
00115 ;for led display in scrtch1 & 2 for transmission
006B 0209 00116 main5 movf tens, w
Warning[203]: Found opcode in column 1. (call)
006C 0901 00117 call get_seg
Warning[203]: Found opcode in column 1. (movwf)
006D 0033 00118 movwf scrtch1
Warning[203]: Found opcode in column 1. (movf)
006E 0208 00119 movf units, w
Warning[203]: Found opcode in column 1. (call)
006F 0901 00120 call get_seg
Warning[203]: Found opcode in column 1. (movwf)
0070 0034 00121 movwf scrtch2
00122 ;flash (toggle) decimal point every 500ms if timer active
00123 ;i.e. if timer not equal to zero i.e. relay on, then flash
00124 ;decimal point else, do not to indicate relay off
Warning[203]: Found opcode in column 1. (movf)
0071 0209 00125 movf tens, w
Warning[203]: Found opcode in column 1. (iorwf)
0072 0108 00126 iorwf units, w
Warning[203]: Found opcode in column 1. (btfsc)
0073 0643 00127 btfsc STATUS, Z ;skip to flash dp
Warning[203]: Found opcode in column 1. (goto)
0074 0A7A 00128 goto main6 ;jmp if 0 to no flash
Warning[203]: Found opcode in column 1. (movf)
0075 022B 00129 movf counter_100ms, f
Warning[203]: Found opcode in column 1. (btfss)
0076 0743 00130 btfss STATUS, Z ;toggle-on dec pt if counter_100ms = 0
MPASM 02.61 Released TIMER.ASM 3-26-2001 22:06:32 PAGE 8
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
Warning[203]: Found opcode in column 1. (goto)
0077 0A7A 00131 goto main6 ;else jmp out to toggle-off
00132 ;flash dp of units display
Warning[203]: Found opcode in column 1. (movlw)
0078 0CFE 00133 movlw dec_pt
Warning[203]: Found opcode in column 1. (andwf)
0079 0174 00134 andwf scrtch2, f
00135
00136 ;transmit data from scrtch1 thr scrtch1 to display circuit (msb first).
007A 0C10 00137 main6 movlw 16 ;no of bit to tx
Warning[203]: Found opcode in column 1. (movwf)
007B 0032 00138 movwf scrtch0
007C 0374 00139 main61 rlf scrtch2, f ;check msb
Warning[203]: Found opcode in column 1. (rlf)
007D 0373 00140 rlf scrtch1, f
Warning[203]: Found opcode in column 1. (btfsc)
007E 0603 00141 btfsc STATUS, C ;data hi if cy=1 else lo
Warning[203]: Found opcode in column 1. (goto)
007F 0A82 00142 goto main62
Warning[203]: Found opcode in column 1. (bcf)
0080 0406 00143 data_lo
Warning[203]: Found opcode in column 1. (goto)
0081 0A83 00144 goto main63
0082 0506 00145 main62 data_hi
0083 0000 00146 main63 nop ;delay
Warning[203]: Found opcode in column 1. (nop)
0084 0000 00147 nop
Warning[203]: Found opcode in column 1. (bsf)
0085 0526 00148 clk_hi ;toggle clk to push data
Warning[203]: Found opcode in column 1. (nop)
0086 0000 00149 nop
Warning[203]: Found opcode in column 1. (nop)
0087 0000 00150 nop
Warning[203]: Found opcode in column 1. (bcf)
0088 0426 00151 clk_lo
Warning[203]: Found opcode in column 1. (nop)
0089 0000 00152 nop
Warning[203]: Found opcode in column 1. (nop)
008A 0000 00153 nop
Warning[203]: Found opcode in column 1. (decfsz)
008B 02F2 00154 decfsz scrtch0, f ;next bit
Warning[203]: Found opcode in column 1. (goto)
008C 0A7C 00155 goto main61
Warning[203]: Found opcode in column 1. (bsf)
008D 0546 00156 strobe_hi ;strobe data nop
Warning[203]: Found opcode in column 1. (nop)
008E 0000 00157 nop
Warning[203]: Found opcode in column 1. (bcf)
008F 0446 00158 strobe_lo
Warning[203]: Found opcode in column 1. (bcf)
0090 0406 00159 data_lo ;leave data lo
Warning[203]: Found opcode in column 1. (goto)
0091 0A2D 00160 goto main
MPASM 02.61 Released TIMER.ASM 3-26-2001 22:06:32 PAGE 9
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
Warning[205]: Found directive in column 1. (end)
00161 end
MPASM 02.61 Released TIMER.ASM 3-26-2001 22:06:32 PAGE 10
SYMBOL TABLE
LABEL VALUE
C 00000000
DC 00000001
F 00000001
FSR 00000004
GPIO 00000006
GPWUF 00000007
INDF 00000000
NOT_GPPU 00000006
NOT_GPWU 00000007
NOT_PD 00000003
NOT_TO 00000004
OSCCAL 00000005
PA0 00000005
PCL 00000002
PS0 00000000
PS1 00000001
PS2 00000002
PSA 00000003
STATUS 00000003
T0CS 00000005
T0SE 00000004
TMR0 00000001
W 00000000
Z 00000002
_CP_OFF 00000FFF
_CP_ON 00000FF7
_ExtRC_OSC 00000FFF
_IntRC_OSC 00000FFE
_LP_OSC 00000FFC
_MCLRE_OFF 00000FEF
_MCLRE_ON 00000FFF
_WDT_OFF 00000FFB
_WDT_ON 00000FFF
_XT_OSC 00000FFD
__12C508 00000001
b0 00000000
b1 00000001
b2 00000002
b3 00000003
b4 00000004
b5 00000005
b6 00000006
b7 00000007
clk_hi bsf GPIO, disp_clk
clk_lo bcf GPIO, disp_clk
counter_100ms 0000000B
counter_4ms 0000000A
data_hi bsf GPIO, disp_data
data_lo bcf GPIO, disp_data
dec_pt 000000FE
digit_inc 00000010
disp_clk 00000001
disp_data 00000000
MPASM 02.61 Released TIMER.ASM 3-26-2001 22:06:32 PAGE 11
SYMBOL TABLE
LABEL VALUE
disp_strobe 00000002
get_seg 00000001
gp0 00000000
gp1 00000001
gp2 00000002
gp3 00000003
gp4 00000004
gp5 00000005
init_ports 00000019
key 0000000F
main 0000002D
main1 0000004B
main2 00000053
main21 00000054
main3 0000005B
main4 00000063
main5 0000006B
main6 0000007A
main61 0000007C
main62 00000082
main63 00000083
newkey 0000000E
oldkey 0000000D
read_keys 0000000C
relay 00000005
relay_off bcf GPIO, relay
relay_on bsf GPIO, relay
scrtch0 00000012
scrtch1 00000013
scrtch2 00000014
seconds 0000000C
start 00000021
strobe_hi bsf GPIO, disp_strobe
strobe_lo bcf GPIO, disp_strobe
tens 00000009
tens_inc 00000001
tens_key 00000004
tmr_comp 00000011
units 00000008
units_inc 00000000
units_key 00000003
MPASM 02.61 Released TIMER.ASM 3-26-2001 22:06:32 PAGE 12
MEMORY USAGE MAP ('X' = Used, '-' = Unused)
0000 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
0040 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
0080 : XXXXXXXXXXXXXXXX XX-------------- ---------------- ----------------
All other memory blocks unused.
Program Memory Words Used: 146
Program Memory Words Free: 366
Errors : 0
Warnings : 140 reported, 0 suppressed
Messages : 0 reported, 0 suppressed
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -