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 support@ccsinfo.com

speakjet ic with pic

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



Joined: 06 Nov 2012
Posts: 29

View user's profile Send private message

speakjet ic with pic
PostPosted: Wed May 08, 2013 4:26 am     Reply with quote

hi

i got speakjet ic to get voice output. in this text is serially transmitted from controller to ic to speak, but i dont know how to start coding using ccs compiler.. kindly help me to write.

regards
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Wed May 08, 2013 5:09 am     Reply with quote

Can you post a link to the ic, and quote your compiler version No. & chosen PIC etc.

Please try to make it easy for us to help you.

Mike
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Wed May 08, 2013 9:55 am     Reply with quote

Hi,

Here is the Users Guide for the Speakjet chip: http://www.sparkfun.com/datasheets/Components/General/speakjet-usermanual.pdf

It appears that simple ASCII commands/data are all that the Speakjet requires, so simple printf statements should make it work. I looked at this synthesized voice solution a while back for a project, but judged the voice quality to be sub-standard, so I went with the 'EMIC' module from Parallax instead, at, albeit, four times the price!

John
rajm



Joined: 06 Nov 2012
Posts: 29

View user's profile Send private message

PostPosted: Wed May 08, 2013 9:51 pm     Reply with quote

hi
the datasheet for the ic is below link.
https://www.sparkfun.com/datasheets/Components/General/speakjet-usermanual.pdf

I'm using ccs compiler- PCWHD v4.093, my controller is PIC18f4550.


regards
jgschmidt



Joined: 03 Dec 2008
Posts: 184
Location: Gresham, OR USA

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

PostPosted: Wed May 08, 2013 10:34 pm     Reply with quote

Hi,

What is it you're having problems with?

The serial connection to the chip?
What codes to send to get a certain sound?
Connecting to a speaker?

I use a similar chip, the SoundGin/Babblebot, because it's better for making music, but it follows similar principles. I found Arduino libraries that I converted to CCS. The header files were the most useful.

Basic steps I followed were:

1) Make sure the PIC is generating serial output at the desired baud rate. I test with a terminal emulator on my PC. If you use the INVERT option on the #USE RS232 statement, you can go directly into the receive pin without needing a MAX232 or similar chip. Don't forget the ground connection. Pins 2 & 5 respectively on my 9-pin connection. This is just part of my standard debugging setup.

You will find many, many posts here relating to serial comms.

2) Verify the Speakjet is correctly connected to headphones or an amplifier circuit such as a LM386 by wiring up the Demo/Test configuration from the manual.

3) Now connect the transmit pin from the PIC to the Receive pin of the SpeakJet and try sending some simple commands. (Remember to remove the INVERT from the #USE RS232 statement.)

4) If you need help understanding how to perform complex tasks, google speakjet and you'll find lots of resources.

Happy coding...
_________________
Jürgen
www.jgscraft.com
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