;--------------------------------------------------------
; File Created by ChiponCC : aolisn inc.
; Version 3.0.4#6752 (Jan 25 2018 21:08:05) (MSVC)
; This file was generated Sat May 26 17:18:34 2018
;--------------------------------------------------------
; chipon port for the 16-bit core
;--------------------------------------------------------
;	.file	"../kf8ts3514_touch_cs.c"
	.radix dec
	.include "KF8TS3514.inc"
;--------------------------------------------------------
; external declarations
;--------------------------------------------------------
	.extern	_init_mcu
	.extern	__KF8TS3514_Get_Ver_WaterCS_
	.extern	__KF8TS3514_Init_Touch_WaterCS_
	.extern	__KF8TS3514_Touch_Process_WaterCS_
	.extern	__KF8TS3514_Lib_Set_CS_Parameter
	.extern	__R2PCL
	.extern	_TOUCH_DEBUG_TRS_DEAL
	.extern	_TOUCH_DEBUG_SEND_OUT
	.extern	_delay_ms
	.extern	_delay_us
	.extern	_PSW_bits
	.extern	_P0_bits
	.extern	_P2_bits
	.extern	_P1_bits
	.extern	_PCH_bits
	.extern	_INTCTL_bits
	.extern	_EIF1_bits
	.extern	_EIF2_bits
	.extern	_T1CTL_bits
	.extern	_PWMCTL_bits
	.extern	_BANK_bits
	.extern	_C1CTL_bits
	.extern	_VDACS_bits
	.extern	_AMPCTL_bits
	.extern	_ANSEH_bits
	.extern	_ADCCTL0_bits
	.extern	_AMPDT_bits
	.extern	_OPTR_bits
	.extern	_IP0_bits
	.extern	_IP1_bits
	.extern	_IP2_bits
	.extern	_TR0_bits
	.extern	_TR2_bits
	.extern	_TR1_bits
	.extern	_OSCSTA_bits
	.extern	_IP3_bits
	.extern	_VRECTL_bits
	.extern	_EIE1_bits
	.extern	_EIE2_bits
	.extern	_PCTL_bits
	.extern	_OSCCTL_bits
	.extern	_ANSEL_bits
	.extern	_PUR0_bits
	.extern	_IOCL_bits
	.extern	_ADCCTL1_bits
	.extern	_P0LR_bits
	.extern	_P2LR_bits
	.extern	_P1LR_bits
	.extern	_EIE3_bits
	.extern	_EIF3_bits
	.extern	_T3CTL_bits
	.extern	_CTCTL0_bits
	.extern	_PUR1_bits
	.extern	_PUR2_bits
	.extern	_CTCTL1_bits
	.extern	_INTEDGCTL_bits
	.extern	_VDAC_bits
	.extern	_VRES_bits
	.extern	_C1CAL_bits
	.extern	_SSCICTL0_bits
	.extern	_SSCICTL1_bits
	.extern	_SSCISTA_bits
	.extern	_SSCIADD_bits
	.extern	_SSCIMSK_bits
	.extern	_WDTPS_bits
	.extern	_C1FILTCTL_bits
	.extern	_C1FILTPRE_bits
	.extern	_CTCTL2_bits
	.extern	_T4CTL_bits
	.extern	__KF8_LIBc_channel_Buf
	.extern	_OSCCAL0_OFFSET
	.extern	_OSCCAL0_MAX
	.extern	_T0
	.extern	_PCL
	.extern	_PSW
	.extern	_P0
	.extern	_P2
	.extern	_P1
	.extern	_PCH
	.extern	_INTCTL
	.extern	_EIF1
	.extern	_EIF2
	.extern	_T1L
	.extern	_T1H
	.extern	_T1CTL
	.extern	_PWM1L
	.extern	_PWMCTL
	.extern	_PP1
	.extern	_BANK
	.extern	_C1CTL
	.extern	_VDACS
	.extern	_AMPCTL
	.extern	_ANSEH
	.extern	_ADCDATA0H
	.extern	_ADCCTL0
	.extern	_AMPDT
	.extern	_OPTR
	.extern	_IP0
	.extern	_IP1
	.extern	_IP2
	.extern	_TR0
	.extern	_TR2
	.extern	_TR1
	.extern	_OSCSTA
	.extern	_IP3
	.extern	_VRECAL1
	.extern	_VRECTL
	.extern	_EIE1
	.extern	_EIE2
	.extern	_PCTL
	.extern	_OSCCTL
	.extern	_OSCCAL0
	.extern	_ANSEL
	.extern	_PP2
	.extern	_PWM2L
	.extern	_PUR0
	.extern	_IOCL
	.extern	_OSCCAL1
	.extern	_NVMDATAH
	.extern	_NVMDATAL
	.extern	_NVMADDRH
	.extern	_NVMADDRL
	.extern	_NVMCTL0
	.extern	_NVMCTL1
	.extern	_ADCDATA0L
	.extern	_ADCCTL1
	.extern	_P0LR
	.extern	_P2LR
	.extern	_P1LR
	.extern	_EIE3
	.extern	_EIF3
	.extern	_OSCCAL2
	.extern	_OSCCAL3
	.extern	_T3CTL
	.extern	_T3L
	.extern	_CTCTL0
	.extern	_T3H
	.extern	_PUR1
	.extern	_PUR2
	.extern	_CTCTL1
	.extern	_INTEDGCTL
	.extern	_ADCDATA3L
	.extern	_VDAC
	.extern	_VRES
	.extern	_C1CAL
	.extern	_SSCICTL0
	.extern	_SSCICTL1
	.extern	_SSCISTA
	.extern	_SSCIBUFR
	.extern	_SSCIADD
	.extern	_SSCIMSK
	.extern	_WDTPS
	.extern	_C1FILTCTL
	.extern	_C1FILTPRE
	.extern	_VRECAL2
	.extern	_VRECAL3
	.extern	_CTCTL2
	.extern	_T4L
	.extern	_T4H
	.extern	_T4REL
	.extern	_T4REH
	.extern	_T4CTL
	.extern	_RC32KCAL

	.extern I0R1
	.extern I0R7
	.extern I0PSW
	.extern I0PCH
	.extern I1R1
	.extern I1R7
	.extern I1PSW
	.extern I1PCH
	.extern STK11
	.extern STK10
	.extern STK09
	.extern STK08
	.extern STK07
	.extern STK06
	.extern STK05
	.extern STK04
	.extern STK03
	.extern STK02
	.extern STK01
	.extern STK00
;--------------------------------------------------------
; global declarations
;--------------------------------------------------------
	.global	__KF8_LIBc_baseline_count_
	.global	__KF8_LIBi_buff_hit_
	.global	__KF8_LIBi_buff_baseline_
	.global	__KF8_LIBc_touch_count_
	.global	__KF8_LIBi_Date_Change_
	.global	__KF8_LIBc_channel_
	.global	__KF8_LIBi_channel_flag_
	.global	_CHS_AMOUNT
	.global	_TCS_AMOUNT
	.global	__KF8_Disturb_Protect_Circle_
	.global	__KF8_Key_Max_Pressed_Limitable_Circle_
	.global	__KF8_BaseLine_Update_Circle_Count_For_UP_
	.global	__KF8_BaseLine_Update_Circle_Count_For_Down_
	.global	__KF8_Define_Disturb_Channels_Amount_
	.global	__KF8_BasicLine_UP_Noise_Threshold_
	.global	__KF8_BasicLine_Down_Noise_Threshold_
	.global	__KF8_Data_Steady_Threshold_Set_
	.global	__KF8_Inside_Reference_Channel_Disturb_Threshold_Set_
	.global	__KF8_DoubleKey_Compages_Limitable_Circle_
	.global	_Double_Key_SET_EN_1
	.global	_Double_Key_SET_EN_2
	.global	_Double_Key_SET_EN_3
	.global	__KF8_TOUCH_CH_EN
	.global	__KF8_Inside_Reference_Channel_Declare_
	.global	__KF8_Config_Finger_Threshold
	.global	__KF8_Water_Monitor_
	.global	__KF8_CONFIG_FINGER_THRESHOLD_IN_WATER_
	.global	__KF8_Touch_Protect_Select_
	.global	__KF8_HIT_UP_THRESHOLD
	.global	_TCS_COUNT

;--------------------------------------------------------
; global definitions
;--------------------------------------------------------
UD_kf8ts3514_touch_cs_0	.udata
__KF8_LIBc_baseline_count_	.res	7

UD_kf8ts3514_touch_cs_1	.udata
__KF8_LIBi_buff_hit_	.res	14

UD_kf8ts3514_touch_cs_2	.udata
__KF8_LIBi_buff_baseline_	.res	14

UD_kf8ts3514_touch_cs_3	.udata
__KF8_LIBc_touch_count_	.res	7

UD_kf8ts3514_touch_cs_4	.udata
__KF8_LIBi_Date_Change_	.res	14

UD_kf8ts3514_touch_cs_5	.udata
__KF8_LIBc_channel_	.res	1

UD_kf8ts3514_touch_cs_6	.udata
__KF8_LIBi_channel_flag_	.res	4

;--------------------------------------------------------
; absolute symbol definitions
;--------------------------------------------------------
;--------------------------------------------------------
; compiler-defined variables
;--------------------------------------------------------
;--------------------------------------------------------
; initialized data
;--------------------------------------------------------

ID_kf8ts3514_touch_cs_0	.code
_CHS_AMOUNT
	RRET R0, #0x07


ID_kf8ts3514_touch_cs_1	.code
_TCS_AMOUNT
	RRET R0, #0x02


ID_kf8ts3514_touch_cs_2	.code
__KF8_Disturb_Protect_Circle_
	RRET R0, #0x32
	RRET R0, #0x00


ID_kf8ts3514_touch_cs_3	.code
__KF8_Key_Max_Pressed_Limitable_Circle_
	RRET R0, #0x00
	RRET R0, #0x00


ID_kf8ts3514_touch_cs_4	.code
__KF8_BaseLine_Update_Circle_Count_For_UP_
	RRET R0, #0x19


ID_kf8ts3514_touch_cs_5	.code
__KF8_BaseLine_Update_Circle_Count_For_Down_
	RRET R0, #0xe7


ID_kf8ts3514_touch_cs_6	.code
__KF8_Define_Disturb_Channels_Amount_
	RRET R0, #0x03


ID_kf8ts3514_touch_cs_7	.code
__KF8_BasicLine_UP_Noise_Threshold_
	RRET R0, #0xe7


ID_kf8ts3514_touch_cs_8	.code
__KF8_BasicLine_Down_Noise_Threshold_
	RRET R0, #0x19


ID_kf8ts3514_touch_cs_9	.code
__KF8_Data_Steady_Threshold_Set_
	RRET R0, #0x0f


ID_kf8ts3514_touch_cs_10	.code
__KF8_Inside_Reference_Channel_Disturb_Threshold_Set_
	RRET R0, #0x19


ID_kf8ts3514_touch_cs_11	.code
__KF8_DoubleKey_Compages_Limitable_Circle_
	RRET R0, #0x00
	RRET R0, #0x00


ID_kf8ts3514_touch_cs_12	.code
_Double_Key_SET_EN_1
	RRET R0, #0xff


ID_kf8ts3514_touch_cs_13	.code
_Double_Key_SET_EN_2
	RRET R0, #0xff


ID_kf8ts3514_touch_cs_14	.code
_Double_Key_SET_EN_3
	RRET R0, #0xff


ID_kf8ts3514_touch_cs_15	.code
__KF8_TOUCH_CH_EN
	RRET R0, #0x01
	RRET R0, #0x02
	RRET R0, #0x03
	RRET R0, #0x04
	RRET R0, #0x05
	RRET R0, #0x06
	RRET R0, #0x08


ID_kf8ts3514_touch_cs_16	.code
__KF8_Inside_Reference_Channel_Declare_
	RRET R0, #0x1e


ID_kf8ts3514_touch_cs_17	.code
__KF8_Config_Finger_Threshold
	RRET R0, #0x23
	RRET R0, #0x00
	RRET R0, #0x23
	RRET R0, #0x00
	RRET R0, #0x23
	RRET R0, #0x00
	RRET R0, #0x23
	RRET R0, #0x00
	RRET R0, #0x23
	RRET R0, #0x00
	RRET R0, #0x23
	RRET R0, #0x00
	RRET R0, #0x23
	RRET R0, #0x00


ID_kf8ts3514_touch_cs_18	.code
__KF8_Water_Monitor_
	RRET R0, #0x14


ID_kf8ts3514_touch_cs_19	.code
__KF8_CONFIG_FINGER_THRESHOLD_IN_WATER_
	RRET R0, #0x2d
	RRET R0, #0x00
	RRET R0, #0x2d
	RRET R0, #0x00
	RRET R0, #0x2d
	RRET R0, #0x00
	RRET R0, #0x2d
	RRET R0, #0x00
	RRET R0, #0x2d
	RRET R0, #0x00
	RRET R0, #0x2d
	RRET R0, #0x00
	RRET R0, #0x2d
	RRET R0, #0x00


ID_kf8ts3514_touch_cs_20	.code
__KF8_Touch_Protect_Select_
	RRET R0, #0x01


ID_kf8ts3514_touch_cs_21	.code
__KF8_HIT_UP_THRESHOLD
	RRET R0, #0xf4
	RRET R0, #0x01


ID_kf8ts3514_touch_cs_22	.code
_TCS_COUNT
	RRET R0, #0x04

;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
;	.udata_ovr

;	code size estimation:
;	    0+    0 =     0 instructions (    0 byte)


	.end
