Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 05, 2016, 11:28:02 11:28


Login with username, password and session length


Pages: [1]
Print
Author Topic: Sample Code ISD17XX  (Read 4523 times)
0 Members and 1 Guest are viewing this topic.
ICQ34791919
Guest
« on: October 27, 2008, 12:43:44 12:43 »

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.
Logged
Orcino Borges
Newbie
*
 Muted
Offline Offline

Posts: 23

Thank You
-Given: 13
-Receive: 18


« Reply #1 on: July 26, 2010, 06:14:49 18:14 »

Hi,

 I am developing a project that uses the ISD1730 and am not having success with SPI interface. Does anyone have any examples in C that can share ?

              Thanks i advance
Logged
ICQ34791919
Guest
« Reply #2 on: December 30, 2010, 09:55:50 09:55 »

Bit Riversal
exp data sent 1 2 3 4 5 6

bit riversal

6 5 4 3 2 1

and ISD Work
Logged
kaizer
Newbie
*
 Muted
Offline Offline

Posts: 26

Thank You
-Given: 5
-Receive: 54

I'm here therefore I'm not there


« Reply #3 on: January 24, 2011, 02:06:54 14:06 »

i dont know how ISD17xx works..

but this is my Soft SPI routine which i used in my ISD4002


Code:

   #define POWERUP 0b0010000000000000
   #define SETPLAYMODE 0b1110000000000111
   #define PLAYBACK 0b1111000000000000
   #define SETREC 0b1010000000000111
   #define REC 0b1011000000000000
   #define STOP 0b0011000000000000
   
   #define DATAPIN  ra2
   #define DATAIN  ra3
   #define CLOCKPIN  rb5
   #define CSPIN rb4

void SendSPI(long cmd)
{
   unsigned char ctr;

   CSPIN=LOW; //chipselect activate
   delay_us(20);
   
   for(ctr=0;ctr<16;ctr++)
   {     
      DATAPIN=(Data>>(ctr)) & 0x01;
      delay_cycles(400);
     
      CLOCKPIN=HIGH;     
      delay_us(500);     
      CLOCKPIN=LOW;
      delay_us(500);
   }
     
   CSPIN=HIGH; //chipselect deactivate
   delay_us(1);
}

void SetPlay()
{
   SendSPIData(POWERUP);
   delay_ms(15);
   SendSPIData(SETPLAYMODE | Address);
}

void SetRecord()
{
   SendSPIData(POWERUP);
   delay_ms(15);   
   SendSPIData(POWERUP);
   delay_ms(25);
   SendSPIData(SETREC | Address);
}

hope this helps you=)
Logged

whatever!
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC