gpasm-1.7.0_beta1 (Oct 26 2015)ceshi_32M_2V.asm   2015-12-14  09:50:39         PAGE  1


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00001 #include "mc32p7311.inc"
                      00001 
                      00002 
                      00003 ;mc32p7311 header file
                      00004 ;
                      00005 ; 
                      00006 
                      00007 ;define must write at first row
                      00008        
  00000180            00009 INDF0   EQU     0x180
  00000181            00010 INDF1   EQU     0x181
  00000182            00011 INDF2   EQU     0x182
  00000183            00012 HIBYTE  EQU     0x183
  00000184            00013 FSR0    EQU     0x184
  00000185            00014 FSR1    EQU     0x185
  00000186            00015 PCL     EQU     0x186
  00000187            00016 PFLAG   EQU     0x187
  00000188            00017 MCR     EQU     0x188
  00000189            00018 INDF3   EQU     0x189   
  0000018A            00019 INTE    EQU     0x18A
  0000018B            00020 INTF    EQU     0x18B
  0000018C            00021 DRVCR   EQU     0x18C
  0000018E            00022 KBCR    EQU     0x18E
                      00023 
  00000190            00024 IOP0    EQU     0x190
  00000191            00025 OEP0    EQU     0x191
  00000192            00026 PUP0    EQU     0x192
  00000193            00027 PDP0    EQU     0x193
  00000194            00028 IOP1    EQU     0x194
  00000195            00029 OEP1    EQU     0x195
  00000196            00030 PUP1    EQU     0x196
  00000197            00031 PDP1    EQU     0x197
                      00032 
  00000198            00033 T0CR    EQU     0x198
  00000199            00034 T0CNT   EQU     0x199
  0000019A            00035 T0LOAD  EQU     0x19A
  0000019B            00036 T0DATA  EQU     0x19B
  0000019C            00037 T1CR    EQU     0x19C
  0000019D            00038 T1CNT   EQU     0x19D
  0000019E            00039 T1LOAD  EQU     0x19E
  0000019F            00040 T1DATA  EQU     0x19F
                      00041 
  000001A0            00042 T2CR    EQU     0x1A0
  000001A1            00043 T2CNT   EQU     0x1A1
  000001A2            00044 T2LOAD  EQU     0x1A2
  000001A3            00045 T2DATA  EQU     0x1A3
  000001A4            00046 T3CR    EQU     0x1A4
  000001A5            00047 T3CNT   EQU     0x1A5
  000001A6            00048 T3LOAD  EQU     0x1A6
                      00049 
  000001A8            00050 PWM0DE  EQU     0x1A8
  000001A9            00051 PWM1DE  EQU     0x1A9
  000001AA            00052 PWM2DE  EQU     0x1AA
  000001AC            00053 PWMCR0  EQU     0x1AC
  000001AD            00054 PWMCR1  EQU     0x1AD
  000001AE            00055 OSCM    EQU     0x1AE
  000001AF            00056 LVDCR   EQU     0x1AF
                      00057 
  000001B0            00058 ADCR0   EQU     0x1B0
  000001B1            00059 ADCR1   EQU     0x1B1
  000001B2            00060 ADCR2   EQU     0x1B2
                      00061 
  000001B4            00062 ADRH    EQU     0x1B4
  000001B5            00063 ADRL    EQU     0x1B5
  000001B6            00064 ANSEL0  EQU     0x1B6
  000001B7            00065 ANSEL1  EQU     0x1B7
                      00066 
  000001F8            00067 VBGCAL  EQU     0x1F8
  000001FB            00068 OSCCALH EQU     0x1FB
  000001FC            00069 OSCCALL EQU     0x1FC
                      00070 
                      00071 #define         STATUS          PFLAG
                      00072 #define         INDF              INDF0
                      00073 #define         FSR                 FSR0
                      00074 #define         P0HCON          PUP0
                      00075 #define         P1HCON          PUP1
                      00076 #define         INTECON         INTE
                      00077 #define         INTFLAG   INTF  
                      00078 
                      00079 
                      00080 ;INDF0
                      00081 #define         INDF07          INDF0,7
                      00082 #define         INDF06          INDF0,6
                      00083 #define         INDF05          INDF0,5
                      00084 #define         INDF04          INDF0,4
                      00085 #define         INDF03          INDF0,3
                      00086 #define         INDF02          INDF0,2
                      00087 #define         INDF01          INDF0,1
                      00088 #define         INDF00          INDF0,0
                      00089 
                      00090 ;INDF1
                      00091 #define         INDF17          INDF1,7
                      00092 #define         INDF16          INDF1,6
                      00093 #define         INDF15          INDF1,5
                      00094 #define         INDF14          INDF1,4
                      00095 #define         INDF13          INDF1,3
                      00096 #define         INDF12          INDF1,2
                      00097 #define         INDF11          INDF1,1
                      00098 #define         INDF10          INDF1,0
                      00099 
                      00100 ;INDF2
                      00101 #define         INDF27          INDF2,7
                      00102 #define         INDF26          INDF2,6
                      00103 #define         INDF25          INDF2,5
                      00104 #define         INDF24          INDF2,4
                      00105 #define         INDF23          INDF2,3
                      00106 #define         INDF22          INDF2,2
                      00107 #define         INDF21          INDF2,1
                      00108 #define         INDF20          INDF2,0
                      00109 
                      00110 ;HIBYTE
                      00111 #define         HIBYTE7         HIBYTE,7
                      00112 #define         HIBYTE6         HIBYTE,6
                      00113 #define         HIBYTE5         HIBYTE,5
                      00114 #define         HIBYTE4         HIBYTE,4
                      00115 #define         HIBYTE3         HIBYTE,3
                      00116 #define         HIBYTE2         HIBYTE,2
                      00117 #define         HIBYTE1         HIBYTE,1
                      00118 #define         HIBYTE0         HIBYTE,0
                      00119 
                      00120 ;FSR0
                      00121 #define         FSR07           FSR0,7
                      00122 #define         FSR06           FSR0,6
                      00123 #define         FSR05           FSR0,5
                      00124 #define         FSR04           FSR0,4
                      00125 #define         FSR03           FSR0,3
                      00126 #define         FSR02           FSR0,2
                      00127 #define         FSR01           FSR0,1
                      00128 #define         FSR00           FSR0,0
                      00129 
                      00130 ;FSR1
                      00131 #define         FSR17           FSR1,7
                      00132 #define         FSR16           FSR1,6
                      00133 #define         FSR15           FSR1,5
                      00134 #define         FSR14           FSR1,4
                      00135 #define         FSR13           FSR1,3
                      00136 #define         FSR12           FSR1,2
                      00137 #define         FSR11           FSR1,1
                      00138 #define         FSR10           FSR1,0
                      00139 
                      00140 ;PCL
                      00141 #define         PC7             PCL,7
                      00142 #define         PC6             PCL,6
                      00143 #define         PC5             PCL,5
                      00144 #define         PC4             PCL,4
                      00145 #define         PC3             PCL,3
                      00146 #define         PC2             PCL,2
                      00147 #define         PC1             PCL,1
                      00148 #define         PC0             PCL,0
                      00149 
                      00150 ;pflag bit 
                      00151 #define         Z               PFLAG,2
                      00152 #define         DC              PFLAG,1
                      00153 #define         C               PFLAG,0
                      00154 
                      00155 ;MCR 
                      00156 #define         GIE             MCR,7
                      00157 #define         T0              MCR,5
                      00158 #define         PD              MCR,4
                      00159 #define         MINT11          MCR,3
                      00160 #define         MINT10          MCR,2
                      00161 #define         MINT01          MCR,1
                      00162 #define         MINT00          MCR,0
                      00163 
                      00164 ;INDF3
                      00165 #define         INDF37          INDF3,7
                      00166 #define         INDF36          INDF3,6
                      00167 #define         INDF35          INDF3,5
                      00168 #define         INDF34          INDF3,4
                      00169 #define         INDF33          INDF3,3
                      00170 #define         INDF32          INDF3,2
                      00171 #define         INDF31          INDF3,1
                      00172 #define         INDF30          INDF3,0
                      00173 
                      00174 ;INTE
                      00175 #define         T3IE    INTE,7
                      00176 #define         ADIE    INTE,6
                      00177 #define         T2IE    INTE,5
                      00178 #define         KBIE    INTE,4
                      00179 #define         INT1IE  INTE,3
                      00180 #define         INT0IE  INTE,2
                      00181 #define         T1IE    INTE,1
                      00182 #define         T0IE    INTE,0
                      00183 
                      00184 ;INTF
                      00185 #define         T3IF    INTFLAG,7
                      00186 #define         ADIF    INTFLAG,6 
                      00187 #define         T2IF    INTFLAG,5
                      00188 #define         KBIF    INTFLAG,4
                      00189 #define         INT1IF  INTFLAG,3
                      00190 #define         INT0IF  INTFLAG,2
                      00191 #define         T1IF    INTFLAG,1
                      00192 #define         T0IF    INTFLAG,0
                      00193 
                      00194 ;DRVCR
                      00195 #define         DRVS    DRVCR,7
                      00196 #define         LDRVS   DRVCR,6 
                      00197 #define         PDRVS   DRVCR,5
                      00198 #define         PDRVS0  DRVCR,4
                      00199 #define         PDLYS1  DRVCR,3
                      00200 #define         PDLYS0  DRVCR,2
                      00201 #define         PSPDS1  DRVCR,1
                      00202 #define         PSPDS0  DRVCR,0
                      00203 
                      00204 ;KBCR
                      00205 #define         KBCR6   KBCR,6 
                      00206 #define         KBCR5   KBCR,5
                      00207 #define         KBCR4   KBCR,4
                      00208 #define         KBCR3   KBCR,3
                      00209 #define         KBCR2   KBCR,2
                      00210 #define         KBCR1   KBCR,1
                      00211 #define         KBCR0   KBCR,0
                      00212 
                      00213 ;IOP0
                      00214 #define         P05D    IOP0,5
                      00215 #define         P04D    IOP0,4
                      00216 #define         P03D    IOP0,3
                      00217 #define         P02D    IOP0,2
                      00218 #define         P01D    IOP0,1
                      00219 #define         P00D    IOP0,0
                      00220 
                      00221 ;OEP0
                      00222 #define         P05OE    OEP0,5
                      00223 #define         P04OE    OEP0,4
                      00224 #define         P03OE    OEP0,3
                      00225 #define         P02OE    OEP0,2
                      00226 #define         P01OE    OEP0,1
                      00227 #define         P00OE    OEP0,0
                      00228 
                      00229 ;PUP0
                      00230 #define         P05PU    PUP0,5
                      00231 #define         P04PU    PUP0,4
                      00232 #define         P03PU    PUP0,3
                      00233 #define         P02PU    PUP0,2
                      00234 #define         P01PU    PUP0,1
                      00235 #define         P00PU    PUP0,0
                      00236 
                      00237 ;PDP0
                      00238 #define         P05PD    PDP0,5
                      00239 #define         P04PD    PDP0,4
                      00240 #define         P03PD    PDP0,3
                      00241 #define         P02PD    PDP0,2
                      00242 #define         P01PD    PDP0,1
                      00243 #define         P00PD    PDP0,0
                      00244 
                      00245 ;IOP1
                      00246 #define         P17D    IOP1,7
                      00247 #define         P16D    IOP1,6
                      00248 #define         P15D    IOP1,5
                      00249 #define         P14D    IOP1,4
                      00250 #define         P13D    IOP1,3
                      00251 #define         P12D    IOP1,2
                      00252 #define         P11D    IOP1,1
                      00253 #define         P10D    IOP1,0
                      00254 
                      00255 ;OEP1
                      00256 #define         P17OE    OEP1,7
                      00257 #define         P16OE    OEP1,6
                      00258 #define         P15OE    OEP1,5
                      00259 #define         P14OE    OEP1,4
                      00260 #define         P13OE    OEP1,3
                      00261 #define         P12OE    OEP1,2
                      00262 #define         P11OE    OEP1,1
                      00263 #define         P10OE    OEP1,0
                      00264 
                      00265 ;PUP1
                      00266 #define         P17PU    PUP1,7
                      00267 #define         P16PU    PUP1,6
                      00268 #define         P15PU    PUP1,5
                      00269 #define         P14PU    PUP1,4
                      00270 #define         P13PU    PUP1,3
                      00271 #define         P12PU    PUP1,2
                      00272 #define         P11PU    PUP1,1
                      00273 #define         P10PU    PUP1,0
                      00274 
                      00275 ;PDP1
                      00276 #define         P17PD    PDP1,7
                      00277 #define         P16PD    PDP1,6
                      00278 #define         P15PD    PDP1,5
                      00279 #define         P14PD    PDP1,4
                      00280 #define         P13PD    PDP1,3
                      00281 #define         P12PD    PDP1,2
                      00282 #define         P11PD    PDP1,1
                      00283 #define         P10PD    PDP1,0
                      00284 
                      00285 ;T0CR
                      00286 #define         TC0EN           T0CR,7
                      00287 #define         PWM0OE          T0CR,6
                      00288 #define         BUZ0OE          T0CR,5
                      00289 #define         T0PS1           T0CR,4
                      00290 #define         T0PS0           T0CR,3
                      00291 #define         T0PR2           T0CR,2
                      00292 #define         T0PR1           T0CR,1
                      00293 #define         T0PR0           T0CR,0
                      00294 
                      00295 ;T0CNT
                      00296 #define         T0C7    T0CNT,7
                      00297 #define         T0C6    T0CNT,6
                      00298 #define         T0C5    T0CNT,5
                      00299 #define         T0C4    T0CNT,4
                      00300 #define         T0C3    T0CNT,3
                      00301 #define         T0C2    T0CNT,2
                      00302 #define         T0C1    T0CNT,1
                      00303 #define         T0C0    T0CNT,0
                      00304 
                      00305 ;T0LOAD
                      00306 #define         T0LOAD7    T0LOAD,7
                      00307 #define         T0LOAD6    T0LOAD,6
                      00308 #define         T0LOAD5    T0LOAD,5
                      00309 #define         T0LOAD4    T0LOAD,4
                      00310 #define         T0LOAD3    T0LOAD,3
                      00311 #define         T0LOAD2    T0LOAD,2
                      00312 #define         T0LOAD1    T0LOAD,1
                      00313 #define         T0LOAD0    T0LOAD,0
                      00314 
                      00315 ;T0DATA
                      00316 #define         T0DATA7    T0DATA,7
                      00317 #define         T0DATA6    T0DATA,6
                      00318 #define         T0DATA5    T0DATA,5
                      00319 #define         T0DATA4    T0DATA,4
                      00320 #define         T0DATA3    T0DATA,3
                      00321 #define         T0DATA2    T0DATA,2
                      00322 #define         T0DATA1    T0DATA,1
                      00323 #define         T0DATA0    T0DATA,0
                      00324 
                      00325 ;T1CR
                      00326 #define         TC1EN           T1CR,7
                      00327 #define         PWM1OE          T1CR,6
                      00328 #define         BUZ1OE          T1CR,5
                      00329 #define         T1PS1           T1CR,4
                      00330 #define         T1PS0           T1CR,3
                      00331 #define         T1PR2           T1CR,2
                      00332 #define         T1PR1           T1CR,1
                      00333 #define         T1PR0           T1CR,0
                      00334 
                      00335 ;T1CNT
                      00336 #define         T1C7    T1CNT,7
                      00337 #define         T1C6    T1CNT,6
                      00338 #define         T1C5    T1CNT,5
                      00339 #define         T1C4    T1CNT,4
                      00340 #define         T1C3    T1CNT,3
                      00341 #define         T1C2    T1CNT,2
                      00342 #define         T1C1    T1CNT,1
                      00343 #define         T1C0    T1CNT,0
                      00344 
                      00345 ;T1LOAD
                      00346 #define         T1LOAD7    T1LOAD,7
                      00347 #define         T1LOAD6    T1LOAD,6
                      00348 #define         T1LOAD5    T1LOAD,5
                      00349 #define         T1LOAD4    T1LOAD,4
                      00350 #define         T1LOAD3    T1LOAD,3
                      00351 #define         T1LOAD2    T1LOAD,2
                      00352 #define         T1LOAD1    T1LOAD,1
                      00353 #define         T1LOAD0    T1LOAD,0
                      00354 
                      00355 ;T1DATA
                      00356 #define         T1DATA7    T1DATA,7
                      00357 #define         T1DATA6    T1DATA,6
                      00358 #define         T1DATA5    T1DATA,5
                      00359 #define         T1DATA4    T1DATA,4
                      00360 #define         T1DATA3    T1DATA,3
                      00361 #define         T1DATA2    T1DATA,2
                      00362 #define         T1DATA1    T1DATA,1
                      00363 #define         T1DATA0    T1DATA,0
                      00364 
                      00365 ;T2CR
                      00366 #define         TC2EN           T2CR,7
                      00367 #define         PWM2OE          T2CR,6
                      00368 #define         BUZ2OE          T2CR,5
                      00369 #define         T2PS1           T2CR,4
                      00370 #define         T2PS0           T2CR,3
                      00371 #define         T2PR2           T2CR,2
                      00372 #define         T2PR1           T2CR,1
                      00373 #define         T2PR0           T2CR,0
                      00374 
                      00375 ;T2CNT
                      00376 #define         T2C7    T2CNT,7
                      00377 #define         T2C6    T2CNT,6
                      00378 #define         T2C5    T2CNT,5
                      00379 #define         T2C4    T2CNT,4
                      00380 #define         T2C3    T2CNT,3
                      00381 #define         T2C2    T2CNT,2
                      00382 #define         T2C1    T2CNT,1
                      00383 #define         T2C0    T2CNT,0
                      00384 
                      00385 ;T2LOAD
                      00386 #define         T2LOAD7    T2LOAD,7
                      00387 #define         T2LOAD6    T2LOAD,6
                      00388 #define         T2LOAD5    T2LOAD,5
                      00389 #define         T2LOAD4    T2LOAD,4
                      00390 #define         T2LOAD3    T2LOAD,3
                      00391 #define         T2LOAD2    T2LOAD,2
                      00392 #define         T2LOAD1    T2LOAD,1
                      00393 #define         T2LOAD0    T2LOAD,0
                      00394 
                      00395 ;T2DATA
                      00396 #define         T2DATA7    T2DATA,7
                      00397 #define         T2DATA6    T2DATA,6
                      00398 #define         T2DATA5    T2DATA,5
                      00399 #define         T2DATA4    T2DATA,4
                      00400 #define         T2DATA3    T2DATA,3
                      00401 #define         T2DATA2    T2DATA,2
                      00402 #define         T2DATA1    T2DATA,1
                      00403 #define         T2DATA0    T2DATA,0
                      00404 
                      00405 ;T3CR
                      00406 #define         TC3EN           T3CR,7
                      00407 #define         T3PS1           T3CR,4
                      00408 #define         T3PS0           T3CR,3
                      00409 #define         T3PR2           T3CR,2
                      00410 #define         T3PR1           T3CR,1
                      00411 #define         T3PR0           T3CR,0
                      00412 
                      00413 ;T3CNT
                      00414 #define         T3C7    T3CNT,7
                      00415 #define         T3C6    T3CNT,6
                      00416 #define         T3C5    T3CNT,5
                      00417 #define         T3C4    T3CNT,4
                      00418 #define         T3C3    T3CNT,3
                      00419 #define         T3C2    T3CNT,2
                      00420 #define         T3C1    T3CNT,1
                      00421 #define         T3C0    T3CNT,0
                      00422 
                      00423 ;T3LOAD
                      00424 #define         T3LOAD7    T3LOAD,7
                      00425 #define         T3LOAD6    T3LOAD,6
                      00426 #define         T3LOAD5    T3LOAD,5
                      00427 #define         T3LOAD4    T3LOAD,4
                      00428 #define         T3LOAD3    T3LOAD,3
                      00429 #define         T3LOAD2    T3LOAD,2
                      00430 #define         T3LOAD1    T3LOAD,1
                      00431 #define         T3LOAD0    T3LOAD,0
                      00432 
                      00433 ;PWM0DE
                      00434 #define         PWM0DE2    PWM0DE,2
                      00435 #define         PWM0DE1    PWM0DE,1
                      00436 #define         PWM0DE0    PWM0DE,0
                      00437 
                      00438 ;PWM1DE
                      00439 #define         PWM1DE2    PWM1DE,2
                      00440 #define         PWM1DE1    PWM1DE,1
                      00441 #define         PWM1DE0    PWM1DE,0
                      00442 
                      00443 ;PWM2DE
                      00444 #define         PWM2DE2    PWM2DE,2
                      00445 #define         PWM2DE1    PWM2DE,1
                      00446 #define         PWM2DE0    PWM2DE,0
                      00447 
                      00448 ;PWMCR0
                      00449 #define         FPWMEN     PWMCR0,7
                      00450 #define         PWM2INV    PWMCR0,6
                      00451 #define         PWM1INV    PWMCR0,5
                      00452 #define         PWM0INV    PWMCR0,4
                      00453 #define         FPWMR1     PWMCR0,3
                      00454 #define         FPWMR0     PWMCR0,2
                      00455 #define         FPWMF1     PWMCR0,1
                      00456 #define         FPWMF0     PWMCR0,0
                      00457 
                      00458 ;PWMCR1
                      00459 #define         TMRCKS1    PWMCR1,4
                      00460 #define         TMRCKS0    PWMCR1,3
                      00461 #define         PMODE2     PWMCR1,2
                      00462 #define         PMODE1     PWMCR1,1
                      00463 #define         PMODE0     PWMCR1,0
                      00464 
                      00465 ;OSCM
                      00466 #define         STBL    OSCM,5
                      00467 #define         STBH    OSCM,4
                      00468 #define         CLKS    OSCM,2
                      00469 #define         LFEN    OSCM,1
                      00470 #define         HFEN    OSCM,0          
                      00471 
                      00472 ;LVDCR
                      00473 #define         LVDEN    LVDCR,7
                      00474 #define         LVDS3    LVDCR,6
                      00475 #define         LVDS2    LVDCR,5
                      00476 #define         LVDS1    LVDCR,4
                      00477 #define         LVDS0    LVDCR,3
                      00478 #define         LVDF     LVDCR,0
                      00479 
                      00480 ;ADCR0
                      00481 #define         ADCHS3    ADCR0,7
                      00482 #define         ADCHS2    ADCR0,6
                      00483 #define         ADCHS1    ADCR0,5
                      00484 #define         ADCHS0    ADCR0,4
                      00485 #define         ADLEN     ADCR0,3
                      00486 #define         ADEOC     ADCR0,1
                      00487 #define         ADON      ADCR0,0
                      00488 
                      00489 ;ADCR1
                      00490 #define         ADCKS2    ADCR1,7
                      00491 #define         ADCKS1    ADCR1,6
                      00492 #define         ADCKS0    ADCR1,5
                      00493 #define         ADTST     ADCR1,4
                      00494 #define         RESS0     ADCR1,3
                      00495 #define         VRS2      ADCR1,2
                      00496 #define         VRS1      ADCR1,1
                      00497 #define         VRS0      ADCR1,0
                      00498 
                      00499 ;ADCR2
                      00500 #define         ADSMP3    ADCR2,3
                      00501 #define         ADSMP2    ADCR2,2
                      00502 #define         ADSMP1    ADCR2,1
                      00503 #define         ADSMP0    ADCR2,0
                      00504 
                      00505 ;ADRH
                      00506 #define         ADR11     ADRH,7
                      00507 #define         ADR10     ADRH,6
                      00508 #define         ADR9      ADRH,5
                      00509 #define         ADR8      ADRH,4
                      00510 #define         ADR7      ADRH,3
                      00511 #define         ADR6      ADRH,2
                      00512 #define         ADR5      ADRH,1
                      00513 #define         ADR4      ADRH,0
                      00514 
                      00515 ;ADRL
                      00516 #define         ADR3      ADRL,3
                      00517 #define         ADR2      ADRL,2
                      00518 #define         ADR1      ADRL,1
                      00519 #define         ADR0      ADRL,0
                      00520 
                      00521 ;ANSEL0
                      00522 #define         P12ANS    ANSEL0,7
                      00523 #define         P11ANS    ANSEL0,6
                      00524 #define         P05ANS    ANSEL0,5
                      00525 #define         P04ANS    ANSEL0,4
                      00526 #define         P03ANS    ANSEL0,3
                      00527 #define         P02ANS    ANSEL0,2
                      00528 #define         P01ANS    ANSEL0,1
                      00529 #define         P00ANS    ANSEL0,0
                      00530 
                      00531 ;ANSEL1
                      00532 #define         P15ANS    ANSEL1,1
                      00533 #define         P14ANS    ANSEL1,0
                      00534 
                      00535 ;VBGCAL
                      00536 #define         VBGCAL7    VBGCAL,7
                      00537 #define         VBGCAL6    VBGCAL,6
                      00538 #define         VBGCAL5    VBGCAL,5
                      00539 #define         VBGCAL4    VBGCAL,4
                      00540 #define         VBGCAL3    VBGCAL,3
                      00541 #define         VBGCAL2    VBGCAL,2
                      00542 #define         VBGCAL1    VBGCAL,1
                      00543 #define         VBGCAL0    VBGCAL,0
                      00544 
                      00545 ;OSCCALL
                      00546 #define         OSCCAL7    OSCCALL,7
                      00547 #define         OSCCAL6    OSCCALL,6
                      00548 #define         OSCCAL5    OSCCALL,5
                      00549 #define         OSCCAL4    OSCCALL,4
                      00550 #define         OSCCAL3    OSCCALL,3
                      00551 #define         OSCCAL2    OSCCALL,2
                      00552 #define         OSCCAL1    OSCCALL,1
                      00553 #define         OSCCAL0    OSCCALL,0
                      00554 
                      00555 ;OSCCALH
                      00556 #define         OSCCAL10   OSCCALH,2
                      00557 #define         OSCCAL9    OSCCALH,1
                      00558 #define         OSCCAL8    OSCCALH,0
                      00002 
                      00003         org     0x00
0000   A000           00004         goto    start
                      00005     
                      00006         
0001                  00007 start:      
0001   3CFF           00008         movai      0xff;P1output
0002   5795           00009         movra      OEP1
                      00010        
0003   3CFF           00011         movai      0xff;P1口数据全1
0004   5794           00012         movra      IOP1
0005   3C01           00013         movai       0x01
0006   5788           00014         movra       MCR         ;外部中断0 下降沿中断
0007   3C00           00015         movai       0x00
0008   57AC           00016         movra       PWMCR0
0009   3C90           00017         movai       0x90
000A   57B1           00018         movra       ADCR1      ;AD采样频率FHIRC/32=1MHz  ,内部参考2V                
000B   3C09           00019         movai       0x09
000C   57B0           00020         movra       ADCR0 ;测内参2V时要开AD              
                      00021         
000D   CF98           00022         bset      TC0EN
000E   CD98           00023         bset      PWM0OE
                      00024         
000F   CFAC           00025         bset      PWMCR0,7   ; 允许PWM1 翻转输出到PWM0 故PWM0无需设置
                      00026         
0010   CF9C           00027         bset      TC1EN
0011   CD9C           00028         bset      PWM1OE
0012   3C95           00029         movai     0x95
0013   578C           00030         movra     DRVCR   ;增强驱动能力选择                        
                      00031         
0014                  00032 LOOP:         
0014   7394           00033          COMR   IOP1      ;测试32M 时，io翻转频率1M 即为准确值
0015   0000           00034          NOP
0016   A000           00035          GOTO   LOOP     
                      00036          
                      00037          END
gpasm-1.7.0_beta1 (Oct 26 2015)ceshi_32M_2V.asm   2015-12-14  09:50:39         PAGE  2


SYMBOL TABLE
  LABEL                             VALUE

ADCR0                             000001B0
ADCR1                             000001B1
ADCR2                             000001B2
ADRH                              000001B4
ADRL                              000001B5
ANSEL0                            000001B6
ANSEL1                            000001B7
DRVCR                             0000018C
FSR0                              00000184
FSR1                              00000185
HIBYTE                            00000183
INDF0                             00000180
INDF1                             00000181
INDF2                             00000182
INDF3                             00000189
INTE                              0000018A
INTF                              0000018B
IOP0                              00000190
IOP1                              00000194
KBCR                              0000018E
LOOP                              00000014
LVDCR                             000001AF
MCR                               00000188
OEP0                              00000191
OEP1                              00000195
OSCCALH                           000001FB
OSCCALL                           000001FC
OSCM                              000001AE
PCL                               00000186
PDP0                              00000193
PDP1                              00000197
PFLAG                             00000187
PUP0                              00000192
PUP1                              00000196
PWM0DE                            000001A8
PWM1DE                            000001A9
PWM2DE                            000001AA
PWMCR0                            000001AC
PWMCR1                            000001AD
T0CNT                             00000199
T0CR                              00000198
T0DATA                            0000019B
T0LOAD                            0000019A
T1CNT                             0000019D
T1CR                              0000019C
T1DATA                            0000019F
T1LOAD                            0000019E
T2CNT                             000001A1
T2CR                              000001A0
T2DATA                            000001A3
T2LOAD                            000001A2
T3CNT                             000001A5
T3CR                              000001A4
T3LOAD                            000001A6
VBGCAL                            000001F8
__32P64                           00000001
start                             00000001
ADCHS0                            ADCR0,4
ADCHS1                            ADCR0,5
ADCHS2                            ADCR0,6
ADCHS3                            ADCR0,7
ADCKS0                            ADCR1,5
ADCKS1                            ADCR1,6
ADCKS2                            ADCR1,7
ADEOC                             ADCR0,1
ADIE                              INTE,6
ADIF                              INTFLAG,6
ADLEN                             ADCR0,3
ADON                              ADCR0,0
ADR0                              ADRL,0
ADR1                              ADRL,1
ADR10                             ADRH,6
ADR11                             ADRH,7
ADR2                              ADRL,2
ADR3                              ADRL,3
ADR4                              ADRH,0
ADR5                              ADRH,1
ADR6                              ADRH,2
ADR7                              ADRH,3
ADR8                              ADRH,4
ADR9                              ADRH,5
ADSMP0                            ADCR2,0
ADSMP1                            ADCR2,1
ADSMP2                            ADCR2,2
ADSMP3                            ADCR2,3
ADTST                             ADCR1,4
BUZ0OE                            T0CR,5
BUZ1OE                            T1CR,5
BUZ2OE                            T2CR,5
C                                 PFLAG,0
CLKS                              OSCM,2
DC                                PFLAG,1
DRVS                              DRVCR,7
FPWMEN                            PWMCR0,7
FPWMF0                            PWMCR0,0
FPWMF1                            PWMCR0,1
FPWMR0                            PWMCR0,2
FPWMR1                            PWMCR0,3
FSR                               FSR0
FSR00                             FSR0,0
FSR01                             FSR0,1
FSR02                             FSR0,2
FSR03                             FSR0,3
FSR04                             FSR0,4
FSR05                             FSR0,5
FSR06                             FSR0,6
FSR07                             FSR0,7
FSR10                             FSR1,0
FSR11                             FSR1,1
FSR12                             FSR1,2
FSR13                             FSR1,3
FSR14                             FSR1,4
FSR15                             FSR1,5
FSR16                             FSR1,6
FSR17                             FSR1,7
GIE                               MCR,7
HFEN                              OSCM,0
HIBYTE0                           HIBYTE,0
HIBYTE1                           HIBYTE,1
HIBYTE2                           HIBYTE,2
HIBYTE3                           HIBYTE,3
HIBYTE4                           HIBYTE,4
HIBYTE5                           HIBYTE,5
HIBYTE6                           HIBYTE,6
HIBYTE7                           HIBYTE,7
INDF                              INDF0
INDF00                            INDF0,0
INDF01                            INDF0,1
INDF02                            INDF0,2
INDF03                            INDF0,3
INDF04                            INDF0,4
INDF05                            INDF0,5
INDF06                            INDF0,6
INDF07                            INDF0,7
INDF10                            INDF1,0
INDF11                            INDF1,1
INDF12                            INDF1,2
INDF13                            INDF1,3
INDF14                            INDF1,4
INDF15                            INDF1,5
INDF16                            INDF1,6
INDF17                            INDF1,7
INDF20                            INDF2,0
INDF21                            INDF2,1
INDF22                            INDF2,2
INDF23                            INDF2,3
INDF24                            INDF2,4
INDF25                            INDF2,5
INDF26                            INDF2,6
INDF27                            INDF2,7
INDF30                            INDF3,0
INDF31                            INDF3,1
INDF32                            INDF3,2
INDF33                            INDF3,3
INDF34                            INDF3,4
INDF35                            INDF3,5
INDF36                            INDF3,6
INDF37                            INDF3,7
INT0IE                            INTE,2
INT0IF                            INTFLAG,2
INT1IE                            INTE,3
INT1IF                            INTFLAG,3
INTECON                           INTE
INTFLAG                           INTF
KBCR0                             KBCR,0
KBCR1                             KBCR,1
KBCR2                             KBCR,2
KBCR3                             KBCR,3
KBCR4                             KBCR,4
KBCR5                             KBCR,5
KBCR6                             KBCR,6
KBIE                              INTE,4
KBIF                              INTFLAG,4
LDRVS                             DRVCR,6
LFEN                              OSCM,1
LVDEN                             LVDCR,7
LVDF                              LVDCR,0
LVDS0                             LVDCR,3
LVDS1                             LVDCR,4
LVDS2                             LVDCR,5
LVDS3                             LVDCR,6
MINT00                            MCR,0
MINT01                            MCR,1
MINT10                            MCR,2
MINT11                            MCR,3
OSCCAL0                           OSCCALL,0
OSCCAL1                           OSCCALL,1
OSCCAL10                          OSCCALH,2
OSCCAL2                           OSCCALL,2
OSCCAL3                           OSCCALL,3
OSCCAL4                           OSCCALL,4
OSCCAL5                           OSCCALL,5
OSCCAL6                           OSCCALL,6
OSCCAL7                           OSCCALL,7
OSCCAL8                           OSCCALH,0
OSCCAL9                           OSCCALH,1
P00ANS                            ANSEL0,0
P00D                              IOP0,0
P00OE                             OEP0,0
P00PD                             PDP0,0
P00PU                             PUP0,0
P01ANS                            ANSEL0,1
P01D                              IOP0,1
P01OE                             OEP0,1
P01PD                             PDP0,1
P01PU                             PUP0,1
P02ANS                            ANSEL0,2
P02D                              IOP0,2
P02OE                             OEP0,2
P02PD                             PDP0,2
P02PU                             PUP0,2
P03ANS                            ANSEL0,3
P03D                              IOP0,3
P03OE                             OEP0,3
P03PD                             PDP0,3
P03PU                             PUP0,3
P04ANS                            ANSEL0,4
P04D                              IOP0,4
P04OE                             OEP0,4
P04PD                             PDP0,4
P04PU                             PUP0,4
P05ANS                            ANSEL0,5
P05D                              IOP0,5
P05OE                             OEP0,5
P05PD                             PDP0,5
P05PU                             PUP0,5
P0HCON                            PUP0
P10D                              IOP1,0
P10OE                             OEP1,0
P10PD                             PDP1,0
P10PU                             PUP1,0
P11ANS                            ANSEL0,6
P11D                              IOP1,1
P11OE                             OEP1,1
P11PD                             PDP1,1
P11PU                             PUP1,1
P12ANS                            ANSEL0,7
P12D                              IOP1,2
P12OE                             OEP1,2
P12PD                             PDP1,2
P12PU                             PUP1,2
P13D                              IOP1,3
P13OE                             OEP1,3
P13PD                             PDP1,3
P13PU                             PUP1,3
P14ANS                            ANSEL1,0
P14D                              IOP1,4
P14OE                             OEP1,4
P14PD                             PDP1,4
P14PU                             PUP1,4
P15ANS                            ANSEL1,1
P15D                              IOP1,5
P15OE                             OEP1,5
P15PD                             PDP1,5
P15PU                             PUP1,5
P16D                              IOP1,6
P16OE                             OEP1,6
P16PD                             PDP1,6
P16PU                             PUP1,6
P17D                              IOP1,7
P17OE                             OEP1,7
P17PD                             PDP1,7
P17PU                             PUP1,7
P1HCON                            PUP1
PC0                               PCL,0
PC1                               PCL,1
PC2                               PCL,2
PC3                               PCL,3
PC4                               PCL,4
PC5                               PCL,5
PC6                               PCL,6
PC7                               PCL,7
PD                                MCR,4
PDLYS0                            DRVCR,2
PDLYS1                            DRVCR,3
PDRVS                             DRVCR,5
PDRVS0                            DRVCR,4
PMODE0                            PWMCR1,0
PMODE1                            PWMCR1,1
PMODE2                            PWMCR1,2
PSPDS0                            DRVCR,0
PSPDS1                            DRVCR,1
PWM0DE0                           PWM0DE,0
PWM0DE1                           PWM0DE,1
PWM0DE2                           PWM0DE,2
PWM0INV                           PWMCR0,4
PWM0OE                            T0CR,6
PWM1DE0                           PWM1DE,0
PWM1DE1                           PWM1DE,1
PWM1DE2                           PWM1DE,2
PWM1INV                           PWMCR0,5
PWM1OE                            T1CR,6
PWM2DE0                           PWM2DE,0
PWM2DE1                           PWM2DE,1
PWM2DE2                           PWM2DE,2
PWM2INV                           PWMCR0,6
PWM2OE                            T2CR,6
RESS0                             ADCR1,3
STATUS                            PFLAG
STBH                              OSCM,4
STBL                              OSCM,5
T0                                MCR,5
T0C0                              T0CNT,0
T0C1                              T0CNT,1
T0C2                              T0CNT,2
T0C3                              T0CNT,3
T0C4                              T0CNT,4
T0C5                              T0CNT,5
T0C6                              T0CNT,6
T0C7                              T0CNT,7
T0DATA0                           T0DATA,0
T0DATA1                           T0DATA,1
T0DATA2                           T0DATA,2
T0DATA3                           T0DATA,3
T0DATA4                           T0DATA,4
T0DATA5                           T0DATA,5
T0DATA6                           T0DATA,6
T0DATA7                           T0DATA,7
T0IE                              INTE,0
T0IF                              INTFLAG,0
T0LOAD0                           T0LOAD,0
T0LOAD1                           T0LOAD,1
T0LOAD2                           T0LOAD,2
T0LOAD3                           T0LOAD,3
T0LOAD4                           T0LOAD,4
T0LOAD5                           T0LOAD,5
T0LOAD6                           T0LOAD,6
T0LOAD7                           T0LOAD,7
T0PR0                             T0CR,0
T0PR1                             T0CR,1
T0PR2                             T0CR,2
T0PS0                             T0CR,3
T0PS1                             T0CR,4
T1C0                              T1CNT,0
T1C1                              T1CNT,1
T1C2                              T1CNT,2
T1C3                              T1CNT,3
T1C4                              T1CNT,4
T1C5                              T1CNT,5
T1C6                              T1CNT,6
T1C7                              T1CNT,7
T1DATA0                           T1DATA,0
T1DATA1                           T1DATA,1
T1DATA2                           T1DATA,2
T1DATA3                           T1DATA,3
T1DATA4                           T1DATA,4
T1DATA5                           T1DATA,5
T1DATA6                           T1DATA,6
T1DATA7                           T1DATA,7
T1IE                              INTE,1
T1IF                              INTFLAG,1
T1LOAD0                           T1LOAD,0
T1LOAD1                           T1LOAD,1
T1LOAD2                           T1LOAD,2
T1LOAD3                           T1LOAD,3
T1LOAD4                           T1LOAD,4
T1LOAD5                           T1LOAD,5
T1LOAD6                           T1LOAD,6
T1LOAD7                           T1LOAD,7
T1PR0                             T1CR,0
T1PR1                             T1CR,1
T1PR2                             T1CR,2
T1PS0                             T1CR,3
T1PS1                             T1CR,4
T2C0                              T2CNT,0
T2C1                              T2CNT,1
T2C2                              T2CNT,2
T2C3                              T2CNT,3
T2C4                              T2CNT,4
T2C5                              T2CNT,5
T2C6                              T2CNT,6
T2C7                              T2CNT,7
T2DATA0                           T2DATA,0
T2DATA1                           T2DATA,1
T2DATA2                           T2DATA,2
T2DATA3                           T2DATA,3
T2DATA4                           T2DATA,4
T2DATA5                           T2DATA,5
T2DATA6                           T2DATA,6
T2DATA7                           T2DATA,7
T2IE                              INTE,5
T2IF                              INTFLAG,5
T2LOAD0                           T2LOAD,0
T2LOAD1                           T2LOAD,1
T2LOAD2                           T2LOAD,2
T2LOAD3                           T2LOAD,3
T2LOAD4                           T2LOAD,4
T2LOAD5                           T2LOAD,5
T2LOAD6                           T2LOAD,6
T2LOAD7                           T2LOAD,7
T2PR0                             T2CR,0
T2PR1                             T2CR,1
T2PR2                             T2CR,2
T2PS0                             T2CR,3
T2PS1                             T2CR,4
T3C0                              T3CNT,0
T3C1                              T3CNT,1
T3C2                              T3CNT,2
T3C3                              T3CNT,3
T3C4                              T3CNT,4
T3C5                              T3CNT,5
T3C6                              T3CNT,6
T3C7                              T3CNT,7
T3IE                              INTE,7
T3IF                              INTFLAG,7
T3LOAD0                           T3LOAD,0
T3LOAD1                           T3LOAD,1
T3LOAD2                           T3LOAD,2
T3LOAD3                           T3LOAD,3
T3LOAD4                           T3LOAD,4
T3LOAD5                           T3LOAD,5
T3LOAD6                           T3LOAD,6
T3LOAD7                           T3LOAD,7
T3PR0                             T3CR,0
T3PR1                             T3CR,1
T3PR2                             T3CR,2
T3PS0                             T3CR,3
T3PS1                             T3CR,4
TC0EN                             T0CR,7
TC1EN                             T1CR,7
TC2EN                             T2CR,7
TC3EN                             T3CR,7
TMRCKS0                           PWMCR1,3
TMRCKS1                           PWMCR1,4
VBGCAL0                           VBGCAL,0
VBGCAL1                           VBGCAL,1
VBGCAL2                           VBGCAL,2
VBGCAL3                           VBGCAL,3
VBGCAL4                           VBGCAL,4
VBGCAL5                           VBGCAL,5
VBGCAL6                           VBGCAL,6
VBGCAL7                           VBGCAL,7
VRS0                              ADCR1,0
VRS1                              ADCR1,1
VRS2                              ADCR1,2
Z                                 PFLAG,2

Errors   :     0
Warnings :     0 reported,     0 suppressed
Messages :     0 reported,     0 suppressed

