gpasm-1.7.0_beta1 (Feb  6 2015)ceshiboost.asm     2015-7-27  14:43:24          PAGE  1


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00001 ;27M 实际芯片23M 仿真16M
                      00002 ;AD基准电压是2.5V
                      00003 ;注意十进制和十六进制的表示
                      00004 #include "mc32P7311.inc"
                      00001 
                      00002 
                      00003 ;mc32p7311 header file
                      00004 ;
                      00005 ; 
                      00006 
                      00007 ;define must write at first row
                      00008        
  00000180            00009 INDF0   EQU     H'0180'
  00000181            00010 INDF1   EQU     H'0181'
  00000182            00011 INDF2   EQU     H'0182'
  00000183            00012 HIBYTE  EQU     H'0183'
  00000184            00013 FSR0    EQU     H'0184'
  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 DRVCR0  EQU     0X18C
  0000018D            00022 DRVCR1  EQU     0X18D
  0000018E            00023 KBCR    EQU     0X18E
                      00024 
  00000190            00025 IOP0    EQU     0X190
  00000191            00026 OEP0    EQU     0X191
  00000192            00027 PUP0    EQU     0X192
  00000193            00028 PDP0    EQU     0X193
  00000194            00029 IOP1    EQU     0X194
  00000195            00030 OEP1    EQU     0X195
  00000196            00031 PUP1    EQU     0X196
  00000197            00032 PDP1    EQU     0X197
                      00033 
  00000198            00034 T0CR    EQU     0X198
  00000199            00035 T0CNT   EQU     0X199
  0000019A            00036 T0LOAD  EQU     0X19A
  0000019B            00037 T0DATA  EQU     0X19B
  0000019C            00038 T1CR    EQU     0X19C
  0000019D            00039 T1CNT   EQU     0X19D
  0000019E            00040 T1LOAD  EQU     0X19E
  0000019F            00041 T1DATA  EQU     0X19F
  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 T0DE    EQU     0X1A8
  000001A9            00051 T1DE    EQU     0X1A9
  000001AA            00052 T2DE    EQU     0X1AA
                      00053 
  000001AC            00054 PWMCR0   EQU     0X1AC
  000001AD            00055 PWMCR1   EQU     0X1AD
                      00056 
  000001AE            00057 OSCM    EQU     0X1AE
  000001AF            00058 LVDCR   EQU     0X1AF
                      00059 
  000001B0            00060 ADCR0   EQU     0X1B0
  000001B1            00061 ADCR1   EQU     0X1B1
  000001B2            00062 ADCR2   EQU     0X1B2
                      00063 
  000001B4            00064 ADRH    EQU     0X1B4
  000001B5            00065 ADRL    EQU     0X1B5
  000001B6            00066 ANSEL0  EQU     0X1B6
  000001B7            00067 ANSEL1  EQU     0X1B7
                      00068 
  000001FB            00069 OSCCAL  EQU     0X1FB
                      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 
                      00078 ;int 
                      00079 #define         GIE             MCR,7
                      00080 #define         T0              MCR,5
                      00081 #define         PD              MCR,4
                      00082 #define         MINT11          MCR,3
                      00083 #define         MINT10          MCR,2
                      00084 #define         MINT01          MCR,1
                      00085 #define         MINT00          MCR,0
                      00086   
                      00087 
                      00088 ;pflag bit 
                      00089 #define         Z       PFLAG,2
                      00090 #define         DC      PFLAG,1
                      00091 #define         C       PFLAG,0 
                      00092 
                      00093 
                      00094 ;INTE0
                      00095 ; 1=enable, 0=disable
                      00096 #define         ADIE    INTE,6
                      00097 #define         T2IE    INTE,5
                      00098 #define         KBIE    INTE,4
                      00099 #define         INT1IE  INTE,3
                      00100 #define         INT0IE  INTE,2
                      00101 #define         T1IE    INTE,1
                      00102 #define         T0IE    INTE,0
                      00103 
                      00104 ;TIME0
                      00105 #define         TC0EN           T0CR,7
                      00106 #define         PWM0OE          T0CR,6
                      00107 #define         BUZ0OE          T0CR,5
                      00108 #define         T0PS1           T0CR,4
                      00109 #define         T0PS0           T0CR,3
                      00110 #define         T0PR2           T0CR,2
                      00111 #define         T0PR1           T0CR,1
                      00112 #define         T0PR0           T0CR,0
                      00113 
                      00114 ;TIME1
                      00115 #define         TC1EN           T1CR,7
                      00116 #define         PWM1OE          T1CR,6
                      00117 #define         BUZ1OE          T1CR,5
                      00118 #define         T1PS1           T1CR,4
                      00119 #define         T1PS0           T1CR,3
                      00120 #define         T1PR2           T1CR,2
                      00121 #define         T1PR1           T1CR,1
                      00122 #define         T1PR0           T1CR,0
                      00123 
                      00124 ;TIME2
                      00125 #define         TC2EN           T2CR,7
                      00126 #define         PWM2OUT         T2CR,6
                      00127 #define         BUZ2OE          T2CR,5
                      00128 #define         T2PS1           T2CR,4
                      00129 #define         T2PS0           T2CR,3
                      00130 #define         T2PR2           T2CR,2
                      00131 #define         T2PR1           T2CR,1
                      00132 #define         T2PR0           T2CR,0
                      00133 
                      00134 ;TIME3
                      00135 #define         TC3EN           T3CR,7
                      00136 
                      00137 #define         T3PS1           T3CR,4
                      00138 #define         T3PS0           T3CR,3
                      00139 #define         T3PR2           T3CR,2
                      00140 #define         T3PR1           T3CR,1
                      00141 #define         T3PR0           T3CR,0
                      00142 
                      00143 ;OSCM
                      00144 #define         STBL    OSCM,5
                      00145 #define         STBH    OSCM,4
                      00146 #define         CLKS    OSCM,2
                      00147 #define         LFEN    OSCM,1
                      00148 #define         HFEN    OSCM,0          
                      00149 
                      00150 
                      00151 ;INTF
                      00152 ;1=active ,
                      00153 #define         ADIF    INTF,6 
                      00154 #define         T2IF    INTF,5
                      00155 #define         KBIF    INTF,4
                      00156 #define         INT1IF  INTF,3
                      00157 #define         INT0IF  INTF,2
                      00158 #define         T1IF    INTF,1
                      00159 #define         T0IF    INTF,0
                      00160 
                      00161 ;----------ADC------------
                      00162 #define AIN0                                    0<<4
                      00163 #define AIN1                                    1<<4
                      00164 #define AIN2                                    2<<4
                      00165 #define AIN3                                    3<<4
                      00166 #define AIN4                                    4<<4
                      00167 #define AIN5                                    5<<4
                      00168 #define VDD_DIV3                        6<<4
                      00169 #define VOUTV_DIV3              7<<4
                      00170 
                      00171 
                      00172 #define FSYS_DIV16              0<<2
                      00173 #define FSYS_DIV8                       1<<2
                      00174 #define FSYS_DIV4                       2<<2
                      00175 #define FSYS_DIV2                       3<<2
                      00176 
                      00177 #define ADEOC           ADCR0,1
                      00178 #define ADON            ADCR0,0
                      00179 
                      00180 #define RESS0           ADCR1,3
                      00181 #define VRS2            ADCR1,2
                      00182 #define VRS1            ADCR1,1
                      00183 #define VRS0            ADCR1,0
                      00184 ;#define        inca    addai 1
                      00185 
                      00186 
                      00187 #define DDR0            OEP0
                      00188 #define DD00            DDR0,0
                      00189 #define DD01            DDR0,1
                      00190 #define DD02            DDR0,2
                      00191 #define DD03            DDR0,3
                      00192 #define DD04            DDR0,4
                      00193 #define DD05            DDR0,5
                      00194 
                      00195 #define P0      IOP0
                      00196 #define P00     P0,0
                      00197 #define P01     P0,1
                      00198 #define P02     P0,2
                      00199 #define P03     P0,3
                      00200 #define P04     P0,4
                      00201 #define P05     P0,5
                      00202 
                      00203 
                      00204 #define DDR1            OEP1
                      00205 #define DD10            DDR1,0
                      00206 #define DD11            DDR1,1
                      00207 #define DD12            DDR1,2
                      00208 #define DD13            DDR1,3
                      00209 #define DD14            DDR1,4
                      00210 #define DD15            DDR1,5
                      00211 #define DD16            DDR1,6
                      00212 #define DD17            DDR1,7
                      00213 
                      00214 #define P1      IOP1
                      00215 #define P10     P1,0
                      00216 #define P11     P1,1
                      00217 #define P12     P1,2
                      00218 #define P13     P1,3
                      00219 #define P14     P1,4
                      00220 #define P15     P1,5
                      00221 #define P16     P1,6
                      00222 #define P17     P1,7
                      00223 
                      00224 
                      00005 
                      00006 ;==============IO口定义===============
                      00007 #define    VREF            P0,4    ;参考电压2.5V
                      00008 #define    DET_CURRENT     P0,2    ;电流检测
                      00009 #define    LIGHT_LED       P1,0    ;照明灯
                      00010 #define    BOOST_EN        P0,5    ;升压使能
                      00011 
                      00012 #define    KEY_I           P1,3    ;按键
                      00013 #define    LED34           P1,4    ;电量指示
                      00014 #define    LED12           P1,5
                      00015 #define    LED56           P1,0
                      00016 #define    LED78           P0,3
                      00017 #define    CHRG            P1,1    ;检测POWER5v
                      00018 
                      00019 #define    PMOS            P1,6    ;充电PWM控制
                      00020 #define    NMOS            P1,7    ;升压PWM控制
                      00021 
                      00022 ;==============常量定义===============
                      00023 #define   KEY_EFFECT         100 ;按键抖动计数
                      00024 #define   NO_KEY             0  ;无按键
                      00025 #define   SHORT_KEY          1  ;短按
                      00026 #define   LONG_KEY           2  ;长按--
                      00027 
                      00028 #define   BAT_ADCH           0xa9  ;AD通道选择;1/4VOUT1设为0xc9;1/4VDD设为0xa9
                      00029 #define   BOOST5V_ADCH       0xb9  ;1/4VOUT0
                      00030 #define   CURRENT_ADCH       0x59  ;AN5
                      00031 
                      00032 ;参考电压内部3V ,采样12Bit ,1/4 outv ,1/4vdd ,十进制
                      00033 #define         LOW_VBAT_AD         1024 ; 电池低于3v
                      00034 #define         VBAT_AD0            1092 ; 3.2v 低压报警1/4VOUT0 
                      00035 #define         VBAT_AD1            1194 ; 3.5v led1  
                      00036 #define         VBAT_AD2            1280 ; 3.75v led2  
                      00037 #define         VBAT_AD3            1331 ; 3.9v < led3 > led4
                      00038 
                      00039 ;====充电参数=======
                      00040 #define         CHARGE_PWM_DUTY_MAX             98 ;充电最大占空比
                      00041 #define         CHARGE_PWM_DUTY_MIN             10 ; 充电最小占空比
                      00042 
                      00043 ;============恒定充电电流为1A，则涓流充电电流为100mA
                      00044 #define         SHUT_OFF_CURRENT_AD             7  ; 充电电流关断值 100mA*0.05R（认为电池充满）
                      00045 
                      00046 #define         CONST_CURRENT_AD                68 ;1A  ，   136 :恒流充电值 2A
                      00047 
                      00048 #define         CONST_VOLTAGE_AD                1450;参考3V;   1450 ; 恒压充电值 4.25V
                      00049 #define         FULL_VOLTAGE_AD                 1500;充满电压值 4.25V
                      00050 
                      00051 #define         CHARGE_FULL_CNT                 100 ;充满计数
                      00052 
                      00053 ;=====升压参数=======
                      00054 #define         BOOST_PWM_DUTY_MIN              2 ;P16 P17反向输出 最小占空比不能为0 最大也不能到T1LOAD的值
                      00055 #define         BOOST_PWM_DUTY_MAX              50 ;50
                      00056 
                      00057 #define         BOOST_5V_CONST_AD               1706  ;5V    (内部参考3V)
                      00058 
                      00059 ;无负载计数值
                      00060 #define         NO_LOAD_CNT                     5 ;判断负载拔掉次数
                      00061 #define         LOAD_CNT                                                                5
                      00062 
                      00063 ;检测负载电流时的AD值范围
                      00064 #define         LOAD_CURRENT_AD_MIN             7   ; 100mA*0.05R
                      00065 #define         LOAD_CURRENT_AD_MAX            157  ;限流值 2.3A*0.05R
                      00066 #define         SHORT_CIRCUIT_AD               334  ;短路保护电流值
                      00067 
                      00068 ;==============变量定义 RAM ===============
                      00069         cblock  0x0
                      00070  accTemp  ;中断保存暂存器
                      00071  statusTemp
                      00072 
                      00073  DelayCnt ;延时计数
                      00074  DelayCnt1
                      00075 
                      00076  keyCode         ;键值
                      00077  keyFilterTime   ;按键去抖时间
                      00078  keyPressTime    ;按键时间 
                      00079 
                      00080  time_1ms  ;计时
                      00081  time_10ms
                      00082  time_100ms
                      00083  time_500ms
                      00084  sleepTime
                      00085 
                      00086  Flag                ;标志位寄存器
                      00087  Flag1
                      00088  Flag2
                      00089 
                      00090  ledFlags   ;LED灯标志位 用低4位
                      00091  ledScanCnt ; LED扫描计数
                      00092 
                      00093  displayMode ;电池显示模式
                      00094 
                      00095  cycleCnt ;循环计数
                      00096  cycleCnt1;
                      00097 
                      00098  sumAD        :2 ;多次AD值的和
                      00099  adValue      :2 ;单次采样值
                      00100  vbatAD       :2 ;电池电压值
                      00101  currentAD    :2 ;电流检测值
                      00102  lastAD       :2 ;上一次值
                      00103  boostAD5V    :2 ;升压5V值
                      00104  adAvg        :2
                      00105 
                      00106  adChTemp     ;AD通道
                      00107  ;shortCircuitAD; :2
                      00108  
                      00109  loadCnt 
                      00110  noLoadCnt
                      00111  chargeFullCnt ; 充满计数
                      00112  dutyChargeCnt
                      00113  dutyBoostCnt
                      00114  filterCnt
                      00115  marqueeLEDFlags ;跑马灯数量 值为0x1 x03 0x7 0xf
                      00116  loopCnt
                      00117         endc
                      00118 ;==========寄存器标志位=======================
                      00119 #define         F_keyRelease     Flag,0  ;按键释放
                      00120 #define         F_keyValid       Flag,1  ;按键有效
                      00121 #define         F_load           Flag,2  ;负载标志 1 active
                      00122 #define         F_power5V        Flag,3  ;检测5V接入
                      00123 #define         F_sleep          Flag,4  ;睡眠标志
                      00124 #define         F_ledOff         Flag,5  ;LED指示灯灭
                      00125 #define         F_showVBAT       Flag,6  ;电量显示
                      00126 #define         F_blink          Flag,7  ;闪烁标志
                      00127 
                      00128 #define         F_time10ms       Flag1,0 ;10ms标志 
                      00129 #define         F_time100ms      Flag1,1 ;100ms标志
                      00130 #define         F_chargeFull     Flag1,2 ;充满标志   
                      00131 #define         F_preCharge      Flag1,3 ;预充电
                      00132 #define         F_time500ms      Flag1,4 ;500ms标志
                      00133 #define         F_detLoad        Flag1,5 ;开始检测负载
                      00134 #define         F_lightSwitch    Flag1,6 ;照明灯开关
                      00135 #define         F_displayEn      Flag1,7 ;显示使能
                      00136 
                      00137 #define         F_noLoadState     Flag2,0 ;空载状态
                      00138 #define         F_marquee500ms    Flag2,1 ;跑马灯间隔时间
                      00139 
                      00140 ;=============程序开始======================
                      00141 
                      00142                 ORG             0x00
                      00143 
0000   DF88           00144                 bclr            GIE     ;关中断
0001   A000           00145                 goto            START
                      00146 
                      00147 ;=============中断向量====================
                      00148                ORG              0x08
0008                  00149 InterruptVector:
0008   5600           00150                movra       accTemp   ;中断之前保存ACC里面的值
0009   4587           00151                swapar      STATUS    ;中断之前保存状态寄存器
000A   5601           00152                movra       statusTemp
                      00153 
000B                  00154 TIM0_IRQ:
                      00155           ;jbclr      T0IE     ;是否开启了定时器0  开启1 关闭0
000B   E18B           00156           jbset       T0IF     ;定时器0是否产生了中断 1产生 0无
000C   A000           00157           goto        TIM1_IRQ
000D   D18B           00158           bclr        T0IF
                      00159 
000E                  00160 TIM1_IRQ:
                      00161           ;jbclr      T1IE   ;是否开启了定时器1  开启1 关闭0
000E   E38B           00162           jbset       T1IF   ;定时器1是否产生了中断 1产生 0无
000F   A000           00163           goto        TIM2_IRQ
0010   D38B           00164           bclr        T1IF
                      00165 
0011                  00166 TIM2_IRQ:
                      00167           ;jbclr      T2IE   ;是否开启了定时器2  开启1 关闭0
0011   EB8B           00168           jbset       T2IF   ;定时器2是否产生了中断 1产生 0无
0012   A000           00169           goto        INT0_IRQ
0013   DB8B           00170           bclr        T2IF
0014   6607           00171           incr        time_1ms
0015   EE0D           00172           jbset       F_displayEn
0016   A000           00173           goto        TimeAccumulation ;时间累加
                      00174           ;call        _DisplayLED
0017                  00175 TimeAccumulation:
0017   3C0A           00176           movai       10
0018   4007           00177           xorar       time_1ms
0019   E587           00178           jbset       Z
001A   A000           00179           goto        INT0_IRQ
001B   7607           00180           clrr        time_1ms
001C   6608           00181           incr        time_10ms
001D   C00D           00182           bset        F_time10ms
                      00183                                 
                      00184 
001E                  00185 INT0_IRQ: ;外部中断0
                      00186           ;jbclr      INT0IE ; 1开启了外部中断0 0关闭
001E   E58B           00187           jbset       INT0IF
001F   A000           00188           goto        INT1_IRQ
0020   D58B           00189           bclr        INT0IF
                      00190 
0021                  00191 INT1_IRQ: ;外部中断1
                      00192             ;jbclr      INT1IE ; 1开启了外部中断 0关闭
0021   E78B           00193             jbset       INT1IF
0022   A000           00194             goto        KBIM_IRQ
0023   D78B           00195             bclr        INT1IF
                      00196 
0024                  00197 KBIM_IRQ: ;键盘中断
                      00198             ;jbclr      KBIE
0024   E98B           00199             jbset       KBIF
0025   A000           00200             goto        ExitInterrupt
0026   D98B           00201             bclr        KBIF
                      00202                                 
                      00203 
0027                  00204 ExitInterrupt:;中断恢复
0027   4401           00205                 swapar      statusTemp
0028   5787           00206                 movra       STATUS
                      00207                 ;swapr      acc_temp
                      00208                 ;swapar     acc_temp
0029   5800           00209                 movar       accTemp
002A   000D           00210                 retie
                      00211 ;=========end interrupt===========
                      00212 
                      00213 ;==========初始化寄存器===========
002B                  00214 _InitRst:
                      00215 
002B   3CDF           00216         movai       0xdf
002C   5790           00217         movra       IOP0
002D   3CFF           00218         movai       0xff
002E   5794           00219         movra       IOP1
                      00220         
002F   3C00           00221         movai       0x00
0030   5792           00222         movra       PUP0
0031   3C08           00223         movai       0x08
0032   5796           00224         movra       PUP1
0033   3C02           00225         movai       0x02
0034   5793           00226         movra       PDP0
0035   3C00           00227         movai       0x00
0036   5797           00228         movra       PDP1
                      00229         
0037   3CE9           00230         movai       0xe9
0038   5791           00231         movra       OEP0    ;P02 P01 P04 做输入
0039   3CF5           00232         movai       0xf5
003A   5795           00233         movra       OEP1    ;P11 P13做输入
                      00234         
003B   3C0A           00235         movai       0x0a
003C   57B6           00236         movra       ANSEL0   ;P02 P04做AD采样
                      00237         
003D   3C00           00238         movai       0x00    ;时钟源为FCPU 1分频 仿真只有16M 实际芯片23M
003E   5798           00239         movra       T0CR
003F   3C63           00240         movai       99
0040   579A           00241         movra       T0LOAD  ;PWM充电频率 ((1/23)/4)*1*(99+1) = 57K 充电频率
0041   3C00           00242         movai       0
0042   579B           00243         movra       T0DATA
                      00244         
0043   3C0A           00245         movai       0x0a     ;时钟源为FHOSC 1分频
0044   579C           00246         movra       T1CR
0045   3C3F           00247         movai       63
0046   579E           00248         movra       T1LOAD  ;升压PWM频率(1/27)*1*(63+1) 421K 实际23M
0047   3C0F           00249         movai       15
0048   579F           00250         movra       T1DATA     
0049   CF9C           00251         bset        TC1EN
004A   CD9C           00252         bset        PWM1OE       
004B   000C           00253         return
                      00254                                                                    
004C                  00255 START:         
004C   8000           00256           call        _InitRst
004D   A000           00257           goto        $                               
                      00258         en
gpasm-1.7.0_beta1 (Feb  6 2015)ceshiboost.asm     2015-7-27  14:43:24          PAGE  2


SYMBOL TABLE
  LABEL                             VALUE

ADCR0                             000001B0
ADCR1                             000001B1
ADCR2                             000001B2
ADRH                              000001B4
ADRL                              000001B5
ANSEL0                            000001B6
ANSEL1                            000001B7
DRVCR0                            0000018C
DRVCR1                            0000018D
DelayCnt                          00000002
DelayCnt1                         00000003
ExitInterrupt                     00000027
FSR0                              00000184
FSR1                              00000185
Flag                              0000000C
Flag1                             0000000D
Flag2                             0000000E
HIBYTE                            00000183
INDF0                             00000180
INDF1                             00000181
INDF2                             00000182
INDF3                             00000189
INT0_IRQ                          0000001E
INT1_IRQ                          00000021
INTE                              0000018A
INTF                              0000018B
IOP0                              00000190
IOP1                              00000194
InterruptVector                   00000008
KBCR                              0000018E
KBIM_IRQ                          00000024
LVDCR                             000001AF
MCR                               00000188
OEP0                              00000191
OEP1                              00000195
OSCCAL                            000001FB
OSCM                              000001AE
PCL                               00000186
PDP0                              00000193
PDP1                              00000197
PFLAG                             00000187
PUP0                              00000192
PUP1                              00000196
PWMCR0                            000001AC
PWMCR1                            000001AD
START                             0000004C
T0CNT                             00000199
T0CR                              00000198
T0DATA                            0000019B
T0DE                              000001A8
T0LOAD                            0000019A
T1CNT                             0000019D
T1CR                              0000019C
T1DATA                            0000019F
T1DE                              000001A9
T1LOAD                            0000019E
T2CNT                             000001A1
T2CR                              000001A0
T2DATA                            000001A3
T2DE                              000001AA
T2LOAD                            000001A2
T3CNT                             000001A5
T3CR                              000001A4
T3LOAD                            000001A6
TIM0_IRQ                          0000000B
TIM1_IRQ                          0000000E
TIM2_IRQ                          00000011
TimeAccumulation                  00000017
_.org_8_004D                      0000004D
_InitRst                          0000002B
__32P21                           00000001
accTemp                           00000000
adAvg                             00000020
adChTemp                          00000022
adValue                           00000016
boostAD5V                         0000001E
chargeFullCnt                     00000025
currentAD                         0000001A
cycleCnt                          00000012
cycleCnt1                         00000013
displayMode                       00000011
dutyBoostCnt                      00000027
dutyChargeCnt                     00000026
filterCnt                         00000028
keyCode                           00000004
keyFilterTime                     00000005
keyPressTime                      00000006
lastAD                            0000001C
ledFlags                          0000000F
ledScanCnt                        00000010
loadCnt                           00000023
loopCnt                           0000002A
marqueeLEDFlags                   00000029
noLoadCnt                         00000024
sleepTime                         0000000B
statusTemp                        00000001
sumAD                             00000014
time_100ms                        00000009
time_10ms                         00000008
time_1ms                          00000007
time_500ms                        0000000A
vbatAD                            00000018
ADEOC                             ADCR0,1
ADIE                              INTE,6
ADIF                              INTF,6
ADON                              ADCR0,0
AIN0                              0<<4
AIN1                              1<<4
AIN2                              2<<4
AIN3                              3<<4
AIN4                              4<<4
AIN5                              5<<4
BAT_ADCH                          0xa9
BOOST5V_ADCH                      0xb9
BOOST_5V_CONST_AD                 1706
BOOST_EN                          P0,5
BOOST_PWM_DUTY_MAX                50
BOOST_PWM_DUTY_MIN                2
BUZ0OE                            T0CR,5
BUZ1OE                            T1CR,5
BUZ2OE                            T2CR,5
C                                 PFLAG,0
CHARGE_FULL_CNT                   100
CHARGE_PWM_DUTY_MAX               98
CHARGE_PWM_DUTY_MIN               10
CHRG                              P1,1
CLKS                              OSCM,2
CONST_CURRENT_AD                  68
CONST_VOLTAGE_AD                  1450
CURRENT_ADCH                      0x59
DC                                PFLAG,1
DD00                              DDR0,0
DD01                              DDR0,1
DD02                              DDR0,2
DD03                              DDR0,3
DD04                              DDR0,4
DD05                              DDR0,5
DD10                              DDR1,0
DD11                              DDR1,1
DD12                              DDR1,2
DD13                              DDR1,3
DD14                              DDR1,4
DD15                              DDR1,5
DD16                              DDR1,6
DD17                              DDR1,7
DDR0                              OEP0
DDR1                              OEP1
DET_CURRENT                       P0,2
FSR                               FSR0
FSYS_DIV16                        0<<2
FSYS_DIV2                         3<<2
FSYS_DIV4                         2<<2
FSYS_DIV8                         1<<2
FULL_VOLTAGE_AD                   1500
F_blink                           Flag,7
F_chargeFull                      Flag1,2
F_detLoad                         Flag1,5
F_displayEn                       Flag1,7
F_keyRelease                      Flag,0
F_keyValid                        Flag,1
F_ledOff                          Flag,5
F_lightSwitch                     Flag1,6
F_load                            Flag,2
F_marquee500ms                    Flag2,1
F_noLoadState                     Flag2,0
F_power5V                         Flag,3
F_preCharge                       Flag1,3
F_showVBAT                        Flag,6
F_sleep                           Flag,4
F_time100ms                       Flag1,1
F_time10ms                        Flag1,0
F_time500ms                       Flag1,4
GIE                               MCR,7
HFEN                              OSCM,0
INDF                              INDF0
INT0IE                            INTE,2
INT0IF                            INTF,2
INT1IE                            INTE,3
INT1IF                            INTF,3
INTECON                           INTE
KBIE                              INTE,4
KBIF                              INTF,4
KEY_EFFECT                        100
KEY_I                             P1,3
LED12                             P1,5
LED34                             P1,4
LED56                             P1,0
LED78                             P0,3
LFEN                              OSCM,1
LIGHT_LED                         P1,0
LOAD_CNT                          5
LOAD_CURRENT_AD_MAX               157
LOAD_CURRENT_AD_MIN               7
LONG_KEY                          2
LOW_VBAT_AD                       1024
MINT00                            MCR,0
MINT01                            MCR,1
MINT10                            MCR,2
MINT11                            MCR,3
NMOS                              P1,7
NO_KEY                            0
NO_LOAD_CNT                       5
P0                                IOP0
P00                               P0,0
P01                               P0,1
P02                               P0,2
P03                               P0,3
P04                               P0,4
P05                               P0,5
P0HCON                            PUP0
P1                                IOP1
P10                               P1,0
P11                               P1,1
P12                               P1,2
P13                               P1,3
P14                               P1,4
P15                               P1,5
P16                               P1,6
P17                               P1,7
P1HCON                            PUP1
PD                                MCR,4
PMOS                              P1,6
PWM0OE                            T0CR,6
PWM1OE                            T1CR,6
PWM2OUT                           T2CR,6
RESS0                             ADCR1,3
SHORT_CIRCUIT_AD                  334
SHORT_KEY                         1
SHUT_OFF_CURRENT_AD               7
STATUS                            PFLAG
STBH                              OSCM,4
STBL                              OSCM,5
T0                                MCR,5
T0IE                              INTE,0
T0IF                              INTF,0
T0PR0                             T0CR,0
T0PR1                             T0CR,1
T0PR2                             T0CR,2
T0PS0                             T0CR,3
T0PS1                             T0CR,4
T1IE                              INTE,1
T1IF                              INTF,1
T1PR0                             T1CR,0
T1PR1                             T1CR,1
T1PR2                             T1CR,2
T1PS0                             T1CR,3
T1PS1                             T1CR,4
T2IE                              INTE,5
T2IF                              INTF,5
T2PR0                             T2CR,0
T2PR1                             T2CR,1
T2PR2                             T2CR,2
T2PS0                             T2CR,3
T2PS1                             T2CR,4
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
VBAT_AD0                          1092
VBAT_AD1                          1194
VBAT_AD2                          1280
VBAT_AD3                          1331
VDD_DIV3                          6<<4
VOUTV_DIV3                        7<<4
VREF                              P0,4
VRS0                              ADCR1,0
VRS1                              ADCR1,1
VRS2                              ADCR1,2
Z                                 PFLAG,2

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

