;--------------------------------------------------------
; File Created by ChiponCC : aolisn inc.
; Version 3.0.4#6752 (Jun  6 2016 11:07:59) (MSVC)
; This file was generated Tue Aug 15 21:50:14 2017
;--------------------------------------------------------
; chipon port for the 16-bit core
;--------------------------------------------------------
;	.file	"../init_mcu.c"
	.radix dec
	.include "KF8TS2414.inc"
;--------------------------------------------------------
; external declarations
;--------------------------------------------------------
	.extern	_PSW_bits
	.extern	_P0_bits
	.extern	_P2_bits
	.extern	_P1_bits
	.extern	_INTCTL_bits
	.extern	_EIF1_bits
	.extern	_EIF2_bits
	.extern	_T1CTL_bits
	.extern	_PWMCTL_bits
	.extern	_CTCTL1_bits
	.extern	_CM1CTL_bits
	.extern	_ANSEH_bits
	.extern	_ADCCTL0_bits
	.extern	_OPTR_bits
	.extern	_IP0_bits
	.extern	_IP1_bits
	.extern	_IP2_bits
	.extern	_TR0_bits
	.extern	_TR2_bits
	.extern	_TR1_bits
	.extern	_EIE1_bits
	.extern	_EIE2_bits
	.extern	_PCTL_bits
	.extern	_OSCCTL_bits
	.extern	_ANSEL_bits
	.extern	_PUR_bits
	.extern	_IOCL_bits
	.extern	_ADCCTL1_bits
	.extern	_P0LR_bits
	.extern	_P2LR_bits
	.extern	_P1LR_bits
	.extern	_CTCTL_bits
	.extern	_IDLR
	.extern	_T0
	.extern	_PCL
	.extern	_PSW
	.extern	_IR
	.extern	_P0
	.extern	_P2
	.extern	_P1
	.extern	_PCH
	.extern	_INTCTL
	.extern	_EIF1
	.extern	_EIF2
	.extern	_T1L
	.extern	_T1H
	.extern	_T1CTL
	.extern	_PWM1L
	.extern	_PWM1H
	.extern	_PWMCTL
	.extern	_PP1
	.extern	_CTCTL1
	.extern	_CM1CTL
	.extern	_VRECAL1
	.extern	_ANSEH
	.extern	_ADCDATAH
	.extern	_ADCCTL0
	.extern	_OPTR
	.extern	_IP0
	.extern	_IP1
	.extern	_IP2
	.extern	_TR0
	.extern	_TR2
	.extern	_TR1
	.extern	_VRECAL2
	.extern	_EIE1
	.extern	_EIE2
	.extern	_PCTL
	.extern	_OSCCTL
	.extern	_OSCCAL0
	.extern	_ANSEL
	.extern	_PP2
	.extern	_PWM2L
	.extern	_PWM2H
	.extern	_PUR
	.extern	_IOCL
	.extern	_OSCCAL1
	.extern	_BDATAH
	.extern	_BDATAL
	.extern	_BADDRH
	.extern	_BADDRL
	.extern	_EECTL1
	.extern	_EECTL2
	.extern	_ADCDATAL
	.extern	_ADCCTL1
	.extern	_P0LR
	.extern	_P2LR
	.extern	_P1LR
	.extern	_OSCCAL2
	.extern	_OSCCAL3
	.extern	_T3L
	.extern	_CTCTL
	.extern	_T3H

	.extern I0R1
	.extern I0PCH
	.extern I1R1
	.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	_init_mcu

;--------------------------------------------------------
; global definitions
;--------------------------------------------------------
;--------------------------------------------------------
; absolute symbol definitions
;--------------------------------------------------------
;--------------------------------------------------------
; compiler-defined variables
;--------------------------------------------------------
;--------------------------------------------------------
; initialized data
;--------------------------------------------------------
;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
;	.udata_ovr


func._init_mcu	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  _init_mcu	;Function start
; 2 exit points
;has an exit
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
_init_mcu	;Function start
; 2 exit points
;	op : =
;	.line	17; "../init_mcu.c"	OSCCTL = 0x70;           //4M
	MOV	R0,# 0x70
	MOV	_OSCCTL, R0
;	op : =
;	.line	20; "../init_mcu.c"	TR0 = 0xFF;              //1111 1100  P05 CT0,P04为外挂电容脚，设置为模拟输入
	MOV	R0,# 0xff
	MOV	_TR0, R0
;	op : =
;	.line	21; "../init_mcu.c"	TR1 = 0xFF;              //1111 1110  P15,P14,P13,P16,P17为CT1,ct2,ct3,ct4 CT5,
	MOV	R0,# 0xff
	MOV	_TR1, R0
;	op : =
;	.line	22; "../init_mcu.c"	TR2 = 0xFF;              //0000 0000
	MOV	R0,# 0xff
	MOV	_TR2, R0
;	op : =
;	.line	24; "../init_mcu.c"	P0 = 0X00;               //0000 0000
	CLR	_P0
;	op : =
;	.line	25; "../init_mcu.c"	P0LR = 0X00;
	CLR	_P0LR
;	op : =
;	.line	26; "../init_mcu.c"	P1 = 0X00;               //0000 0000
	CLR	_P1
;	op : =
;	.line	27; "../init_mcu.c"	P1LR = 0X00;
	CLR	_P1LR
;	op : =
;	.line	28; "../init_mcu.c"	P2 = 0x00;               //0000 0000
	CLR	_P2
;	op : =
;	.line	29; "../init_mcu.c"	P2LR = 0X00;
	CLR	_P2LR
;	op : =
;	.line	31; "../init_mcu.c"	ANSEL = 0x08;			 //0000 1000设置AN3为模拟口,外挂电容脚设置为模拟口
	MOV	R0,# 0x08
	MOV	_ANSEL, R0
;	op : =
;	.line	35; "../init_mcu.c"	T1CTL = 0X00;    		 //1：1分频，不开启计数器T1
	CLR	_T1CTL
;	op : =
;	.line	38; "../init_mcu.c"	T1IF = 0;
	CLR	_EIF1_bits, 0
;	op : =
;	.line	42; "../init_mcu.c"	PUR=0;
	CLR	_PUR
;	op : LABEL
;	op : ENDFUNCTION
	CRET	
; exit point of _init_mcu


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


	.end
