基于AT89C51SND1的MP3的程序设计(包括播放mp3和录音功能)

源代码在线查看: adc_drv.h

软件大小: 1052 K
上传用户: shkk21
关键词: SND1 89C C51 SND
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*H**************************************************************************
				* NAME:         adc_drv.h         
				*----------------------------------------------------------------------------
				* Copyright (c) 2003 Atmel.
				*----------------------------------------------------------------------------
				* RELEASE:      snd1c-refd-nf-4_0_3      
				* REVISION:     1.5     
				*----------------------------------------------------------------------------
				* PURPOSE:
				* This file contains the A to D Converter driver definitions
				*****************************************************************************/
				
				#ifndef _ADC_DRV_H_
				#define _ADC_DRV_H_
				
				/*_____ I N C L U D E S ____________________________________________________*/
				
				
				/*_____ M A C R O S ________________________________________________________*/
				
				
				/*_____ D E F I N I T I O N ________________________________________________*/
				
				
				/*_____ D E C L A R A T I O N ______________________________________________*/
				
				void    adc_set_prio (Byte);
				
				#define Adc_set_clock(clock)    (ADCLK = clock)
				#define Adc_enable()            (ADCON |= MSK_ADEN)
				#define Adc_disable()           (ADCON &= ~MSK_ADEN)
				#define Adc_enable_int()        (IEN1 |= MSK_EADC)
				#define Adc_disable_int()       (IEN1 &= ~MSK_EADC)
				#define Adc_end_of_conv()       ((ADCON & MSK_ADEOC) == MSK_ADEOC)
				#define Adc_ack_conversion()    (ADCON &= ~MSK_ADEOC)
				#define Adc_get_data_h()        (ADDH)
				#define Adc_get_data_l()        (ADDL)
				#define Adc_select_channel(c)   (ADCON &= ~MSK_ADCS); (ADCON |= c)
				#define Adc_convert_std()       (ADCON |= MSK_ADSST)
				#define Adc_convert_idle()      (ADCON |= MSK_ADSST | MSK_ADIDL)
				
				
				#endif  /* _ADC_DRV_H_ */
							

相关资源