📄 cc1020.lst
字号:
Warning[207]: Found label after column 1. (cc1020_vga2)
00000012 00163 cc1020_vga2 equ 12h
Warning[207]: Found label after column 1. (cc1020_vga3)
MPASM 03.20.02 Released CC1020.ASM 10-20-2003 9:36:11 PAGE 5
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00000013 00164 cc1020_vga3 equ 13h
Warning[207]: Found label after column 1. (cc1020_vga4)
00000014 00165 cc1020_vga4 equ 14h
Warning[207]: Found label after column 1. (cc1020_lock_reg)
00000015 00166 cc1020_lock_reg equ 15h
Warning[207]: Found label after column 1. (cc1020_frontend)
00000016 00167 cc1020_frontend equ 16h
Warning[207]: Found label after column 1. (cc1020_analog)
00000017 00168 cc1020_analog equ 17h
Warning[207]: Found label after column 1. (cc1020_buff_swing)
00000018 00169 cc1020_buff_swing equ 18h
Warning[207]: Found label after column 1. (cc1020_buff_curr)
00000019 00170 cc1020_buff_curr equ 19h
Warning[207]: Found label after column 1. (cc1020_pll_bw)
0000001A 00171 cc1020_pll_bw equ 1ah
Warning[207]: Found label after column 1. (cc1020_calibrate)
0000001B 00172 cc1020_calibrate equ 1bh
Warning[207]: Found label after column 1. (cc1020_pa_power)
0000001C 00173 cc1020_pa_power equ 1ch
Warning[207]: Found label after column 1. (cc1020_match)
0000001D 00174 cc1020_match equ 1dh
Warning[207]: Found label after column 1. (cc1020_phase_comp)
0000001E 00175 cc1020_phase_comp equ 1eh
Warning[207]: Found label after column 1. (cc1020_gain_comp)
0000001F 00176 cc1020_gain_comp equ 1fh
Warning[207]: Found label after column 1. (cc1020_powerdown)
00000020 00177 cc1020_powerdown equ 20h
Warning[207]: Found label after column 1. (cc1020_test1)
00000021 00178 cc1020_test1 equ 21h
Warning[207]: Found label after column 1. (cc1020_test2)
00000022 00179 cc1020_test2 equ 22h
Warning[207]: Found label after column 1. (cc1020_test3)
00000023 00180 cc1020_test3 equ 23h
Warning[207]: Found label after column 1. (cc1020_test4)
00000024 00181 cc1020_test4 equ 24h
Warning[207]: Found label after column 1. (cc1020_test5)
00000025 00182 cc1020_test5 equ 25h
Warning[207]: Found label after column 1. (cc1020_test6)
00000026 00183 cc1020_test6 equ 26h
Warning[207]: Found label after column 1. (cc1020_test7)
00000027 00184 cc1020_test7 equ 27h
Warning[207]: Found label after column 1. (cc1020_status)
00000040 00185 cc1020_status equ 40h
Warning[207]: Found label after column 1. (cc1020_reset_done)
00000041 00186 cc1020_reset_done equ 41h
Warning[207]: Found label after column 1. (cc1020_rssi)
00000042 00187 cc1020_rssi equ 42h
Warning[207]: Found label after column 1. (cc1020_afc)
00000043 00188 cc1020_afc equ 43h
Warning[207]: Found label after column 1. (cc1020_gauss_fil)
00000044 00189 cc1020_gauss_fil equ 44h
Warning[207]: Found label after column 1. (cc1020_status1)
00000045 00190 cc1020_status1 equ 45h
MPASM 03.20.02 Released CC1020.ASM 10-20-2003 9:36:11 PAGE 6
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
Warning[207]: Found label after column 1. (cc1020_status2)
00000046 00191 cc1020_status2 equ 46h
Warning[207]: Found label after column 1. (cc1020_status3)
00000047 00192 cc1020_status3 equ 47h
Warning[207]: Found label after column 1. (cc1020_status4)
00000048 00193 cc1020_status4 equ 48h
Warning[207]: Found label after column 1. (cc1020_status5)
00000049 00194 cc1020_status5 equ 49h
Warning[207]: Found label after column 1. (cc1020_status6)
0000004A 00195 cc1020_status6 equ 4ah
Warning[207]: Found label after column 1. (cc1020_status7)
0000004B 00196 cc1020_status7 equ 4bh
00197
00198
00199 ;************************************
0000 00200 org 000h
0000 0025 00201 movwf osccal
0001 0A10 00202 goto main
00203 ;*********************************************************************
00204 ;**** the nop is uniform to address 010h of rom
0002 0000 00205 nop
0003 0000 00206 nop
0004 0000 00207 nop
0005 0000 00208 nop
0006 00209 get_id
0006 0219 00210 movfw id_cont ; id number to w
Message[305]: Using default destination of 1 (file).
0007 01E2 00211 addwf pcl ; add w to pc
0008 0812 00212 retlw 012h ; the id number can alter at program mcu
0009 08AA 00213 retlw 0aah
000A 08AA 00214 retlw 0aah
00215 ;========================================================================
0010 00216 org 010h
0010 00217 main
0010 0C04 00218 movlw d'4'
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0011 0033 00219 movwf r3
0012 0C3F 00220 movlw b'00111111'
0013 0006 00221 tris portb
0014 0206 00222 movf portb,w ; read key value B'00010011'
0015 0E13 00223 andlw b'00010011' ;pb.0 ,pb.1, pb.4
0016 002C 00224 movwf temp_buf
0017 0F13 00225 xorlw b'00010011' ; key join pin 3,1,0
0018 0643 00226 skpnz ; have change skip next
0019 0A4F 00227 goto next_block
001A 0C03 00228 movlw b'00000011'
001B 008C 00229 subwf temp_buf,w
001C 0743 00230 btfss status,z
001D 0A4F 00231 goto next_block
001E 00232 qc_mode:
001E 0952 00233 call resetcc1020
001F 095E 00234 call setupcc1020all
0020 09C5 00235 call single_calibration
MPASM 03.20.02 Released CC1020.ASM 10-20-2003 9:36:11 PAGE 7
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
0021 00236 if_keyup:
0021 0206 00237 movf portb,w
0022 0E13 00238 andlw b'00010011'
0023 002C 00239 movwf temp_buf
0024 0C13 00240 movlw b'00010011'
0025 008C 00241 subwf temp_buf,w
0026 0703 00242 skpc
0027 0A21 00243 goto if_keyup
00244
0028 00245 if_keypress:
0028 0206 00246 movf portb,w
0029 0E13 00247 andlw b'00010011'
002A 002C 00248 movwf temp_buf
002B 0C13 00249 movlw b'00010011'
002C 008C 00250 subwf temp_buf,w
002D 0643 00251 btfsc status,z
002E 0A28 00252 goto if_keypress
00253
002F 0C12 00254 movlw b'00010010'
0030 008C 00255 subwf temp_buf,w
0031 0743 00256 btfss status,z ;up key press skip
0032 0A3F 00257 goto if_downkey
0033 0C06 00258 movlw cc1020_freq_0a
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0034 0035 00259 movwf addr_data
0035 09F9 00260 call configure_read
00261
0036 0C02 00262 movlw 02h
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0037 01F7 00263 addwf read_data,f
0038 0C06 00264 movlw cc1020_freq_0a
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0039 0035 00265 movwf addr_data
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
003A 0217 00266 movf read_data,w
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
003B 0034 00267 movwf config_data
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
003C 003E 00268 movwf save_freq0a_buf
003D 099A 00269 call configure_write
003E 0A21 00270 goto if_keyup
003F 00271 if_downkey:
003F 0C11 00272 movlw b'00010001'
0040 008C 00273 subwf temp_buf,w
0041 0743 00274 btfss status,z ;the result is zero z=1 down key press skip
0042 0A4F 00275 goto enter_key
0043 0C06 00276 movlw cc1020_freq_0a
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0044 0035 00277 movwf addr_data
0045 09F9 00278 call configure_read
00279
0046 0C02 00280 movlw 02h
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
MPASM 03.20.02 Released CC1020.ASM 10-20-2003 9:36:11 PAGE 8
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
0047 00B7 00281 subwf read_data,f
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0048 003E 00282 movwf save_freq0a_buf
0049 0C06 00283 movlw cc1020_freq_0a
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
004A 0035 00284 movwf addr_data
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
004B 0217 00285 movf read_data,w
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
004C 0034 00286 movwf config_data
004D 099A 00287 call configure_write
004E 0A21 00288 goto if_keyup
004F 00289 enter_key:
00290
00291
004F 00292 next_block:
004F 0064 00293 clrf fsr ; select blank 0
0050 05A3 00294 block2
Message[306]: Crossing page boundary -- ensure page bits are set.
0051 0A10 00295 goto _main
00296
00297
00298 ;turn off pa to minimise current draw
00299 ;*************************************
00300 ;reset cc1020
0052 00301 resetcc1020:
0052 0C00 00302 movlw cc1020_main
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0053 0035 00303 movwf addr_data
0054 0C0E 00304 movlw 0eh
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0055 0034 00305 movwf config_data
0056 099A 00306 call configure_write
00307 ;bring cc1020 out of reset
0057 0C00 00308 movlw cc1020_main
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0058 0035 00309 movwf addr_data
0059 0C0F 00310 movlw 0fh
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
005A 0034 00311 movwf config_data
005B 099A 00312 call configure_write
005C 0000 00313 nop
005D 0800 00314 retlw 0
00315 ;******************************************
005E 00316 setupcc1020all:
00317
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -