You dont get clear sound unless you have a very clear recording background, like no fan , fridge, traffic, etc... But the limitation of the APR circuit is , you cannot get clear voice output or audio output... there is no usel of any filter or amplifier,,, they dont work for this....
you have to be content with what you can filter or get the output... just try to minimise the background noise....
for clear sound , use ap89341 . it is otp ic.
for clear sound , use ap89341 . it is otp ic.
#include <16F877A.h> //device definition header file
#fuses XT,NOWDT,NOPROTECT,NOLVP,BROWNOUT,PUT // device configuration bit
#use delay(clock=4000000)// 4MHz
void main()
{
SET_TRIS_A(0x00); //Sets Port A as o/p port
output_a(0x00); // Initilize all pins with zero
SET_TRIS_B(0x00);
output_b(0x00);
SET_TRIS_C(0x60);
output_c(0x00);
SET_TRIS_D(0x00);
output_d(0x00);
SET_TRIS_E(0x00);
//output_e(0xFF);
// PWM generation
output_low(PIN_C2); // Set CCP1 output low
output_low(PIN_C1); // Set CCP2 output low
setup_ccp1(CCP_PWM); // Configure CCP1 as a PWM
setup_ccp2(CCP_PWM); // Configure CCP2 as a PWM
setup_timer_2(T2_DIV_BY_16,249, 1); // 250 Hz
set_pwm1_duty(25); // 10% duty cycle on pin C2
set_pwm2_duty(25); // 10% duty cycle on PIn C1
//while(1); //PWM end
while (1)
{
if (!input(pin_C5))
{
output_e(0xFF); // High on PortE
output_bit(pin_E1,0); // High to low transition to play sound
output_a(0x00); // LED OFF
output_b(0x00);
}
else
{
output_e(0xFF);
output_bit(pin_E0,0);
output_a(0xFF);
output_b(0xFF);
delay_ms(1000);
output_a(0x00);
output_b(0x00);
}
}
}
#define station1_address 0x00
#define station2_address 0x10
#define station3_address 0x20
#define station4_address 0x30
#define ON 1
#define OFF 0
sbit RE=0x87; //recordenable
sbit M7=0x86;
sbit M1=0x85;
sbit M2=0x84;
sbit M3=0x83;
sbit M4=0x82;
sbit M5=0x81;
sbit M6=0x80;
void playback(unsigned char message)
{
if(message=='1')
{
M1=ON;
RE=ON;
M1=OFF;
sec_delay(3);
M1=ON;
}
else if(message=='2')
{
M2=ON;
RE=ON;
M2=OFF;
sec_delay(3);
M2=ON;
}
else if(message=='3')
{
M3=ON;
RE=ON;
M3=OFF;
sec_delay(3);
M3=ON;
}
else if(message=='4')
{
M4=ON;
RE=ON;
M4=OFF;
sec_delay(3);
M4=ON;
}
else if(message=='5')
{
M5=ON;
RE=ON;
M5=OFF;
sec_delay(3);
M5=ON;
}
else if(message=='6')
{
M6=ON;
RE=ON;
M6=OFF;
sec_delay(3);
M6=ON;
}
else if(message=='7')
{
M7=ON;
RE=ON;
M7=OFF;
sec_delay(3);
M7=ON;
}
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?