📄 cc1020rx.lst
字号:
MPASM 03.20.02 Released CC1020RX.ASM 10-15-2003 11:19:14 PAGE 1
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00001 ;the function of the software is control the rfic cc1020 of chipcon
00002 ;it is a simply spray commander,the rf center frequency is 426.075mhz
00003 ;the drift of frequency is <+/-4ppm
00004 ;using mcu : microchip pic505
00005 ;date : 2003/08/21
00006 ;author : zhongyijin
00007 ;-------------------------
00008 ; data define:
00009 ; mode -----aah
00010 ; spray-----55h
00011 ; buzzer ---0fh
00012 ;***********************************************************************************
00013 ;------------------------
00014
00015 ;special bit define
00016 ;-------------------
00000000 00017 c equ 0
00000001 00018 dc equ 1
00000002 00019 z equ 2
00000003 00020 pd equ 3
00000004 00021 to equ 4
00000005 00022 pa0 equ 5
00023 ;
00000007 00024 gpwuf equ 7
00025 ;------------------------
00026 ;general register define
00027 ;------------------------
00000008 00028 compare_buf equ 08h
00000009 00029 counter_buf equ 09h
0000000A 00030 temp_buf equ 0ah
00000010 00031 pul_breadth equ 10h
00000011 00032 bit_cont equ 11h
00000012 00033 data_buf equ 12h
00000013 00034 data_tmp equ 13h
00000014 00035 page_cnt equ 14h
00000015 00036 r0 equ 15h
00000016 00037 r1 equ 16h
00000017 00038 r2 equ 17h
00000018 00039 r3 equ 18h
00000019 00040 r4 equ 19h
0000001A 00041 byte_cont equ 1ah
0000001B 00042 id_cont equ 1bh
0000001C 00043 id_code equ 1ch
00044 ;---------------------
00045 ;port define
00046 ;---------------------
Warning[207]: Found label after column 1. (pdo)
00000003 00047 pdo equ 3
Warning[207]: Found label after column 1. (psel)
00000002 00048 psel equ 2
Warning[207]: Found label after column 1. (pclk)
00000001 00049 pclk equ 1
Warning[207]: Found label after column 1. (pdi)
MPASM 03.20.02 Released CC1020RX.ASM 10-15-2003 11:19:14 PAGE 2
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00000000 00050 pdi equ 0
Warning[207]: Found label after column 1. (dclk)
00000004 00051 dclk equ 4
Warning[207]: Found label after column 1. (dio)
00000005 00052 dio equ 5
00053 ;portb
Warning[207]: Found label after column 1. (spray)
00000000 00054 spray equ 0
Warning[207]: Found label after column 1. (buzzer)
00000001 00055 buzzer equ 1
Warning[207]: Found label after column 1. (lock)
00000003 00056 lock equ 3
00057
00058
00059 ;---------------------
00060 ;value define
00061 ;---------------------
00062 ; pulse breadth value
00000006 00063 syn_breadthup set 06h ; +1
00000005 00064 syn_breadth set 05h ; sync-code 0.5ms
00000004 00065 syn_breadthdn set 04h ; -1
00066
00000006 00067 one_breadthup set 06h ; +1
00000005 00068 one_breadth set 05h ; bit "1" 0.5ms
00000004 00069 one_breadthdn set 04h ; -1
00070
0000000A 00071 zer_breadthup set 0ah ; +1
00000009 00072 zer_breadth set 09h ; bit "0" 1ms
00000008 00073 zer_breadthdn set 08h ; -1
00074
0000000F 00075 stp_breadthup set 0fh ; +1
0000000E 00076 stp_breadth set 0eh ; bit "stp" 1.5ms
0000000D 00077 stp_breadthdn set 0dh ; -1
00078
00000012 00079 sta_breadthup set 12h ; +1
00000011 00080 sta_breadth set 11h ; bit "sta" 2ms
00000010 00081 sta_breadthdn set 10h ; -1
00082 ;
00083 ;#define sleep_board bsf gpio,slep
00084 ;#define wake_board bcf gpio,slep
00085 ;========================================================================
00086 ;define the sfr of pic505
00087
Warning[207]: Found label after column 1. (indf)
00000000 00088 indf equ 0h
Warning[207]: Found label after column 1. (tmr0)
00000001 00089 tmr0 equ 1h
Warning[207]: Found label after column 1. (pcl)
00000002 00090 pcl equ 2h
Warning[207]: Found label after column 1. (status)
00000003 00091 status equ 3h
Warning[207]: Found label after column 1. (fsr)
00000004 00092 fsr equ 4h
MPASM 03.20.02 Released CC1020RX.ASM 10-15-2003 11:19:14 PAGE 3
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
Warning[207]: Found label after column 1. (osccal)
00000005 00093 osccal equ 5h
Warning[207]: Found label after column 1. (portb)
00000006 00094 portb equ 6h
Warning[207]: Found label after column 1. (portc)
00000007 00095 portc equ 7h
00096 ;====================================
00097
00098 ;====================================
00099 #define block1 bcf status,pa0
00100 #define block2 bsf status,pa0
00101 ;====================================
00102
00103
00104 ;-------------------------------------
00105 ;define the using ram
00106
00107
00108 ;r2 equ 32h
Warning[207]: Found label after column 1. (count_r3)
00000033 00109 count_r3 equ 33h
Warning[207]: Found label after column 1. (config_data)
00000034 00110 config_data equ 34h
Warning[207]: Found label after column 1. (addr_data)
00000035 00111 addr_data equ 35h
Warning[207]: Found label after column 1. (count_data)
00000036 00112 count_data equ 36h
Warning[207]: Found label after column 1. (read_data)
00000037 00113 read_data equ 37h
Warning[207]: Found label after column 1. (addr_count)
00000038 00114 addr_count equ 38h
00115
Warning[207]: Found label after column 1. (start_data)
00000039 00116 start_data equ 39h
Warning[207]: Found label after column 1. (send_data)
0000003A 00117 send_data equ 3ah
Warning[207]: Found label after column 1. (stop_data)
0000003B 00118 stop_data equ 3bh
00119
00120 ;----------------------------------
00121 ;define the cc1020 rfic register
Warning[207]: Found label after column 1. (cc1020_main)
00000000 00122 cc1020_main equ 00h
Warning[207]: Found label after column 1. (cc1020_interface)
00000001 00123 cc1020_interface equ 01h
Warning[207]: Found label after column 1. (cc1020_reset)
00000002 00124 cc1020_reset equ 02h
Warning[207]: Found label after column 1. (cc1020_sequencing)
00000003 00125 cc1020_sequencing equ 03h
Warning[207]: Found label after column 1. (cc1020_freq_2a)
00000004 00126 cc1020_freq_2a equ 04h
Warning[207]: Found label after column 1. (cc1020_freq_1a)
00000005 00127 cc1020_freq_1a equ 05h
MPASM 03.20.02 Released CC1020RX.ASM 10-15-2003 11:19:14 PAGE 4
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
Warning[207]: Found label after column 1. (cc1020_freq_0a)
00000006 00128 cc1020_freq_0a equ 06h
Warning[207]: Found label after column 1. (cc1020_clock_a)
00000007 00129 cc1020_clock_a equ 07h
Warning[207]: Found label after column 1. (cc1020_freq_2b)
00000008 00130 cc1020_freq_2b equ 08h
Warning[207]: Found label after column 1. (cc1020_freq_1b)
00000009 00131 cc1020_freq_1b equ 09h
Warning[207]: Found label after column 1. (cc1020_freq_0b)
0000000A 00132 cc1020_freq_0b equ 0ah
Warning[207]: Found label after column 1. (cc1020_clock_b)
0000000B 00133 cc1020_clock_b equ 0bh
Warning[207]: Found label after column 1. (cc1020_vco)
0000000C 00134 cc1020_vco equ 0ch
Warning[207]: Found label after column 1. (cc1020_modem)
0000000D 00135 cc1020_modem equ 0dh
Warning[207]: Found label after column 1. (cc1020_deviation)
0000000E 00136 cc1020_deviation equ 0eh
Warning[207]: Found label after column 1. (cc1020_afc_control)
0000000F 00137 cc1020_afc_control equ 0fh
Warning[207]: Found label after column 1. (cc1020_filter)
00000010 00138 cc1020_filter equ 10h
Warning[207]: Found label after column 1. (cc1020_vga1)
00000011 00139 cc1020_vga1 equ 11h
Warning[207]: Found label after column 1. (cc1020_vga2)
00000012 00140 cc1020_vga2 equ 12h
Warning[207]: Found label after column 1. (cc1020_vga3)
00000013 00141 cc1020_vga3 equ 13h
Warning[207]: Found label after column 1. (cc1020_vga4)
00000014 00142 cc1020_vga4 equ 14h
Warning[207]: Found label after column 1. (cc1020_lock_reg)
00000015 00143 cc1020_lock_reg equ 15h
Warning[207]: Found label after column 1. (cc1020_frontend)
00000016 00144 cc1020_frontend equ 16h
Warning[207]: Found label after column 1. (cc1020_analog)
00000017 00145 cc1020_analog equ 17h
Warning[207]: Found label after column 1. (cc1020_buff_swing)
00000018 00146 cc1020_buff_swing equ 18h
Warning[207]: Found label after column 1. (cc1020_buff_curr)
00000019 00147 cc1020_buff_curr equ 19h
Warning[207]: Found label after column 1. (cc1020_pll_bw)
0000001A 00148 cc1020_pll_bw equ 1ah
Warning[207]: Found label after column 1. (cc1020_calibrate)
0000001B 00149 cc1020_calibrate equ 1bh
Warning[207]: Found label after column 1. (cc1020_pa_power)
0000001C 00150 cc1020_pa_power equ 1ch
Warning[207]: Found label after column 1. (cc1020_match)
0000001D 00151 cc1020_match equ 1dh
Warning[207]: Found label after column 1. (cc1020_phase_comp)
0000001E 00152 cc1020_phase_comp equ 1eh
Warning[207]: Found label after column 1. (cc1020_gain_comp)
0000001F 00153 cc1020_gain_comp equ 1fh
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -