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

sample code ISD1790

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







sample code ISD1790
PostPosted: Mon Oct 27, 2008 6:03 am     Reply with quote

I can't to control ISD1790 by SPI interface.
I don't know why.

i send 0x40 to ISD1790 voice not responding but ISD1790 return value to PIC

any one have sample code


thanks.

reg.
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

Re: sample code ISD1790
PostPosted: Mon Oct 27, 2008 8:02 am     Reply with quote

lastweapon wrote:
...i send 0x40 to ISD1790 voice not responding but ISD1790 return value to PIC...

Have you taken into account the fact that the ISD1790 treats SPI data as LSB first while normal SPI is sent using MSB first? That requires a bit reversal if you are using normal SPI hardware or software.
_________________
Robert Scott
Real-Time Specialties
Embedded Systems Consulting
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 27, 2008 12:32 pm     Reply with quote

There is an example of how to do bit reversal with SPI at the end of
this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=35566&highlight=bit+reversal
lastweapon
Guest







PostPosted: Tue Oct 28, 2008 3:44 am     Reply with quote

I use 18f8722.
SPI use:
rc4 datain
rc5 dataout
rf7 SS
rc3 clock

I use interrupt SPI data in I can get someting when I push play button
but I can't control by MCU.

I'll try it again.

Thanks every one.

reg.
lastweapon
Guest







PostPosted: Wed Oct 29, 2008 10:54 am     Reply with quote

OK. now I can control ISD1790.

I use bit reversal and it can play.

Thank PCM programmer and everyone.

When I complete the code I'll be back to post it.

reg.
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