#include "MDSF05_SFR.h"
#include "XSFR_GLOBAL.h"
//#include "MDSF05_INIT.h"
//#include <intrins.h>
//#include <math.h>
//#include <stdio.h>
/*
Function :DAC setting and Register
*/

//#define HIBYTE(const) ((uint8)((const)>>8))
//#define LOBYTE(const) ((uint8)((const)))
//	
//xdata uint8 DAC_CTRL		_at_ 0x101F;
//xdata uint8 DAC_CHA_L		_at_ 0x1010;
//xdata uint8 DAC_CHA_H		_at_ 0x1011;
//xdata uint8 DAC_CHB_L		_at_ 0x1012;
//xdata uint8 DAC_CHB_H		_at_ 0x1013;
//xdata uint8 DAC_CHC_L		_at_ 0x1014;
//xdata uint8 DAC_CHC_H		_at_ 0x1015;
//xdata uint8 DAC_CHD_L		_at_ 0x1016;
//xdata uint8 DAC_CHD_H		_at_ 0x1017;

/*
Function :FG setting and Register
*/
//xdata uint8 FG_CTRL			_at_ 0x1027;


/*
Function :IPWM setting and Register
*/
//xdata uint8 IPWM_CTRL			_at_ 0x1024;
//xdata uint8 IPWM_DUTY_H		_at_ 0x1023;
//xdata uint8 IPWM_DUTY_L		_at_ 0x1022;
//xdata uint8 IPWM_CYC_H		_at_ 0x1021;
//xdata uint8 IPWM_CYC_L		_at_ 0x1020;

/*
DAC_CH1	FPGA	M6
DAC_CH2 FPGA	P6
DAC_CH3 FPGA	N6
DAC_CH4 FPGA	P5
*/
//void DAC_FUNCTION(unsigned int DAC_CHA,unsigned int DAC_CHB,unsigned int DAC_CHC,unsigned int DAC_CHD)
//{
//	DAC_CHA_L=HIBYTE(DAC_CHA);
//	DAC_CHA_H=LOBYTE(DAC_CHA);
//	
//	DAC_CHB_L=HIBYTE(DAC_CHB);
//	DAC_CHB_H=LOBYTE(DAC_CHB);
//	
//	DAC_CHC_L=HIBYTE(DAC_CHC);
//	DAC_CHC_H=LOBYTE(DAC_CHC);
//	
//	DAC_CHD_L=HIBYTE(DAC_CHD);
//	DAC_CHD_H=LOBYTE(DAC_CHD);
//}