📄 cc1020rx.lst
字号:
004A 080E 00329 retlw 0eh ;cc1020 pa_power
004B 0800 00330 retlw 00h ;cc1020 match
MPASM 03.20.02 Released CC1020RX.ASM 10-15-2003 11:19:14 PAGE 9
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
004C 0800 00331 retlw 00h ;cc1020 phase_comp
004D 0800 00332 retlw 00 ;cc1020 gain_comp
004E 0800 00333 retlw 00 ;cc1020 powerdown
004F 084D 00334 retlw 4dh ;test1
0050 0810 00335 retlw 10h ;test2
0051 0806 00336 retlw 06h ;test3
0052 0800 00337 retlw 00h ;test4
0053 0840 00338 retlw 40h ;test5
0054 0800 00339 retlw 00 ;test6
0055 0800 00340 retlw 00h ;test7
00341 ;*****************************************
00342 ;write the cc1020rfi cconfiguration registers subroutine
0056 00343 configure_write:
00344
0056 0CF8 00345 movlw b'11111000'
0057 0007 00346 tris portc
00347 ;address
0058 0C07 00348 movlw 7h
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0059 0036 00349 movwf count_data
005A 0547 00350 bsf portc,psel
005B 0427 00351 bcf portc,pclk
005C 0000 00352 nop
005D 0447 00353 bcf portc,psel
005E 00354 do_write_address:
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
005E 06D5 00355 btfsc addr_data,6
005F 0A62 00356 goto write_pdi_addr
0060 0407 00357 bcf portc,pdi
0061 0A63 00358 goto do_pclock_addr
0062 00359 write_pdi_addr:
0062 0507 00360 bsf portc,pdi
0063 00361 do_pclock_addr:
0063 0427 00362 bcf portc,pclk
0064 0000 00363 nop
0065 0527 00364 bsf portc,pclk
0066 0000 00365 nop
Message[305]: Using default destination of 1 (file).
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0067 0375 00366 rlf addr_data
Message[305]: Using default destination of 1 (file).
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0068 02F6 00367 decfsz count_data
0069 0A5E 00368 goto do_write_address
00369 ;write mode
006A 0427 00370 bcf portc,pclk
006B 0000 00371 nop
006C 0507 00372 bsf portc,pdi
006D 0527 00373 bsf portc,pclk
006E 0000 00374 nop
00375 ;data byte
006F 0C08 00376 movlw 8h
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
MPASM 03.20.02 Released CC1020RX.ASM 10-15-2003 11:19:14 PAGE 10
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
0070 0036 00377 movwf count_data
0071 00378 do_write_data:
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0071 06F4 00379 btfsc config_data,7h
0072 0A75 00380 goto setting_pdi_data
0073 0407 00381 bcf portc,pdi
0074 0A76 00382 goto do_pclock_data
0075 00383 setting_pdi_data:
0075 0507 00384 bsf portc,pdi
0076 00385 do_pclock_data:
0076 0427 00386 bcf portc,pclk
0077 0000 00387 nop
0078 0527 00388 bsf portc,pclk
0079 0000 00389 nop
Message[305]: Using default destination of 1 (file).
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
007A 0374 00390 rlf config_data
Message[305]: Using default destination of 1 (file).
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
007B 02F6 00391 decfsz count_data
007C 0A71 00392 goto do_write_data
007D 0427 00393 bcf portc,pclk
007E 0000 00394 nop
007F 0547 00395 bsf portc,psel
0080 0800 00396 retlw 0
00397 ;*****************************************
00398 ;the calibration is only calibration tx mode
0081 00399 single_calibration:
0081 0C00 00400 movlw cc1020_main
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0082 0035 00401 movwf addr_data
0083 0C01 00402 movlw 01h ;rx and register a
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0084 0034 00403 movwf config_data
0085 0956 00404 call configure_write
00405
0086 0C1C 00406 movlw cc1020_pa_power
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0087 0035 00407 movwf addr_data
0088 0C00 00408 movlw 0
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0089 0034 00409 movwf config_data
008A 0956 00410 call configure_write
00411
008B 0C1B 00412 movlw cc1020_calibrate
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
008C 0035 00413 movwf addr_data
008D 0CB5 00414 movlw 0b5h
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
008E 0034 00415 movwf config_data
008F 0956 00416 call configure_write
00417 ;------------------------------
0090 00418 delayb_again:
MPASM 03.20.02 Released CC1020RX.ASM 10-15-2003 11:19:14 PAGE 11
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
0090 0C40 00419 movlw cc1020_status
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0091 0035 00420 movwf addr_data
0092 09AE 00421 call configure_read
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0093 07F7 00422 btfss read_data,7
0094 0A90 00423 goto delayb_again
0095 0C00 00424 movlw cc1020_main
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0096 0035 00425 movwf addr_data
0097 0C41 00426 movlw 41h ;rx and register b
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0098 0034 00427 movwf config_data
0099 0956 00428 call configure_write
00429
009A 0C1C 00430 movlw cc1020_pa_power
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
009B 0035 00431 movwf addr_data
009C 0C00 00432 movlw 00h
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
009D 0034 00433 movwf config_data
009E 0956 00434 call configure_write
00435
009F 0C1B 00436 movlw cc1020_calibrate
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00A0 0035 00437 movwf addr_data
00A1 0CD1 00438 movlw 0d1h
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00A2 0034 00439 movwf config_data
00A3 0956 00440 call configure_write
00441
00A4 00442 delaya_again:
00A4 0C40 00443 movlw cc1020_status
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00A5 0035 00444 movwf addr_data
00A6 09AE 00445 call configure_read
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00A7 07F7 00446 btfss read_data,7
00447
00A8 0C1C 00448 movlw cc1020_pa_power
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00A9 0035 00449 movwf addr_data
00AA 0C0E 00450 movlw 0eh
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00AB 0034 00451 movwf config_data
00AC 0956 00452 call configure_write
00453
00454
00AD 0800 00455 retlw 0
00456
00457 ;***********************************
00458 ;read the cc1020rfic configuration register data subroutine
00AE 00459 configure_read:
MPASM 03.20.02 Released CC1020RX.ASM 10-15-2003 11:19:14 PAGE 12
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00AE 0C00 00460 movlw 0
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00AF 0037 00461 movwf read_data
00B0 0CF8 00462 movlw b'11111000'
00B1 0007 00463 tris portc
00464 ;address
00B2 0C07 00465 movlw 7h
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00B3 0036 00466 movwf count_data
00B4 0547 00467 bsf portc,psel
00B5 0427 00468 bcf portc,pclk
00B6 0000 00469 nop
00B7 0000 00470 nop
00B8 0447 00471 bcf portc,psel
00B9 00472 do_read_address:
00B9 0427 00473 bcf portc,pclk
00BA 0000 00474 nop
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00BB 06D5 00475 btfsc addr_data,6h
00BC 0ABF 00476 goto read_pdi_addr
00BD 0407 00477 bcf portc,pdi
00BE 0AC0 00478 goto read_pclock_addr
00BF 00479 read_pdi_addr:
00BF 0507 00480 bsf portc,pdi
00C0 00481 read_pclock_addr:
00482
00C0 0527 00483 bsf portc,pclk
00C1 0000 00484 nop
Message[305]: Using default destination of 1 (file).
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00C2 0375 00485 rlf addr_data
Message[305]: Using default destination of 1 (file).
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00C3 02F6 00486 decfsz count_data
00C4 0AB9 00487 goto do_read_address
00488 ;read
00C5 0427 00489 bcf portc,pclk
00C6 0000 00490 nop
00C7 0407 00491 bcf portc,pdi
00C8 0527 00492 bsf portc,pclk
00C9 0000 00493 nop
00CA 0507 00494 bsf portc,pdi
00495 ;data
00CB 0C08 00496 movlw 8h
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
00CC 0036 00497 movwf count_data
00CD 00498 do_read_data:
00CD 0427 00499 bcf portc,pclk
00CE 0000 00500 nop
00501
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -