CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

It sound very low

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
smxabi



Joined: 29 Apr 2006
Posts: 14
Location: Spain

View user's profile Send private message

It sound very low
PostPosted: Wed May 31, 2006 10:08 am     Reply with quote

Hi
This is my favorite site to inquire all my troubles. Laughing
Well, I compiled and tested the exercise EX_SQWC from CCS examples:
Code:

#include <16F877A.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
I am using the proto 16F877A from CCS


void main() {

   printf("Press any key to begin\n\r");
   getc();
   printf("1 khz signal activated\n\r");

   while (TRUE) {
     output_high(PIN_B0);
     delay_us(500);
     output_low(PIN_B0);
     delay_us(500);
   }
}
when I conect a loudspeaker from an old mobile phone sound, but very low. In the phone sound quite right. The loudspeaker is SD153B and finding the datasheet I see it has a impedance of 150 ohms (at 1Khz).
The loudspeaker is conected between Pin BO and ground through a condenser of 100k.
I supose is a problem of leveling impedances � But How I do to sound the loudspeaker more strong ?

Thank�s in advance
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Wed May 31, 2006 10:55 am     Reply with quote

Use an audio op-amp to amplify the signal to the loudspeaker. LM386 is, probably, the most popular one.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group