📄 cc1020.lst
字号:
MPASM 03.20.02 Released CC1020.ASM 10-20-2003 9:36:11 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
00009 ;*********************************************************************
00010 ;*********************************************************************
00011 ;*********************************************************************
00012 ; the status register
00013
00014 ;bit 7: gpwuf: gpio reset bit
00015 ; 1 = reset due to wake-up from sleep on pin change
00016 ; 0 = after power up or other reset
00017 ;bit 6: unimplemented
00018 ;bit 5: pa0: program page preselect bits
00019 ; 1 = page 1 (200h - 3ffh) - pic12c509, pic12c509a, pic12cr509a and pic12ce519
00020 ; 0 = page 0 (000h - 1ffh) - pic12c5xx
00021 ; each page is 512 bytes.
00022 ; using the pa0 bit as a general purpose read/write bit in devices which do not
00023 ; use it for program
00024 ; page preselect is not recommended since this may affect upward compatibility
00025 ; with future products.
00026 ;bit 4: to: time-out bit
00027 ; 1 = after power-up, clrwdt instruction, or sleep instruction
00028 ; 0 = a wdt time-out occurred
00029 ;bit 3: pd: power-down bit
00030 ; 1 = after power-up or by the clrwdt instruction
00031 ; 0 = by execution of the sleep instruction
00032 ;bit 2: z: zero bit
00033 ; 1 = the result of an arithmetic or logic operation is zero
00034 ; 0 = the result of an arithmetic or logic operation is not zero
00035 ;bit 1: dc: digit carry/borrow bit (for addwf and subwf instructions)
00036 ; addwf
00037 ; 1 = a carry from the 4th low order bit of the result occurred
00038 ; 0 = a carry from the 4th low order bit of the result did not occur
00039 ; subwf
00040 ; 1 = a borrow from the 4th low order bit of the result did not occur
00041 ; 0 = a borrow from the 4th low order bit of the result occurred
00042 ;bit 0: c: carry/borrow bit (for addwf, subwf and rrf, rlf instructions)
00043 ;the code init. option set.
00044
00045 ;bit 7: gpwu: enable wake-up on pin change (gp0, gp1, gp3)
00046 ; 1 = disabled
00047 ; 0 = enabled
00048 ;bit 6: gppu: enable weak pull-ups (gp0, gp1, gp3)
00049 ; 1 = disabled
00050 ; 0 = enabled
00051 ;bit 5: t0cs: timer0 clock source select bit
00052 ; 1 = transition on t0cki pin
00053 ; 0 = transition on internal instruction cycle clock, fosc/4
MPASM 03.20.02 Released CC1020.ASM 10-20-2003 9:36:11 PAGE 2
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00054 ;bit 4: t0se: timer0 source edge select bit
00055 ; 1 = increment on high to low transition on the t0cki pin
00056 ; 0 = increment on low to high transition on the t0cki pin
00057 ;bit 3: psa: prescaler assignment bit
00058 ; 1 = prescaler assigned to the wdt
00059 ; 0 = prescaler assigned to timer0
00060 ;bit 2-0: ps2:ps0: prescaler rate select bits
00061 ; bit value timer0 rate wdt rate
00062 ; 000 1 : 2 1 : 1
00063 ; 001 1 : 4 1 : 2
00064 ; 010 1 : 8 1 : 4
00065 ; 011 1 : 16 1 : 8
00066 ; 100 1 : 32 1 : 16
00067 ; 101 1 : 64 1 : 32
00068 ; 110 1 : 128 1 : 64
00069 ; 111 1 : 256 1 : 128
00070 ;=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
00071 ;========================================================================
00072 ;define the sfr of pic505
00073
Warning[207]: Found label after column 1. (indf)
00000000 00074 indf equ 0h
Warning[207]: Found label after column 1. (tmr0)
00000001 00075 tmr0 equ 1h
Warning[207]: Found label after column 1. (pcl)
00000002 00076 pcl equ 2h
Warning[207]: Found label after column 1. (status)
00000003 00077 status equ 3h
Warning[207]: Found label after column 1. (fsr)
00000004 00078 fsr equ 4h
Warning[207]: Found label after column 1. (osccal)
00000005 00079 osccal equ 5h
Warning[207]: Found label after column 1. (portb)
00000006 00080 portb equ 6h
Warning[207]: Found label after column 1. (portc)
00000007 00081 portc equ 7h
00082 ;====================================
00083 ; pulse breadth value
00084 ;=====================
00000005 00085 syn_breadth equ 05h ;sync-code 5*200us
00000005 00086 one_breadth equ 05h ;bit "1" 1ms about5*200us
00000009 00087 zer_breadth equ 09h ;bit "0" 2ms about9*200us
0000000D 00088 stp_breadth equ 0dh ;bit "stp" 2.7ms about 13*200us
00000011 00089 sta_breadth equ 11h ;bit "sta" 3.65ms about 17*200us
00090
00000000 00091 c equ 0
00000001 00092 dc equ 1
00000002 00093 z equ 2
00000003 00094 pd equ 3
00000004 00095 to equ 4
00000005 00096 pa0 equ 5
00097 ;
00000007 00098 gpwuf equ 7
MPASM 03.20.02 Released CC1020.ASM 10-20-2003 9:36:11 PAGE 3
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00000008 00099 compare_buf equ 08h
00000009 00100 counter_buf equ 09h
0000000A 00101 flg_ago equ 0ah
0000000B 00102 flg_now equ 0bh
0000000C 00103 temp_buf equ 0ch
00000012 00104 pul_breadth equ 12h
00000013 00105 bit_cont equ 13h
00000014 00106 data_buf equ 14h
00000015 00107 data_tmp equ 15h
00000016 00108 bag_cnt equ 16h
00000017 00109 r0 equ 17h
00000018 00110 r5 equ 18h
00000019 00111 id_cont equ 19h
0000001A 00112 id_code equ 1ah
00113 ;===============================
00114 #define block1 bcf status,pa0
00115 #define block2 bsf status,pa0
00116 ;===============================
Warning[207]: Found label after column 1. (pdo)
00000003 00117 pdo equ 3
Warning[207]: Found label after column 1. (psel)
00000002 00118 psel equ 2
Warning[207]: Found label after column 1. (pclk)
00000001 00119 pclk equ 1
Warning[207]: Found label after column 1. (pdi)
00000000 00120 pdi equ 0
Warning[207]: Found label after column 1. (dclk)
00000004 00121 dclk equ 4
Warning[207]: Found label after column 1. (dio)
00000005 00122 dio equ 5
Warning[207]: Found label after column 1. (lock)
00000003 00123 lock equ 3
00124
00125 ;-------------------------------------
00126 ;define the using ram
00127
Warning[207]: Found label after column 1. (r1)
00000031 00128 r1 equ 31h
Warning[207]: Found label after column 1. (r2)
00000032 00129 r2 equ 32h
Warning[207]: Found label after column 1. (r3)
00000033 00130 r3 equ 33h
Warning[207]: Found label after column 1. (config_data)
00000034 00131 config_data equ 34h
Warning[207]: Found label after column 1. (addr_data)
00000035 00132 addr_data equ 35h
Warning[207]: Found label after column 1. (count_data)
00000036 00133 count_data equ 36h
Warning[207]: Found label after column 1. (read_data)
00000037 00134 read_data equ 37h
Warning[207]: Found label after column 1. (addr_count)
00000038 00135 addr_count equ 38h
00136
MPASM 03.20.02 Released CC1020.ASM 10-20-2003 9:36:11 PAGE 4
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
Warning[207]: Found label after column 1. (start_data)
00000039 00137 start_data equ 39h
Warning[207]: Found label after column 1. (send_data)
0000003A 00138 send_data equ 3ah
Warning[207]: Found label after column 1. (stop_data)
0000003B 00139 stop_data equ 3bh
Warning[207]: Found label after column 1. (delay_count1)
0000003C 00140 delay_count1 equ 3ch
Warning[207]: Found label after column 1. (delay_count2)
0000003D 00141 delay_count2 equ 3dh
Warning[207]: Found label after column 1. (save_freq0a_buf)
0000003E 00142 save_freq0a_buf equ 3eh
00143 ;----------------------------------
00144 ;define the cc1020 rfic register
Warning[207]: Found label after column 1. (cc1020_main)
00000000 00145 cc1020_main equ 00h
Warning[207]: Found label after column 1. (cc1020_interface)
00000001 00146 cc1020_interface equ 01h
Warning[207]: Found label after column 1. (cc1020_reset)
00000002 00147 cc1020_reset equ 02h
Warning[207]: Found label after column 1. (cc1020_sequencing)
00000003 00148 cc1020_sequencing equ 03h
Warning[207]: Found label after column 1. (cc1020_freq_2a)
00000004 00149 cc1020_freq_2a equ 04h
Warning[207]: Found label after column 1. (cc1020_freq_1a)
00000005 00150 cc1020_freq_1a equ 05h
Warning[207]: Found label after column 1. (cc1020_freq_0a)
00000006 00151 cc1020_freq_0a equ 06h
Warning[207]: Found label after column 1. (cc1020_clock_a)
00000007 00152 cc1020_clock_a equ 07h
Warning[207]: Found label after column 1. (cc1020_freq_2b)
00000008 00153 cc1020_freq_2b equ 08h
Warning[207]: Found label after column 1. (cc1020_freq_1b)
00000009 00154 cc1020_freq_1b equ 09h
Warning[207]: Found label after column 1. (cc1020_freq_0b)
0000000A 00155 cc1020_freq_0b equ 0ah
Warning[207]: Found label after column 1. (cc1020_clock_b)
0000000B 00156 cc1020_clock_b equ 0bh
Warning[207]: Found label after column 1. (cc1020_vco)
0000000C 00157 cc1020_vco equ 0ch
Warning[207]: Found label after column 1. (cc1020_modem)
0000000D 00158 cc1020_modem equ 0dh
Warning[207]: Found label after column 1. (cc1020_deviation)
0000000E 00159 cc1020_deviation equ 0eh
Warning[207]: Found label after column 1. (cc1020_afc_control)
0000000F 00160 cc1020_afc_control equ 0fh
Warning[207]: Found label after column 1. (cc1020_filter)
00000010 00161 cc1020_filter equ 10h
Warning[207]: Found label after column 1. (cc1020_vga1)
00000011 00162 cc1020_vga1 equ 11h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -