www.pudn.com > TELEPHONE.rar > isd2560.c, change:2008-04-28,size:587b


#include <REG52.h> 
#include <intrins.h> 
#include "isd2560.h" 
#include"type.h" 
#include "LED.h" 
void ISD_delay(UINT t) 
{ 
	UCHAR i; 
	while(t--) 
	{ 
		for(i=0;i<10;i++); 
	} 
} 
void ISD_Record(void) 
{ 
	isd2560_PD=1; 
	ISD_delay(3); 
	isd2560_PD=0; 
	ISD_delay(3); 
	isd2560_PR=0; 
	while(isd2560_EOM) 
	{ 
		isd2560_CE=0; 
		LED_OFF(1); 
	} 
		LED_ON(1); 
		isd2560_CE=1; 
 
} 
void ISD_Play(void) 
{ 
	isd2560_PD=1; 
	ISD_delay(3); 
	isd2560_PD=0; 
	ISD_delay(3); 
	isd2560_PR=1; 
	while(isd2560_EOM) 
	{ 
		isd2560_CE=0; 
		LED_OFF(0); 
	} 
		LED_ON(0); 
		isd2560_CE=1; 
	 
}